nginx :: environment to build

 

ubuntu18.04 environment 

1
, requires gcc environment, if there is no gcc environment, you need to install APT install gcc 2 , install pcre dependent libraries PCRE (Perl Compatible Regular Expressions) is a Perl library, including perl-compatible regular expression library. The module uses nginx http pcre regular expressions to parse, so it is necessary to install pcre library on Linux, pcre - devel pcre is developed using a secondary development library. APT - GET install libpcre3 libpcre3- dev 3 , install zlib library dependencies zlib library provides a variety of compression and decompression of the way, nginx using zlib the contents of the package will be http gzip. APT - GET install zlib1g- dev 4 , dependent libraries to install ssl OpenSSL is a powerful Secure Sockets Layer cryptographic libraries include major cryptographic algorithms commonly used key and certificate management and SSL protocol encapsulation, and provides a wealth of applications procedures for testing or other purposes. nginx not only supports the http protocol, also supports https (http over ssl ie transmission protocol), so you need to install the OpenSSL library. APT - GET install OpenSSL 5Download the latest version of Nginx HTTP: // nginx.org/en/download.html 6 , source installation tar -zxvf nginx- 1.15 . 5 .tar.gz cd nginx - 1.15 . 5 . / The configure the make the make install

 

Installation path 
whereis nginx 

start
 / usr / local // nginx / sbin / nginx -c /usr/local/nginx/conf/nginx.conf 

disabled 
killall nginx 

check process 
PS -ef | grep nginx 

view port 
netstat -lnp | grep nginx

  View port occupied by
  ss -lntpd | grep: 80

 

Guess you like

Origin www.cnblogs.com/osbreak/p/10959384.html
Recommended