centos6安装tomcat9

1、下载tomcat9,tar.gz压缩文件:https://tomcat.apache.org/download-90.cgi

2、上传到linus,解压

3、开放8080端口并在防火墙中更新

/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
/etc/rc.d/init.d/iptables save

4、在tomcat   bin目录下,找到setclasspath.sh,在开头添加JAVA_HOME变量

JAVA_HOME=/usr/jdk-11.0.2

5、运行tomcat

./start.sh

猜你喜欢

转载自blog.csdn.net/weixin_38902950/article/details/88251553