Linux下启动tomcat

1.关闭Linux防火墙
查看防火墙状态service iptables status

临时关闭 service iptables stop
临时开启 service iptables start
不需要重启计算机即可生效

永久关闭 chkconfig iptables off
永久开启 chkconfig iptables on
必须重启计算机才能生效
2.开启tomcat
进入tomcat的bin目录下cd /usr/local/apache-tomcat-8.5.37/bin
ls查看当前文件夹下的文件Linux下启动tomcat
打开startup.shLinux下启动tomcat
出现Tomcat started字样,即打开成功
3.查看本地IP

ifconfig

Linux下启动tomcat
4.WIN下访问 ip:8080![在这里插入图片描述Linux下启动tomcat
5.Perfect!