Commit 57f8e4d7 authored by Ben Fayers's avatar Ben Fayers Committed by GitHub

Add bash aliases for start/stopping nginx

startnginx will start nginx and stopnginx will stop nginx
parent 45bfd8e2
......@@ -15,6 +15,9 @@ class Nginx < Package
system "sudo ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/nginx"
system "echo all NGINX things are in /usr/local/nginx"
system "echo pages are in /usr/local/nginx/html"
system "echo run nginx with root! sudo nginx"
system "echo adding bash aliases so you can easily start/stop nginx"
system "echo startnginx starts nginx and stopnginx stops nginx"
system "sed -i '$ a alias startnginx="sudo nginx"' ~/.bashrc"
system "sed -i '$ a alias stopnginx="sudo pkill nginx"' ~/.bashrc"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment