关于nginx的Job for nginx.service failed because the control process exited with error code.错误
or
$ sudo /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 stop
当你放下单片机去搞服务器的时候。。。就在单片机那边出现玄学的问题的时候;服务器这里也出现了玄学的错误;
冷静、冷静、
安装完nginx想启动nginx服务的时候出现了:
[root@localhost ~]# service nginx restart Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
在网上搜索了好多教程都不对。。。后来再跟对象聊完天之后灵光一现,Apache与Nginx不能一起。。。
把Apache关闭就好啦。。。。
Start Apache 2 Server /启动apache服务
# /etc/init.d/apache2 startor
$ sudo /etc/init.d/apache2 start
Restart Apache 2 Server /重启apache服务
# /etc/init.d/apache2 restartor
$ sudo /etc/init.d/apache2 restart
Stop Apache 2 Server /停止apache服务
# /etc/init.d/apache2 stopor
$ sudo /etc/init.d/apache2 stop