这是我第一次使用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] 谁能告诉我怎么才能解决这个问题呢?
发布于 2016-04-28 20:37:21
我使用ps -e发现有两个nginx进程正在运行。
用kill -HUP <pid>杀了他们。问题已经解决了
https://stackoverflow.com/questions/36914069
复制相似问题