【问题1】:启动nginx时报以下错误
[[email protected] nginx]# /application/nginx/sbin/nginx nginx: [alert] could not open error log file: open() "/application/nginx-1.6.3/logs/error.log" failed (2: No such file or directory) 2017/05/17 07:17:43 [emerg] 6504#0: open() "/application/nginx-1.6.3/logs/access.log" failed (2: No such file or directory)
解决办法:按照提示创建错误日志文件
mkdir -p /application/nginx-1.6.3/logs/error.log
时间: 2024-09-29 08:29:30