Tags:

Install GCC

     sudo apt-get install gcc

Compile environment for installing gcc-c +

     sudo apt-get install build-essential

Install PCRE

cd pcre-version

./configure

make

sudo make install

Install zlib

cd zlib-version

./configure

make

sudo make install

Install openSSL

cd openssl-version

./config

make

sudo make install

Download nginx _ sudoma-master.zip

unzip nginx_upstream_check_module-master.zip

cd nginx-version

patch -p1 < location-of-healthcheck/check.version.patch

./configure –with-http_stub_status_module –with-openssl=/usr/local/ssl/include/openssl –prefix=/opt/nginx –add-module=location-of-healthcheck

make

sudo make install

Modify configuration file

cd /opt/nginx/conf

Modify nginx. Conf

Start nginx

cd /opt/nginx/sbin

./sbin/nginx -c location-of-nginx.conf

Turn off nginx

./sbin/nginx -s stop

Restart nginx

./sbin/nginx -s reload

Remarks:

error while loading shared librariesThe solution to

This is how you run your program when you encounter an error like this:

./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory

That means the system does not know which directory to put XXX. So.

This is the time to add XXX. S to / etc / ld.so.confO where the directory.

In general, there are many so files in / usr / local / LibRecord, so add / usr / L to / etc / ld.so.confThe line ocal / lib solves this problem.

After you archive / etc / ld.so.conf, execute [/ SBIN/ ldconfig-v] to update before it takes effect.

NginxDeployment on ubutu

Tags:

Original address: http: / my.oschina.net / rayIn Hang Zhou / blog / 485344

Similar Posts:

Link of this Article: Nginx deployment on ubutu

Leave a Reply

Your email address will not be published. Required fields are marked *