linux-Centos7-安装nginx

1.安装nginx依赖环境

yum -y install gcc pcre-devel zlib-devel openssl openssl-devel

2.下载nginx安装包

   http://nginx.org/en/download.html

3.解压安装包

 linux-Centos7-安装nginx

4.编译并指定安装位置

linux-Centos7-安装nginx

5.安装

linux-Centos7-安装nginx

6.启动

linux-Centos7-安装nginx

 

 

linux-Centos7-安装nginx

linux-Centos7-安装nginx

 

 

开放端口:firewall-cmd --add-port=80/tcp --permanent

7.开机自启

 




上一篇:CentOS安装新版Git


下一篇:CentOS6的python2.6升级到python2.7以上版本