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,安装)