安装

1
sudo apt-get install nginx

设置防火墙允许 http/https

1
sudo ufw allow 'Nginx Full'

重新加载

1
sudo nginx -s reload

停止

1
nginx -s stop