问题内容: | checking for C compiler ... found but is not working ./configure error : C compiler gcc is not found | 原因是:Nginx的交叉编译 http://blog.csdn.net/fish43237/article/details/40515897 yum -y install gcc gcc-c++ autoconf automake make Tengine安装./configure: error: C compiler cc is not found |
解决安装nginx的nginx: [emerg] mkdir() "/var/temp/nginx/client" failed (2: No such file or directory)问题 | sudo mkdir -p /var/temp/nginx/client cd /usr/local/nginx/sbin/ ./nginx | |
查看Nginx进程 | ps aux|grep nginx | |
如果访问不到,首先查看防火墙是否关闭。 | 2、关闭nginx: 可以使用kill命令,但是不推荐使用。 推荐使用:./nginx -s stop 3、刷新配置:./nginx -s reload | 1. 新装的Linux系统/etc/sysconfig目录下无iptables文件 http://blog.csdn.net/allenmyth/article/details/41410799 2. 关闭防火墙 systemctl stop firewalld.service |
关于nginx配置成功后,无法访问的问题 | 1. [root@localhost ]#-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT 2. [root@localhost ]# /etc/init.d/iptables save 3. [root@localhost ]# /etc/init.d/iptables restart http://blog.csdn.net/Lulen0724155075/article/details/51789164 | http://blog.csdn.net/bbwangj/article/details/74502967
|
问题内容:
checking for C compiler ... found but is not working
./configure error : C compiler gcc is not found
原因是:Nginx的交叉编译
http://blog.csdn.net/fish43237/article/details/40515897
yum -y install gcc gcc-c++ autoconf automake make
Tengine安装./configure: error: C compiler cc is not found
http://blog.csdn.net/testcs_dn/article/details/39233569
解决安装nginx的nginx: [emerg] mkdir() "/var/temp/nginx/client" failed (2: No such file or directory)问题
sudo mkdir -p /var/temp/nginx/client
cd /usr/local/nginx/sbin/
./nginx
查看Nginx进程
ps aux|grep nginx
如果访问不到,首先查看防火墙是否关闭。
2、关闭nginx:
可以使用kill命令,但是不推荐使用。
推荐使用:./nginx -s stop
3、刷新配置:./nginx -s reload
1. 新装的Linux系统/etc/sysconfig目录下无iptables文件
http://blog.csdn.net/allenmyth/article/details/41410799
2. 关闭防火墙
systemctl stop firewalld.service
https://www.cnblogs.com/shiguotao-com/p/4562137.html
3. http://www.metsky.com/archives/822.html
关于nginx配置成功后,无法访问的问题
1. [root@localhost ]#-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
2. [root@localhost ]# /etc/init.d/iptables save
3. [root@localhost ]# /etc/init.d/iptables restart
http://blog.csdn.net/Lulen0724155075/article/details/51789164
http://blog.csdn.net/bbwangj/article/details/74502967