一.完全移除
sudo apt-get remove nginx nginx-common
sudo apt-get purge nginx nginx-common
sudo apt-get autoremove
二.重新安裝
sudo apt-get install nginx
三.操作
啟動 sudo systemctl start nginx
停止 sudo systemctl stop nginx
重啟 sudo systemctl restart nginx
重載config sudo nginx -s reload
四.設定檔
/etc/nginx/available-sites/