Install nginx and yumnginx in yum
1. Download an rpm package
Wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
2. Install this rpm package
Rpm-ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm
3. Start nginx Installation
Yum install nginx
How to install nginx in centos
Install the pcre Library before installing nginx
1. yum install pcre-devel.i686
2. Create a www group and a www user, and add the www user to the www user group.
Groupadd www
Useradd-g www
3. tar-zxvf nginx-0.8.55.tar.gz
4. cd nginx-0.8.55
Install nginx in the/usr/local/directory
5 ../configure -- prefix =/usr/local/nginx -- conf-path =/usr/local/nginx/conf/nginx. conf -- user = www -- group = www
6. make
7. make install
OK.
How to add a module after centos uses yum to install nginx
It seems that only compilation and installation are supported.
If not,
There is another way: Find another machine, operating system, including the path, which is the same as the machine where you want to add modules. Compile and install Nginx, after the installation, copy sbin/nginx to overwrite nginx on the machine where the module is added (find the path for yourself ). This poses a certain risk.