Jump to content

Linux: Howto install nginx on CentOS


Leon
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...