接上文。
1、拷贝第二份:
cd /usr/localcp -r tomcat1 tomcat2cd /usr/local/tomcat2/confvi server.xml
8005改成9005
8080 改成9080
8009改成9009
2、修改catalina.sh
#!/bin/shexport TOMCAT_HOME=/usr/local/tomcat2export CATALINA_HOME=/usr/local/tomcat2LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/libexport LD_LIBRARY_PATH
3、第二个TOMCAT设置为自启动
echo "/usr/local/tomcat2/bin/startup.sh" >>/etc/rc.d/rc.local