CentOS 6.x uses yum to install nginx environment

  

1, install the necessary packages for nginx

[root@web01 ~]# yum -y install openssl-devel pcre-devel zlib-devel

2. Install official yum source

[root@web01 ~]# rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6 -0.el6.ngx.noarch.rpm

3, install nginx

[root@web01 ~]# yum -y install nginx

Copyright © Windows knowledge All Rights Reserved