一、pcre依赖安装
1.Yum安装lrzsz出现错误

解决方法:执行如下代码即可,参考地址:https://www.jianshu.com/p/70e9dcf61ef9
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
yum clean all
yum makecache
2.在pcre-8.37目录下执行./configure报错

解决办法:https://www.cnblogs.com/yun965861480/p/6254014.html
二、Nginx启动

解决办法:http://www.xwood.net/_site_domain_/_root/5870/5874/t_c278506.html
三、Nginx启动后外网无法访问
解决办法:编辑防火墙,对外网开放nginx端口
查看nginx端口

编辑防火墙
[root@Linux123 conf]# vim /etc/sysconfig/iptables
重启防火墙
[root@linux123 conf]# service iptables restart
查看防火墙状态
[root@Linux123 conf]# service iptables status
本文介绍了解决CentOS系统中pcre依赖安装问题的方法,包括使用Yum安装lrzsz时遇到的问题及解决步骤。同时,文章还提供了在pcre-8.37目录下执行./configure时遇到错误的解决方案,并分享了Nginx启动后的常见问题及应对措施,如启动Nginx后外网无法访问的情况,通过编辑防火墙设置并开放Nginx端口来解决。

1万+

被折叠的 条评论
为什么被折叠?



