重新nginx失败,报错提示配置文件变量重复nginx: [warn] duplicate value “error” in /www/server/panel/vhost/nginx/hexlon-ru.globalsight.cn.conf:2

重新nginx失败,报错提示配置文件变量重复nginx: [warn] duplicate value “error” in /www/server/panel/vhost/nginx/hexlon-ru.globalsight.cn.conf:2

问题:[warn] duplicate value “error” in /www/server/panel/vhost/nginx/hexlon-ru.globalsight.cn.conf:2

解决方案:因为在各个站点的nginx配置中,指定了站点缓存内存路径。nginx重启时,无法在内存路径中创建目录失败,导致无法重启成功。需手动在/dev/shm目录下创建如nginx-cache/gqem如箭头所示缓存目录,即可重新启动nginx服务

Comments are closed.