centos7安装tomcat

2025-04-05 12:02:12

1、部署java环境:# tar xf jdk-7u76-linux-x64.tar.gz# mv jdk1.7.0忧溲枷茫_76/ /usr/local/java# vim /etc/profile.d/java.sh export JAVA_HOME=/usr/local/java export PATH=$JAVA_HOME/bin:$PATH# source /etc/profile.d/java.sh# java -version java version "1.7.0_76” Java(TM) SE Runtime Environment (build 1.7.0_76-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)

centos7安装tomcat

2、安装tomcat: 拭貉强跳# tar xf apache-tomcat-7.0.73.tar.gz # mv apache-tomcat-7.0.73 /usr/local/tomcat # useradd -d /usr/local/tomcat tomcat # chown tomcat.tomcat /usr/local/tomcat/ -R

3、启动tomcat:#cd /usr/local/tomcat/bin#./startup.sh (关闭shutdown.sh)#netstat -tanp |grep 8080 查询一下是否启动 (如图)

centos7安装tomcat
centos7安装tomcat
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