Created
February 11, 2019 12:21
-
-
Save CNSumi/868f2320add0c24fee469e006465b5dc to your computer and use it in GitHub Desktop.
nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu |
/lib/systemd/system/nginx.service
[Unit]
Description=nginx - high performance web server
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
ExecStart=/usr/local/nginx/nginx-1.15.8/sbin/nginx -c /usr/local/nginx/nginx-1.15.8/conf/nginx.conf
ExecStop=/usr/local/nginx/nginx-1.15.8/sbin/nginx -s stop
ExecReload=/usr/local/nginx/nginx-1.15.8/sbin/nginx -s reload
[Install]
WantedBy=multi-user.target
systemctl enable nginx
systemctl start nginx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.