一? 按nginx官方文檔安裝nginx (目前版本1.20.2)
二 查看nginx自啟腳本(安裝時(shí)已自動創(chuàng)建)?/lib/systemd/system/nginx.service
三 設(shè)置systemctl 自啟:
四 服務(wù)命令