使用systemctl管理服务(nginx)

http://www.manongjc.com/detail/26-gxlomozjeblpelj.html

点击查看代码
[Unit]
Description=nginx
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecReload=/usr/local/nginx/sbin/nginx -s reload
ExecStop=/usr/local/nginx/sbin/nginx -s stop
ExecQuit=/usr/local/nginx/sbin/nginx -s quit
PrivateTmp=true
[Install]
WantedBy=multi-user.target
posted @ 2022-11-26 19:42  小黙互动  阅读(33)  评论(0编辑  收藏  举报