当前位置:网站首页>Port conflict handling method for tongweb
Port conflict handling method for tongweb
2022-06-24 14:22:00 【yeyuningzi】
Problem phenomenon :tongweb Service startup Tips :[SEVERE] [main] [core] [address already in use: 8005]

Tips 8005 The port is already in use , At this time, my computer has started tomcat tomcat The default shutdown port of is 8005. So we can use : close tomcat 、 modify tomcat Default off Port 、 modify tongweb port So that the ports used do not conflict .
This article describes not closing tomcat、 Don't modify tomcat The port is modified tongweb Port to handle such port conflicts .
To modify the port , Without starting the service , You need to modify the configuration file to achieve , So we need to understand tongweb Default port profile location for :
tongweb The default ports used are as follows :
Service program | function | Default port / agreement | Port function | Configuration file |
|---|---|---|---|---|
| TongWeb | The core process of providing services | 8088 | Default application access port | conf/tongweb.xml |
| 9060 | Default console port | |||
| 7200 | JMX port , And start two ports randomly | |||
| 5100 | EJB Remote port | |||
| 8005 | Default stop port |
so tongweb The default application access port 8088、 Console port 9060、jmx port 7200、EJB Remote port 5100 And the default stop port 8005 Are installed in the root directory conf In a folder tongweb.xml In the document ,

