首页 > 其他 > 详细

centos7 添加Nginx启动脚本

时间:2017-08-18 13:22:14      阅读:244      评论:0      收藏:0      [点我收藏+]
[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/nginx.pid
ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.targe


本文出自 “马行空” 博客,请务必保留此出处http://maxingkong.blog.51cto.com/6184921/1957286

centos7 添加Nginx启动脚本

原文:http://maxingkong.blog.51cto.com/6184921/1957286

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!