CentOS7安装tomcat

  1. 安装前的准备

    yum install wget vim -y
    
  2. 安装java-1.8

  3. 下载解压安装

    cd /root
    wget https://mirror-hk.koddos.net/apache/tomcat/tomcat-9/v9.0.41/bin/apache-tomcat-9.0.41.tar.gz
    tar -xf apache-tomcat-9.0.41.tar.gz
    mv /root/tomcat-9.0.41 /usr/local/tomcat
    
  4. 修改环境变量

    vim /etc/profile
    
    export TOMCAT_HOME=/usr/local/tomcat
    export CATALINA_HOME=/usr/local/tomcat
    export PATH=$PATH:/usr/local/tomcat/bin
    
    ESC
    :wq
    
    source /etc/profile
    
  5. 常用命令

    # 常用命令
    shutdown.sh      关闭运行tomcat
    startup.sh       前台运行tomcat
    daemon.sh        后台运行tomcat
    catalina.sh      管理tomcat进程
    version.sh       显示tomcat版本
    configtest.sh    测试tomcat配置
    # 以下命令自行研究
    ciphers.sh
    digest.sh
    makebase.sh
    setclasspath.sh
    tool-wrapper.sh
    
Copyright © 豆包嘿嘿~ 2012-∞ 冀ICP备17033181号 all right reserved,powered by Gitbook修订: 21-06-15 16:29

results matching ""

    No results matching ""