centos tomcat解压版安装

解压:

  tar -xzvf apache-tomcat-8.5.23.tar.gz -C /usr/local/java

配置Tomcat的环境变量:

  export CATALINA_HOME=/usr/local/java/apache-tomcat-8.5.23

  source /etc/profile

将Tomcat配置为服务: 

  cp /usr/local/java/apache-tomcat-8.5.23/bin/catalina.sh /etc/init.d/tomcat8

  chmod 755 /etc/init.d/tomcat8

  vi /etc/init.d/tomcat8

#chkconfig:
#description: tomcat8 service export JAVA_HOME=/usr/local/java/jdk1..0_151
export CATALINA_HOME=/usr/local/java/apache-tomcat-8.5.

  chkconfig --add tomcat8

启动关闭:

  service tomcat8 start

  service tomcat8 stop

查看状态:

  service tomcat8 status

上一篇:安装解压版本的MySQL,安装过程中的常见命令,检查windows系统错误日志的方式来检查MySQL启动错误,关于Fatal error: Can't open and lock privilege


下一篇:Java 断点调试总结