---
title: "ubuntu liunx下安装tomcat遇到的一些问题记录"
author: "Doublecqw"
date: "2014-01-27T15:52:06Z"
tags: []
categories: ["开源软件"]
slug: "ubuntu-liunx-tomcat"
draft: false
lastmod: "2014-01-27T16:13:47Z"
id: 2009934
url: "https://doublecqw.iteye.com/blog/2009934"
---

tomcat 环境变量的配置:  在/apache-tomcat-7.0.50/bin/startup.sh末尾加入

JAVA\_HOME=/usr/lib/jvm/jdk1.7.0   
JRE\_HOME=/usr/lib/jvm/jdk1.7.0/jre   
PATH=$JAVA\_HOME/bin:$JRE\_HOME:$PATH   
CLASSPATH=.:$JAVA\_HOME/lib/dt.jar:$JAVA\_HOME/lib/tools.jar   
TOMCAT\_HOME=/usr/lib/apache-tomcat-7.0.50 

 

遇到:

connont find ./catalina.sh

the file is absent or dose not have execute  permission

在 apache-tomcat-\*/bin 下执行    
sudo chmod +x \*.sh