-

Comments

e2’s picture

===== preparing the environment =====

yum install pcre-devel
yum install zlib-devel
yum install openssl-devel

cd /download
wget http://nginx.org/download/nginx-0.7.64.tar.gz
tar -zxvf nginx-0.7.64.tar.gz
cd nginx-0.7.64/

==== compiling nginx =====

./configure --sbin-path=/usr/local/sbin --with-http_ssl_module
make
make install

==== start nginx =====
cd /usr/local/sbin/
nginx start
ps -ef | grep nginx

==== stop nginx ====
nginx pid file: "/usr/local/nginx/logs/nginx.pid"

to stop Nginx:
kill `cat /usr/local/nginx/logs/nginx.pid`

e2’s picture

-

e2’s picture

-