这是我第一次使用nginx
,我试图在网上搜索以解决这个问题......
root@VM-176-248-ubuntu:/# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
root@VM-176-248-ubuntu:/# tail -f /var/log/nginx/error.log
2016/04/28 19:00:54 [emerg] 15475#0: directive "try_files" is not terminated by ";" in /etc/nginx/conf.d/micro-blog_nginx.conf:8
2016/04/28 19:01:33 [emerg] 15549#0: directive "try_files" is not terminated by ";" in /etc/nginx/conf.d/micro-blog_nginx.conf:8
2016/04/28 19:15:00 [notice] 16436#0: signal process started
2016/04/28 19:22:30 [notice] 16969#0: signal process started
root@VM-176-248-ubuntu:/# /etc/init.d/nginx restart
* Restarting nginx nginx [fail]
任何人都可以告诉我怎么弄明白?
答案 0 :(得分:0)
我使用ps -e
发现有两个nginx进程正在运行
使用kill -HUP <pid>
来杀死他们。问题已经解决