Ubuntu16.04 安装nginx

  1. 安装
~ sudo vim /etc/apt/sources.list
# 添加源
deb http://nginx.org/packages/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/ubuntu/ xenial nginx
# 安装
sudo apt-get update
sudo apt-get install nginx

你可能感兴趣的:(Ubuntu16.04 安装nginx)