标签:vat nginx启动脚本 rip block usr lock system after desc
vim /usr/lib/systemd/system/nginx.service[Unit]
Description=nginx
After=network.target[Service]
Type=forking
ExecStart=/usr/local/bin/nginx/sbin/nginx -c /usr/local/bin/nginx/conf/nginx.conf
ExecReload=/usr/local/bin/nginx/sbin/nginx -s reload
ExecStop=/usr/local/bin/nginx/sbin/nginx -s stop
Restart=always
RestartSec=30
PrivateTmp=true[Install]
WantedBy=multi-user.target
#systemctl enable nginx.service
#systemctl start nginx.service
标签:vat nginx启动脚本 rip block usr lock system after desc
原文地址:http://blog.51cto.com/13043516/2295965