Find this file tongweb.xml, The contents are as follows ( Different versions may have different contents ):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tongweb>
<auto-deploy enabled="true" jsp-compile="false" dir="${tongweb.root}/autodeploy" check-interval="3000"/>
<hot-deploy enabled="false" watched-resource="WEB-INF/web.xml,MATA-INF/application.xml"/>
<apps>
<web-app name="console" original-location="${tongweb.upload}/console" location="${tongweb.sysapp}/console" context-root="/console" vs-names="admin" is-directory="true" enabled="true" description="console" deploy-order="1" object-type="sys" jsp-compile="false" dtd-validate="false" is-autodeploy="false" delegate="false"/>
<web-app name="heimdall" original-location="${tongweb.upload}/heimdall" location="${tongweb.sysapp}/heimdall" context-root="/heimdall" vs-names="admin" is-directory="true" enabled="true" description="heimdall" deploy-order="1" object-type="sys" jsp-compile="false" dtd-validate="false" is-autodeploy="false" delegate="false"/>
<web-app name="sysweb" original-location="${tongweb.upload}/sysweb" location="${tongweb.sysapp}/sysweb" context-root="/sysweb" vs-names="admin" is-directory="true" enabled="true" description="sysweb" deploy-order="1" object-type="sys" jsp-compile="false" dtd-validate="false" is-autodeploy="false" delegate="false"/>
<web-app name="ntkoSignServer" original-location="F:/SignServer/ntkoSignServer" location="F:/SignServer/ntkoSignServer" context-root="/ntkoSignServer" vs-names="server" is-directory="true" enabled="true" description="" deploy-order="100" object-type="user" jsp-compile="false" dtd-validate="false" is-autodeploy="false" version="" retire-state="none" retire-strategy="nature" retire-timeout="0" version-serial-number="1" delegate="false"/>
<connector-app name="genericra" original-location="${tongweb.upload}/genericra" location="${tongweb.sysapp}/genericra" is-directory="true" enabled="true" thread-pool="default-thread-pool" deploy-order="1" object-type="sys" dtd-validate="false" is-autodeploy="false" version="">
<property name="LogLevel" value="INFO"/>
<property name="JndiProperties" value="java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory,java.naming.provider.url=file:${tongweb.root}/apache-activemq/conf"/>
<property name="RMPolicy" value="OnePerPhysicalConnection"/>
<property name="SupportsXA" value="false"/>
<property name="ProviderIntegrationMode" value="jndi"/>
</connector-app>
</apps>
<server jsf="false">
<web-container jsp-development="true" parameter-encoding="UTF-8" response-encoding="UTF-8" jvm-route="" session-timeout="30" hung-thread-threshold="0" hostnameVerifier="NullHostnameVerifier">
<access-log pattern="%{yyyyMMddHHmmssSSS}t %U %m %a %D" suffix=".txt" log-extend="false" file-date-format="yy.MM.dd.HH"/>
<virtual-host name="admin" listeners="system-http-listener" accesslog-enabled="false" accesslog-dir="logs/access" sso-enabled="false" remote-filter-enabled="false">
<sso/>
<remote-filter/>
</virtual-host>
<virtual-host name="server" listeners="tong-http-listener" accesslog-enabled="false" accesslog-dir="logs/access" sso-enabled="false" remote-filter-enabled="false">
<sso/>
<remote-filter/>
</virtual-host>
<http-listener name="system-http-listener" port="9060" io-mode="nio2" redirect-port="8443" uri-encoding="GBK" parse-body-methods="POST,DELETE,PUT" default-virtual-host="admin" create-time="2019-10-29 10:54:11">
<ssl/>
<protocol max-threads="200" min-spare-threads="10"/>
<http-options/>
<advance/>
</http-listener>
<http-listener name="tong-http-listener" port="8088" status="started" address="0.0.0.0" io-mode="nio2" http2-enabled="false" ssl-enabled="false" redirect-port="8443" uri-encoding="UTF-8" use-body-encoding-for-uri="false" max-parameter-count="10000" max-post-size="2097152" parse-body-methods="POST" default-virtual-host="server" create-time="2019-10-29 10:54:11">
<ssl/>
<protocol not-allow-HTTP-methods="TRACE,OPTIONS,HEAD,CONNECT,DELETE" async-timeout="10000" enable-lookups="false" max-header-count="100" use-ipv-hosts="false" xpowered-by="false" backlog="100" accept-thread-count="1" connection-timeout="60000" keep-alive-timeout="60000" max-threads="200" min-spare-threads="10" processor-cache="200" tcp-no-delay="true" max-connections="10000" self-tuned="false">
<property name="threadPriority" value="5"/>
</protocol>
<http-options compression="off" compressable-mime-type="text/html,text/xml,text/plain" compression-min-size="2048" disable-upload-timeout="true" max-http-header-size="8192" max-keep-alive-requests="100"/>
<advance disable-keep-alive-percentage="75" selector-timeout="1000" usecomet="true" use-sendfile="true" oom-parachute="1048576"/>
<property name="server" value="webserver"/>
</http-listener>
<http-listener name="ejb-server-listener" port="5100" uri-encoding="GBK" parse-body-methods="POST" default-virtual-host="server" create-time="2019-10-29 10:54:12">
<ssl/>
<protocol max-threads="200" min-spare-threads="10"/>
<http-options/>
<advance/>
</http-listener>
<property name="complete.message.timeout.seconds" value="0"/>
<property name="max.attack.times" value="3"/>
<property name="blacklist.expired.hours" value="12"/>
<property name="interrupt.current.connect" value="true"/>
<property name="unloadDelay" value="2"/>
<property name="addWebinfClassesResources" value="false"/>
<property name="sessionLog" value="false"/>
<property name="hostHeaderGuard" value="false"/>
<property name="hostHeaderGuardWhiteList" value=""/>
</web-container>
<ejb-container>
<stateful/>
<singleton/>
<stateless/>
<mdb/>
</ejb-container>
<security-service>
<auth-realm name="defaultRealm" type="File">
<property name="UsersFile" value="twusers.properties"/>
<property name="GroupsFile" value="twgroups.properties"/>
</auth-realm>
</security-service>
<transaction-service transaction-timeout-in-seconds="3600"/>
<monitor-service monitoring-enabled="false" flush-interval="60" flush-time-threshold="1800" persist-enabled="false" rotation-limit-val="10" rotation-limit-unit="MB">
<monitor-config name="Memory" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="JVMMemoryPool" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="GarbageCollector" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="JVMThread" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="Compilation" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="ClassLoading" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="Runtime" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="OperatingSystem" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="TWServer" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="ConnectorAndThreadPool" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="DataSource" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="DataSourceLite" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="TransactionManager" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="JCA" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="WebModule" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="SessionManager" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="Loader" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
<monitor-config name="ResourceCache" monitoring-enabled="false" produce-interval="10" persistent-enabled="false"/>
</monitor-service>
<jmx-service port="7200" address="127.0.0.1" protocol="rmi"/>
<jms-service/>
<log-service file="${tongweb.root}/logs/server.log" rotation-limit="50 MB" rotation-timelimit="0" rotation-file-count="20" rotation-by-day="false" log-format="[%d{yyyy-MM-dd HH:mm:ss SSS}] [%p] [%t] [%c] [%m]%n" rotation="true" verbose="false" asynclog-on="false" thread-num="1" capacity="2147483647">
<module-log-levels ejb-container="INFO" web-container="INFO" cdi="INFO" jpa="INFO" jsf-impl="INFO" jsf-api="INFO" jta="INFO" jca="INFO" data-source="INFO" jms-resource="INFO" beanvalidation="INFO" naming="INFO" admin="INFO" configuration="INFO" deployment="INFO" monitor-service="INFO" core="INFO" security="INFO" rmi-service="INFO" systemout="INFO" other="INFO" javamail="INFO"/>
</log-service>
<log-save-path sql-log-path="logs" audit-log-path="logs/audit-log" persistence-log-path="persistence"/>
<compress-log-service compress-enabled="false,false,false" log-dir="${tongweb.root}/logs,${tongweb.root}/logs/access,${tongweb.root}/persistence" compress-obj="1,2,3" rotation-time="1,1,1" execution-time="1,1,1"/>
<snmp-service enabled="false" port="161" address="0.0.0.0" version="3" transportType="udp" engineID="62:a0:c1:81:11:c3:17:33" securityName="public" authKey="nmsAuthKey" privKey="myDesPriviateKey"/>
<jca-thread-pool name="default-thread-pool" min-threads="10" max-threads="200" queue="100" keep-alive-time="3600"/>
</server>
<snapshot>
<auto-snapshot interval-second="5" relation="or">
<contents jstack="true" jmap="true" config="true" monitor="true" system-log="true" access-log="true" gc-log="true"/>
</auto-snapshot>
<size-clear disk-remain-percent="20%" clear-percent="60%"/>
<time-clear timeout-day="30"/>
</snapshot>
</tongweb>
You can see the following information about ports :
system-http-listener That is, system console port information :
<http-listener name="system-http-listener" port="9060" io-mode="nio2" redirect-port="8443" uri-encoding="GBK" parse-body-methods="POST,DELETE,PUT" default-virtual-host="admin" create-time="2019-10-29 10:54:11">
<ssl/>
<protocol max-threads="200" min-spare-threads="10"/>
<http-options/>
<advance/>
</http-listener>
tong-http-listener namely http Channel port That is, application access port information :
<http-listener name="tong-http-listener" port="8088" status="started" address="0.0.0.0" io-mode="nio2" http2-enabled="false" ssl-enabled="false" redirect-port="8443" uri-encoding="UTF-8" use-body-encoding-for-uri="false" max-parameter-count="10000" max-post-size="2097152" parse-body-methods="POST" default-virtual-host="server" create-time="2019-10-29 10:54:11">
<ssl/>
<protocol not-allow-HTTP-methods="TRACE,OPTIONS,HEAD,CONNECT,DELETE" async-timeout="10000" enable-lookups="false" max-header-count="100" use-ipv-hosts="false" xpowered-by="false" backlog="100" accept-thread-count="1" connection-timeout="60000" keep-alive-timeout="60000" max-threads="200" min-spare-threads="10" processor-cache="200" tcp-no-delay="true" max-connections="10000" self-tuned="false">
<property name="threadPriority" value="5"/>
</protocol>
<http-options compression="off" compressable-mime-type="text/html,text/xml,text/plain" compression-min-size="2048" disable-upload-timeout="true" max-http-header-size="8192" max-keep-alive-requests="100"/>
<advance disable-keep-alive-percentage="75" selector-timeout="1000" usecomet="true" use-sendfile="true" oom-parachute="1048576"/>
<property name="server" value="webserver"/>
</http-listener>
ejb-server-listener namely ejb Service port information :
<http-listener name="ejb-server-listener" port="5100" uri-encoding="GBK" parse-body-methods="POST" default-virtual-host="server" create-time="2019-10-29 10:54:12">
<ssl/>
<protocol max-threads="200" min-spare-threads="10"/>
<http-options/>
<advance/>
</http-listener>jmx-server port And jmx Service port :
<jmx-service port="7200" address="127.0.0.1" protocol="rmi"/>
<jms-service/>8005 The port information of is hard to find , The content is :
<server jsf="false">No configuration It's the default 8005. Change this item to :
<server shutdown-port="8006" jsf="false">
Set the corresponding port as available .
Restart again tongweb service , See the effect :

