Linux下安装nginx,不用编译
1.安装epel
sudo yum install -y epel-release
2.安装nginx
sudo yum install -y nginx
3.启动nginx
sudo systemctl start nginx
4.设为开机启动
sudo systemctl enable nginx
1.安装epel
sudo yum install -y epel-release
2.安装nginx
sudo yum install -y nginx
3.启动nginx
sudo systemctl start nginx
4.设为开机启动
sudo systemctl enable nginx