69 <Connector port="8081" protocol="HTTP/1.1"
只修改这一行即可
6、启动tomcat实例
[tomcat@master tomcat-shell]$ sh start_tomcat.sh /home/tomcat/tomcat-1/
/home/tomcat/tomcat-1
The tomcat instance /home/tomcat/tomcat-1 start succeed!!!
[tomcat@master tomcat-shell]$ sh start_tomcat.sh /home/tomcat/tomcat-2
/home/tomcat/tomcat-2
The tomcat instance /home/tomcat/tomcat-2 start succeed!!!
[tomcat@master tomcat-shell]$ lsof -i:8080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 7557 tomcat 48u IPv4 1810551 0t0 TCP *:webcache (LISTEN)
[tomcat@master tomcat-shell]$ lsof -i:8081
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 7617 tomcat 48u IPv4 1810751 0t0 TCP *:tproxy (LISTEN)
[root@master webapps2]# ps aux | grep java | grep -v grep | awk '{print $2}'
7557
7617
可以看到2个tomcat实例的PID是不同的,也就是说对某个实例进行操作是不会影响到另外一个实例的
Tomcat单机多实例部署(2)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/762e2e8ceeabf8b2ae99ee294cc4d061.html