【CentOs/Nginx】把Nginx1.20.2在linux上run起来(简版)


#wget http://nginx.org/download/nginx-1.20.2.tar.gz
#tar -xvzf nginx-1.20.2.tar.gz
#yum -y install pcre-devel openssl-devel
#cd nginx-1.20.2
#./configure
#make && make install
# whereis nginx
nginx: /usr/local/nginx
[root@localhost nginx-1.20.2]# cd /usr/local/nginx
[root@localhost nginx]# ls
conf html logs sbin
[root@localhost nginx]# cd sbin
[root@localhost sbin]# ls
nginx
[root@localhost sbin]# ./nginx

再访问http://192.168.32.128/
出现欢迎图

END

参考资料:

https://www.jianshu.com/p/c50209404b92