首页 > 代码库 > Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse

Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse

在centos7上安装nginx时,有时会遇见如题所示的nginx启动报错,一般会出现在编写完nginx启动脚本以后试着启动nginx时出现

这里其实没什么什么问题,只是很多时候我们都先用/usr/local/nginx/sbin/nginx来启动了nginx

只要找到这个进程kill掉以后,再执行/etc/rc.d/init.d/nginx start就一切正常了

Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse