Ubuntu tomcat安装

  1. 下载tomcat压缩包:apache-tomcat-7.0.59.tar.gz
  2. 解压:$tar zxvf apache-tomcat-7.0.59.tar.gz
  3. 复制到:$ sudo cp -R apache-tomcat-7.0.59 /usr/local/tomcat
  4. 配置profile:

    1
    2
    export TOMCAT_HOME=/usr/local/tomcat
    export CATALINA_HOME=/usr/local/tomcat
  5. 启动:sudo sh startup.sh或sudo sh /usr/local/tomcat/startup.sh

  6. 查看:http://localhost:8080