边栏推荐
- 15 differences between MES in process and discrete manufacturing enterprises (Part 2)
- postgresql 之 ilist
- [learn ZABBIX from scratch] I. Introduction and deployment of ZABBIX
- Database considerations
- 【深度学习】NCHW、NHWC和CHWN格式数据的存储形式
- 21set classic case
- Getting to know cloud native security for the first time: the best guarantee in the cloud Era
- postgresql之词法分析简介
- 智源社区周刊#86:Gary Marcus谈大模型研究可借鉴的三个语言学因素;谷歌提出媲美Imgen的文生图模型Parti;OpenAI提出视频预训练模型VPT,可玩MC游戏
- c语言---18 函数(自定义函数)
猜你喜欢

Idea connection MySQL custom generated entity class code
![[leetcode] 10. Regular expression matching](/img/a9/4cdf8d46068a2d7ea6ac212f416157.png)
[leetcode] 10. Regular expression matching

港股上市公司公告 API 数据接口

tongweb使用之端口冲突处理办法

Explore cloud native databases and take a broad view of future technological development

c语言---18 函数(自定义函数)

SaaS management system solution of smart Park: enabling the park to realize information and digital management

One click to generate University, major and even admission probability. Is it so magical for AI to fill in volunteer cards?

Research on MySQL composite index
![[learn ZABBIX from scratch] I. Introduction and deployment of ZABBIX](/img/d1/4b21c8049f0377b54a18a9b267432e.png)
[learn ZABBIX from scratch] I. Introduction and deployment of ZABBIX
随机推荐
How to implement redis cache of highly paid programmers & interview questions series 115? How do I find a hot key? What are the possible problems with caching?
Successfully solved: selenium common. exceptions. SessionNotCreatedException: Message: session not created: This versi
Some basic database operations (providing the original database information)
Redis interview questions
Common singleton mode & simple factory
JS remove string spaces
Defoaming
Baidu map API drawing points and tips
文本对比学习综述
Go language - use of goroutine coroutine
Antd checkbox, limit the selected quantity
Solution of channel management system for food and beverage industry: realize channel digital marketing layout
laravel 8 实现Auth登录
【环境搭建】zip 分卷压缩
Development of B2B transaction collaborative management platform for kitchen and bathroom electrical appliance industry and optimization of enterprise inventory structure
Explore cloud native databases and take a broad view of future technological development
如何避免下重复订单
Keras深度学习实战(11)——可视化神经网络中间层输出
`Thymeleaf ` template engine comprehensive analysis
Télétravail: Camping à la maison gadgets de bureau | rédaction communautaire