Jump to content

Linux: Howto install nginx on CentOS


Leon

Recommended Posts

  • Administrators

Following is a guide for howto install the nginx load balancer on CentOS...

Lets start by installing the requirements.. type:

 

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

 

Now that we got what is needed, lets fetch nginx and install it..

1. wget http://sysoev.ru/nginx/nginx-0.5.35.tar.gz

2. tar xzvf nginx-0.5.35.tar.gz

3. cd nginx-0.5.35

5. ./configure --sbin-path=/sbin/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-md5=auto/lib/md5 --with-sha1=auto/lib/sha1

6. make

7. make install

Now you should have nginx installed and just need to configure it...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...