tomcat端口配置方法
Contact me
或者用邮件交流 jacky.wucheng@foxmail.com
基础概念
tomcat重要概念: server, connector, container
- Connector
- Container
- Engine (handles all requests for a Service)
- Host (handles all requests for a particular virtual host)
- Context (handles all requests for a specific web application)
AJP
AJP:Apache JServ Protocol, AJP is a binary protocol that can proxy inbound requests from a web server through to an application server that sits behind the web server.
用来将Apache作为前端负载均衡时,apache跟tomcat通信的协议,类似于wsgi。
参考:https://en.wikipedia.org/wiki/
Tomcat里的端口
- Server Shutdown Port,只接受来自本机发来的shutdown命令,关闭tomcat进程。参考链接:https://tomcat.apache.org/tomcat-7.0-doc/config/server.html
- rmiRegistryPortPlatform,The port to be used by the JMX/RMI registry for the Platform MBeans. 参考资料:https://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html
- rmiServerPortPlatform,The port to be used by the Platform JMX/RMI server. 参考资料:https://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html
catalina-jmx-remote.jar下载地址: http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.65/bin/extras/
参考资料
- RMI:Java远程方法调用, Java RMI(Java Remote Method Invocation)
- 自己动手创建一个RMI demo
- JMX,(Java Management Extensions,即Java管理扩展)是Java平台上为应用程序、设备、系统等植入管理功能的框架。JMX可以跨越一系列异构操作系统平台、系统体系结构和网络传输协议,灵活的开发无缝集成的系统、网络和服务管理应用。 MBean 即 managed beans 被管理的Beans。
- jmx的解释和demo实现
- jmx原理解释