关于nginx启动报错,请问linux怎么启动nginx解决?

[root@localhost html]# vim /usr/local/nginx/html/index.php
我排了所有问题都没问题,最后死在单词拼反的问题上启动nginx 遇上
Job for nginx.service failed because the control process exited with
error code. See “systemctl status nginx.service” and “journalctl -xe”
说明nginx的80端口被占用查看指定端口直接kill它,在启动就可以了在centos下启动nginx出现Failed to start nginx.service: Unit not found.错误的原因就是没有添加nginx服务,所以启动失败。解决方法:在/root/etc/init.d/目录下新建文件,文件名为nginx或者用命令在根目录下执行:

我要回帖

更多关于 centos7无法进入登录界面 的文章

 

随机推荐