一 按nginx官方文档安装nginx (目前版本1.20.2)
二 查看nginx自启脚本(安装时已自动创建) /lib/systemd/system/nginx.service
三 设置systemctl 自启:
四 服务命令