linux (centos7) mounted nginx steps of

1, enter: / usr / java / nginx position
Download nginx: wget http://nginx.org/download/nginx-1.8.0.tar.gz
download OpenSSL: wget http://www.openssl.org/source/ openssl-fips-2.0.9.tar.gz
download zlib: wget http://zlib.net/zlib-1.2.11.tar.gz
download PCRE: wget ftp://ftp.csx.cam.ac.uk/ pub / software / programming / pcre /
pcre-8.38.tar.gz If not c ++ compiler environment, the installation had to, by yum install gcc-c ++ complete installation
2, the next step, compiler installation
installation OpenSSL:
[the root @ localhost] the tar FIPS-2.0.9.tar.gz OpenSSL-zxvf
[the root @ localhost] CD-OpenSSL FIPS-2.0.9
[the root @ localhost] ./config && && the make the make the install

安装pcre:
[root@localhost] tar zxvf pcre-8.38.tar.gz
[root@localhost] cd pcre-8.38
[root@localhost] ./configure && make && make install
安装zlib:
[root@localhost]tar zxvf zlib-1.2.11.tar.gz
[root@localhost] cd zlib-1.2.11
[root@localhost] ./configure && make && make install
最后安装nginx:
[root@localhost]tar zxvf nginx-1.8.0.tar.gz
[root@localhost] cd nginx-1.8.0
[root@localhost] ./configure && make && make install
3、启动nginx:
[root@localhost]cd /usr/local/nginx/sbin
[root@localhost]./nginx
[root@localhost]./nginx
[root@localhost]# ps -ef | grep nginx
root 11393 1 0 18:20 ? 00:00:00 nginx: master process ./nginx
11394 11393 0 18:20 00:00:00 the nobody nginx:? worker Process
root PTS 11405 989 18:21 0/0 = Auto nginx 00:00:00 grep --color
4, the browser enter the IP address, you can enter nginx Welcome page, thus nginx installation was successful;


10173291-8385f85f3d0e1a80.png
image.png

Reproduced in: https: //www.jianshu.com/p/77ddc2bbb1e0

Guess you like

Origin blog.csdn.net/weixin_34293902/article/details/91273573