1、
checking for OS
+ Linux 3.10.0-327.el7.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler cc is not found
解決方法:安裝gcc
yum -y install gcc
2、the HTTP rewrite module requires the PCRE library
解決方法:安裝pcre-devel解決問題
yum -y install pcre-devel
3、the HTTP gzip module requires the zlib library.
解決方法:安裝zlib-devel
yum -y install zlib-devel
4、bash: make: 未找到命令
解決方法:yum -y install gcc automake autoconf libtool make
5、查看進程
ps -ef |grep nginx
6、查看端口
netstat -ntlp|grep 80
7、開放80端口對外訪問
firewall-cmd --zone=public --add-port=80/tcp --permanent(執行完之后要重啟防火牆才能看到加入的規則)
8、重啟防火牆:firewall-cmd --reload
9、查看已經開放的端口:firewall-cmd --list-ports