<!-- google_ad_client = "pub-8876982994034985"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; //2006-10-16: doc google_ad_channel = "7088783256"; google_color_border = "EFEFEF"; google_color_bg = "EFEFEF"; google_color_link = "4C4C4C"; google_color_text = "000000"; google_color_url = "333333"; //--> <iframe name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-8876982994034985&amp;dt=1206978330953&amp;lmt=1205507886&amp;format=336x280_as&amp;output=html&amp;correlator=1206978330078&amp;channel=7088783256&amp;url=http%3A%2F%2Fwww.linuxeden.com%2Fhtml%2Fsolution%2F20071024%2F36477.html&amp;color_bg=EFEFEF&amp;color_text=000000&amp;color_link=4C4C4C&amp;color_url=333333&amp;color_border=EFEFEF&amp;ad_type=text_image&amp;ref=http%3A%2F%2Fwww.baidu.com%2Fs%3Fie%3Dgb2312%26bs%3Dlinux%25B0%25B2%25D7%25B0netbeans6.0%26sr%3D%26z%3D%26cl%3D3%26f%3D8%26wd%3Dlinux%25B0%25B2%25D7%25B0tomcat6.0%26ct%3D0&amp;frm=0&amp;cc=100&amp;ga_vid=1953823085.1206978331&amp;ga_sid=1206978331&amp;ga_hid=1832951868&amp;flash=9.0.115.0&amp;u_h=768&amp;u_w=1024&amp;u_ah=738&amp;u_aw=1024&amp;u_cd=32&amp;u_tz=480&amp;u_java=true" frameborder="0" width="336" scrolling="no" height="280" allowtransparency="allowtransparency"></iframe>

1、解压:tar -zxvf apache-tomcat-6.0.14.tar.gz,将解压后的目录改名为tomcat,移动到/usr/local/tomcat下。

2、vi /etc/profile,增加以下行:

JAVA_HOME=/usr/java/jdk1.6.0_02

CATALINA_HOME=/usr/local/tomcat

export JAVA_HOME CATALINA_HOME

3、cd /usr/local/tomcat/bin,./startup.sh。

(责任编辑:A6)