apt-get update
apt-get install nginx
即可完成安装
 
启动nginx:
/etc/init.d/nginx start 或者 service nginx start
 
apt-get remove nginx可以删除该服务 但保留配置