apt-get install nginx # 安装

service nginx status # 查看服务运行状态

netstat -nap |grep nginx # 查看服务所使用的端口

网页浏览器访问服务器 IP 显示:

Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx.