apt-get update
apt-get install nginx
即可完成安装
启动nginx:
/etc/init.d/nginx start 或者 service nginx start
apt-get remove nginx可以删除该服务 但保留配置
转载于:https://blog.51cto.com/wesoho/200646