nginx 安装

yum �y install pcre pcre-devel

yum �y install openssl openssl-devel

yum �y install gcc

mkdir �p /home/nginx/tools

cd /home/nginx/tools

wget http://nginx.org/download/nginx-1.6.3.tar.gz

useradd nginx �s /sbin/nologin �M

tar xf nginx-1.6.3.tar.gz

cd nginx-1.6.3

./configure --user=nginx --group=nginx--prefix=/application/nginx --with-http_stub_status_module --with-http_ssl_module

make

make install

ln -s /application/nginx-1.6.3/application/nginx/

ls -l /application/nginx/


你可能感兴趣的:(nginx安装)