Mac下Tomcat的配置
文章来源:http://www.malisphoto.com/tips/tomcatonosx.html
安装ApacheTomcat6[size=x-small][/size]
#查看自己ID
dscl.read/Users/YourID
#Edittheshelllocalstartupscriptwithyourfavoritetexteditor.
#需要编辑这两个文件
nano~/.profile(BASHshell)
nano~/.tcsh(TCSHshell)
#Regardlessoftheeditoryouareusing,takenoteofthetextencodingandlinefeedtype.Generally,TomcatXMLconfigurationfilesshouldbesavedwithUTF-8encoding.
#Addthefollowinglinestothe.profilefile:(BASH)
#在上面的第一个文件里面写入一下内容
exportJAVA_HOME=/Library/Java/Home
exportCATALINA_HOME=/Library/Tomcat/Home
#Addthefollowinglinestothe.tcshrcfile:(TCSH)
#在上面的第二个文件里面写入以下内容
setenvJAVA_HOME/Library/Java/Home
setenvCATALINA_HOME/Library/Tomcat/Home
#一些注意事项
#Note:DONOTPUTATERMINATINGSLASHattheendoftheselines-e.g./Library/Java/Home/
#AterminatingslashwillscrewupmanyoftheTomcatbuildandrunscripts.
#Savethe.profileor.tcshfile
#Quitterminalandrestartit
#ExecuteanenvcommandtomakesureJAVA_HOMEandCATALINA_HOMEaresetcorrectly.
env
先写到这里