1. 程式人生 > >centos安裝tomcat步驟

centos安裝tomcat步驟

exp export source bin xxxx rtu sta .gz 官網

1.官網或wget下載apache-tomcat-8.5.9.tar.gz:

  cd /home/tar

  wget xxxxxxxxxx

  cp /home/tar/apache-tomcat-8.5.9.tar.gz /opt

  cd /opt

  tar -zxvf apache-tomcat-8.5.9.tar.gz

2.配置系統屬性

  vi /etc/profile

  在profile文件加入以下內容:

  --------------------------------------------------

  export CATALINA_BASE=/opt/apache-tomcat-8.5.9

  export CATALINA_HOME=/opt/apache-tomcat-8.5.9

  export TOMCAT_HOME=/opt/apache-tomcat-8.5.9

3.讓配置生效

  source /etc/profile

4.啟動

  /opt/apache-tomcat-8.5.9/bin/startup.sh

centos安裝tomcat步驟