Ubuntu install nginx

1. Download nginx.tar.gz

2. Unzip the cd to the decompressed package

3. Execute ./configure --prefix=/usr/nginx_run --with-pcre=/usr/pcre

4. make

5. make install

6. cd /usr/nginx_bin/sbin ./nginx start nginx ./nginx -s stop stop nginx ./nginx -s reload restart nginx

(requires apt-get install openssl and pcre installation)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326837476&siteId=291194637