进入bin目录:cd apache-tomcat-8.5.53/bin/
启动tomcat:sh startup.sh
查看服务是否启动成功:ps -ef | grep tomcatLinux 安装tomcat 启动访问不了Apache页面 简单实用
浏览器访问tomcat:IP:端口
明明启动了,为啥访问不了呢??
Linux 安装tomcat 启动访问不了Apache页面 简单实用
解决方法:

切换到root用户:su -

停止防火墙:systemctl stop firewalld

禁用防火墙:systemctl disable firewalld

临时关闭防火墙:setenforce 0

永久关闭防火墙:sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config

重启tomcat:sh startup.sh restart

Linux 安装tomcat 启动访问不了Apache页面 简单实用
浏览器访问tomcat:IP:端口

成功!
Linux 安装tomcat 启动访问不了Apache页面 简单实用

相关文章:

  • 2021-06-22
  • 2022-12-23
  • 2021-11-09
  • 2021-12-11
  • 2021-04-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
猜你喜欢
  • 2021-04-27
  • 2021-10-07
  • 2021-06-17
  • 2022-01-18
  • 2021-10-16
相关资源
相似解决方案