My nginx installation procedure
January 14th, 2010 by adminI really started to like nginx web server, and here is my procedure step by step how to install this server on CentOS 5.4
yum install gcc pcre-devel openssl-devel
wget http://nginx.org/download/nginx-0.7.65.tar.gz && tar xvfz nginx-0.7.65.tar.gz
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module
make
make install
ln -s /usr/local/nginx/conf /etc/nginx
ln -s /usr/local/nginx/logs /var/log/nginx
ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx
Then grab this init script for red hat from http://wiki.nginx.org/RedHatNginxInitScript and put it in /etc/init.d/nginx file. Chmod 755 the file and you are ready.
Posted in General linux admin | No Comments »