我这里有几个tomcat,如果同时使用的话,必须把端口号改成不同的:
1、首先cd进入tomcat目录的conf文件夹,vi打开server.xml配置文件
123456789 [ root @ localhost soft ] # sdownloadredissolrhometomcat-Sina-8081 Tomcat-souhu-8082 JDK redis-3.0.0.0 # gemm [ root @ localhost Tomcat-Solr ] # CD conf/[ root @ localhost conf ] # lscatalinacatalina.properties logging.properties tome
2、变更之一
8005更改为8885
服务器端口=& amp; #039; 8885&; #039; shutdown=&; #039; shutdown&; #039; security listener.documentation at/docs/config/listeners.htmllistenerclassname=& amp; #039; org.Apache.catalina.securital
3、变更之二
8080变成了8888
connectorport=&; #039; 8888&; #039; protocol=&; #039; http/1.1&; #039; connectiontimeout=&; #039; 20000&; #039; redirectport=&; #039; 8443&; #039; /
4、变更之三
8009变成了8889
! defineanajp 1.3 connectoronport 8009connector port=& amp; #039; 8889&; #039; protocol=&; #039; ajp/1.3&; #039; redirectport=&; #039; 8443&; #039; /
5、wq保存结束
最后,请尝试在tomcat的bin目录./startup.sh中启动。 OK
详情请访问云服务器、域名注册、虚拟主机的问题,请访问西部数码代理商官方网站: www.chenqinet.cn