虚拟机和nginx的一些问题

本机浏览器访问nginx时,通过虚拟机ifconfig 命令找到IP地址后,启动nginx后即可看到欢迎页。

 

在安装Linux centOS时和nginx安装配置时遇到一些问题,参考的资料:

http://www.jb51.net/article/108746.htm

http://blog.csdn.net/c233728461/article/details/52679558

https://www.jianshu.com/p/6d036a7ef15f

 

 

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –dport 21 -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT

-A INPUT -j REJECT –reject-with icmp-host-prohibited
-A FORWARD -j REJECT –reject-with icmp-host-prohibited
COMMIT

 

出现linux 安装openssl-fips-2.0.5时
openssl-fips-2.0.5时报错
Operating system: x86_64-whatever-linux2 You need Perl 5.

解决办法:

需要安装 perl-5https://www.cpan.org/src/README.html
    wget https://www.cpan.org/src/5.0/perl-5.28.0.tar.gz
 tar -xzf perl-5.28.0.tar.gz
 cd perl-5.28.0
 ./Configure -des -Dprefix=$HOME/localperl
 make
 make test
 make install

你可能感兴趣的:(nginx)