Install Nginx@Linux

96 阅读1分钟

nginx.png

Install Nginx At Linux

Install package download url : nginx: download ,recommended download Stable Version .

install pcre,gcc,openssl,zlib before install nginx .
yum install pcre pcre-devel gcc openssl openssl-devel zlib zlib-devel

PKUNZIP nginx-*.tar.gz
tar -zxvf nginx-*.tar.gz

Go to the decompressed directory execute
./configure
attention: To use the SSL protocol, run the following command
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

execute make
make

execute make install
make install

default install directory at liunx : /usr/local/nginx .

start nginx service : /usr/local/nginx/sbin/nginx or cd /usr/local/nginx/sbin ./nginx

author : peate