【记录】Nginx添加stub_status后,启动报错

Nginx版本:1.9.15nginx

原环境中没有加--with-http_stub_status模块,zabbix监控需求,添加模块从新编译;bash

编译步骤(略)ide

编译完成,使用新nginx启动文件后,error.log文件报错提示:进程

2016/08/09 11:30:30 [emerg] 1514#0: unknown directive "stub_status" in /opt/nginx/conf/nginx.conf:62

缘由: 启动使用平滑重启 ./nginx -c nginx.conf -s reload ,it

原master进程仍为旧的nginx启动文件,编译

解决办法:ast

kill nginx.pidclass

从新启动
监控

相关文章
相关标签/搜索