Linux安装Apache服务器tomcat启动后无法访问解决方法
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
我们一般在linux上部署好的apache服务,启动了也没有报异常,但是访问不了,大部分就是防火墙没有开启你服务的端口,如果你端口是80,则需要修改下面配置 就可以解决
查询是否有打开80端口,如果没有可通过两种方式处理:
/etc/init.d/iptables status
1.修改vi /etc/sysconfig/iptables命令添加使防火墙开放80端口(推荐)
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
2.关闭防火墙
/etc/init.d/iptables stop
#start 开启
#restart 重启
永久性关闭防火墙
chkconfig --level 35 iptables off
- 3
查看firewalld状态,如果是dead状态,即防火墙未开启
systemctl status firewalld
开启防火墙,没有任何提示即开启成功
systemctl start firewalld
重启
systemctl restart firewalld
- 4
再次通过systemctl status firewalld 查看 firewalld 状态,显示 running 即已开启了。
- 5
如果要关闭防火墙设置,可能通过systemctl stop firewalld 这条指令来关闭该功能。
Spring Boot与Spring Cloud学习使用可参看笔者博客




A beautiful web dashboard for Linux
最近提交(Master分支:27 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)