您现在的位置是:网站首页> 编程资料编程资料
Linux下Tomcat启动正常,但浏览器无法访问的解决方法_linux shell_
2023-05-26
357人已围观
简介 Linux下Tomcat启动正常,但浏览器无法访问的解决方法_linux shell_
1、服务器可ping通
2、服务器抓本地的http请求包,可以抓到
3、本地抓服务器返回的http响应包,抓不到
经过查找,是由于开启了Linux防火墙
查看防火墙配置(需要root权限)
[root@localhost ~]# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)
Active: inactive (dead)关闭防火墙(需要root权限)
[root@localhost ~]# service iptables stop
以上这篇Linux下Tomcat启动正常,但浏览器无法访问的解决方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。
您可能感兴趣的文章:
相关内容
- Shell常见用法小记_linux shell_
- Linux 中makefile的命令包定义及使用_linux shell_
- 详解Windows与Linux共享文件夹互相访问_linux shell_
- Linux makefile 和shell文件相互调用实例详解_linux shell_
- linux 查找大目录和大文件的方法(推荐)_linux shell_
- 关于Linux反空闲设置的两种方法总结_linux shell_
- 设置Linux系统的空闲等待时间TMOUT的方法_linux shell_
- 详谈linux中sar的使用方法_linux shell_
- 浅谈安装ORACLE时在Linux上设置内核参数的含义_linux shell_
- Linux 编程之进程fork()详解及实例_linux shell_
