[linux-27] 安装tomcat

一、步骤
1.上传安装文件,并解压缩到/opt/tomcat
2.进入解压目录/bin,启动tomcat, ./startup.sh
在这里插入图片描述
3.开放端口8080
测试是否安装成功:
在windows/linux下访问:http://linuxip:8080
[root@test100 bin]# firewall-cmd --permanent --add-port=8080/tcp
success
[root@test100 bin]# firewall-cmd --reload
success
[root@test100 bin]# firewall-cmd --query-port=8080/tcp
yes

vim hsp.html
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/sinat_41739591/article/details/123783904