【这个报错表示nginx的默认进程被占用】
第一步:systemctl status nginx查看nginx报错信息
第二步:查看nginx配置文件,我这的nginx默认端口使用了3306
第三步:使用netstat -tlnp查看目前的端口使用情况,发现mysql已经占用了3306端口,和我们nginx的默认端口冲突
第四步:接着使用ps -ef | grep mysql 查看mysql的进程信息,使用kill -9强制杀死进程
文章来源:https://www.toymoban.com/news/detail-780394.html
第五步:杀死后重启nginx进程,即可顺利开启,重启命令,systemctl restart nginx
文章来源地址https://www.toymoban.com/news/detail-780394.html
到了这里,关于Job for nginx.service failed because the control process exited with error code. See “systemctl stat的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!