類似情況一般是nginx底部配置有問題
解決方案:
//卸載nginx 並且不保留配置文件
sudo apt-get --purge remove nginx
//卸載自動安裝且不再需要的依賴包
sudo apt-get autoremove
//查看nginx有關的已安裝軟件包中
dpkg --get-selections | grep nginx
//卸載nginx-common 和配置文件
sudo apt-get --purge remove nginx-common
//重新安裝nginx
sudo apt-get install nginx
//測試是否正常
sudo nginx -t
//啓動nginx
service nginx start
//查看80端口
sudo lsof -i:80