【這個報錯表示nginx的默認進程被占用】
第一步:systemctl status nginx查看nginx報錯信息
第二步:查看nginx配置文件,我這的nginx默認端口使用了3306
第三步:使用netstat -tlnp查看目前的端口使用情況,發(fā)現(xiàn)mysql已經(jīng)占用了3306端口,和我們nginx的默認端口沖突
第四步:接著使用ps -ef | grep mysql 查看mysql的進程信息,使用kill -9強制殺死進程
文章來源:http://www.zghlxwxcb.cn/news/detail-780394.html
第五步:殺死后重啟nginx進程,即可順利開啟,重啟命令,systemctl restart nginx
文章來源地址http://www.zghlxwxcb.cn/news/detail-780394.html
到了這里,關(guān)于Job for nginx.service failed because the control process exited with error code. See “systemctl stat的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!