安装nginx:
apt-get install nginx

查看nginx状态:
systemctl status nginx.service

重启nginx:
systemctl restart nginx.service

停止nginx:
systemctl stop nginx.service

开机启动nginx:
systemctl enable nginx.service