https://www.cnblogs.com/jepson6669/p/9131217.html
nginx.service文件内容:存放路径 —> /lib/systemd/system/ —> 使用命令使其生效:systemctl enable nginx
[Unit] Description=nginx service After=network.target [Service] Type=forking ExecStart=/usr/local/nginx/sbin/nginx ExecReload=/usr/local/nginx/sbin/nginx -s reload ExecStop=/usr/local/nginx/sbin/nginx -s quit PrivateTmp=true [Install] WantedBy=multi-user.target