Nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server.html
wget -c https://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
echo 'deb http://nginx.org/packages/ubuntu/ xenial nginx' >> /etc/apt/sources.list
echo 'deb-src http://nginx.org/packages/ubuntu/ xenial nginx' >> /etc/apt/sources.list
apt update
apt install nginx
nginx # 啓動nginx
nginx -s signal
nginx -s quit
nginx -s reload
nginx -s restart
if the master process ID is 1628, to send the QUIT signal resulting in nginx’s graceful shutdown, execute:nginx
kill -s QUIT 1628
ubuntu
For getting the list of all running nginx processes, the ps utility may be used, for example, in the following way:網絡
ps -ax | grep nginx
ui