无法访问虚拟机内的tomcat

本文介绍了解决在VMware中安装的Linux系统上配置的服务无法从宿主机访问的问题。通过检查并停用firewalld服务,最终实现了宿主机与虚拟机之间的正常通信。

在wmware中安装linux后安装好数据库,JDK及tomcat后启动服务,虚拟机中可以访问,但是主机却无法访问,但是同时主机和虚拟机之间可以ping的通。


service firewalld status


Redirecting to /bin/systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since 三 2017-11-29 03:02:40 CST; 1h 50min ago
     Docs: man:firewalld(1)
 Main PID: 683 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─683 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid


11月 29 04:16:34 localhost.localdomain firewalld[683]: WARNING: ICMP type 'failed-policy' is not supported by the kernel for ipv6.
11月 29 04:16:34 localhost.localdomain firewalld[683]: WARNING: failed-policy: INVALID_ICMPTYPE: No supported ICMP type., ig...time.
11月 29 04:16:34 localhost.localdomain firewalld[683]: WARNING: ICMP type 'reject-route' is not supported by the kernel for ipv6.
11月 29 04:16:34 localhost.localdomain firewalld[683]: WARNING: reject-route: INVALID_ICMPTYPE: No supported ICMP type., ign...time.
11月 29 04:38:10 localhost.localdomain firewalld[683]: WARNING: ICMP type 'beyond-scope' is not supported by the kernel for ipv6.
11月 29 04:38:10 localhost.localdomain firewalld[683]: WARNING: beyond-scope: INVALID_ICMPTYPE: No supported ICMP type., ign...time.
11月 29 04:38:10 localhost.localdomain firewalld[683]: WARNING: ICMP type 'failed-policy' is not supported by the kernel for ipv6.
11月 29 04:38:10 localhost.localdomain firewalld[683]: WARNING: failed-policy: INVALID_ICMPTYPE: No supported ICMP type., ig...time.
11月 29 04:38:10 localhost.localdomain firewalld[683]: WARNING: ICMP type 'reject-route' is not supported by the kernel for ipv6.
11月 29 04:38:10 localhost.localdomain firewalld[683]: WARNING: reject-route: INVALID_ICMPTYPE: No supported ICMP type., ign...time.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# service firewalld stop
Redirecting to /bin/systemctl stop firewalld.service
[root@localhost ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值