无法访问虚拟机内的tomcat

时间:2022-03-31 15:08:46

在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.