VPS侦探论坛

 找回密码
 注册
查看: 4657|回复: 1

lnmp0.9 nginx运行日志权限问题?

[复制链接]
发表于 2013-6-22 12:03:00 | 显示全部楼层 |阅读模式

service nginx start
Starting nginx daemon: nginxnginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (13: Permission denied)
2013/06/22 11:54:59 [warn] 1426#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/nginx/conf/nginx.conf:1
2013/06/22 11:54:59 [emerg] 1426#0: open() "/home/wwwlogs/nginx_error.log" failed (13: Permission denied)
nginx already running.

==============================

没有修改过WWW的权限,新建过一个用户,加入WWW组,
目前看应该是运行nginx用户没有权限访问日志文件,

求教军哥
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-6-22 16:47:59 | 显示全部楼层


必须使用管理员用户才能启动,否则前面提示的错误日志是没权限的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 17:18 , Processed in 0.024988 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表