15下安装nginx无法使用
Tofloor
poster avatar
azazazaz
deepin
2016-01-03 18:43
Author
apt-get install nginx-full
安装好nginx后在/usr/share/nginx/html中新建html文件,在浏览器中127.0.0.1/xxx.html无法打开,404错误

同样操作在2014.3中正常显示
Reply Favorite View the author
All Replies
netmaze
deepin
2016-01-03 20:50
#1
开启nginx的服务了吗
Reply View the author
azazazaz
deepin
2016-01-03 22:46
#2
https://bbs.deepin.org/post/35294
开启nginx的服务了吗

打开127.0.0.1有nginx的欢迎界面,但是放入网页打不开,而且终端重启nginx服务也没有ok的提示了,但是用服务stop和start可以试出服务确实是重启了
Reply View the author
yutent
deepin
2016-01-03 22:52
#3
It has been deleted!
ayhwtian
deepin
2017-01-11 21:41
#4
https://bbs.deepin.org/post/35294
应该是没配置好,我的nginx没问题
还有,权限也要改好,apt安装完nginx,默认是使用www-data这个用户的 ...

权限怎么修改?
Reply View the author
153******45
deepin
2017-01-11 23:13
#5
把文件修改成www-data用户权限
Reply View the author
Feng Yu
deepin
2017-01-11 23:16
#6
你肯定没看过nginx的配置文件,也不知道如何看nginx的error log,这个问题实在太基础了,查下配置,看下错误你就知道怎么回事了。看你能发现问题不
Reply View the author