Giter VIP home page Giter VIP logo

Comments (8)

sumory avatar sumory commented on May 26, 2024

没有样式?你说的是dashboard?你有更改过配置文件吗?是不是mime.types没配上?可以使用chrome或者firefox查看下静态文件的加载情况

from orange.

AngeliaCheng avatar AngeliaCheng commented on May 26, 2024

嗯,所有的css和js都是403,我是把orange装在虚拟机中,然后在本机进行访问的

from orange.

AngeliaCheng avatar AngeliaCheng commented on May 26, 2024

只改过orange.conf,改了mysql部分的内容,其他的没有改

from orange.

sumory avatar sumory commented on May 26, 2024

检查下你的静态目录(存放css和js的目录)是否有访问权限

from orange.

AngeliaCheng avatar AngeliaCheng commented on May 26, 2024

有-drwxr-xr-x 权限

from orange.

sumory avatar sumory commented on May 26, 2024

我没有限制静态资源的访问,也没加什么策略。看来应该是你本地配置的问题,只能你自己仔细查查看哪个环节出问题了。

from orange.

AngeliaCheng avatar AngeliaCheng commented on May 26, 2024

好的,谢谢啦

from orange.

AngeliaCheng avatar AngeliaCheng commented on May 26, 2024

找到解决方法了,在nginx.conf配置文件头部加user root:

但是真的很奇怪,我装的时候都是用root用户的,而且文件和目录权限也是正常的,不加这句话就无法加载样式文件

参考文章:
http://blog.csdn.net/ngcsnow/article/details/39394991

from orange.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.