当前位置:网站首页>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 :

边栏推荐
- c语言---18 函数(自定义函数)
- How to solve the problem that iterative semi supervised training is difficult to implement in ASR training? RTC dev Meetup
- unity 等高线创建方法
- box-sizing
- 鲲鹏arm服务器编译安装PaddlePaddle
- Detailed explanation of redis data types
- [learn ZABBIX from scratch] I. Introduction and deployment of ZABBIX
- Convolution kernel and characteristic graph visualization
- 【环境搭建】zip 分卷压缩
- 文本对比学习综述
猜你喜欢

Keras deep learning practice (11) -- visual neural network middle layer output

v-if 和 v-show 的区别

Virtual machines on the same distributed port group but different hosts cannot communicate with each other

【从零开始学zabbix】一丶Zabbix的介绍与部署Zabbix

遠程辦公之:在家露營辦公小工具| 社區征文

智慧园区SaaS管理系统解决方案:赋能园区实现信息化、数字化管理

How to avoid placing duplicate orders

laravel 8 实现Auth登录

Unit contour creation method

How to solve the problem that iterative semi supervised training is difficult to implement in ASR training? RTC dev Meetup
随机推荐
在线文本实体抽取能力,助力应用解析海量文本数据
ASCII code table extracted from tanhaoqiang's C program design (comparison table of common characters and ASCII codes)
laravel8使用faker调用工厂填充数据
Go language concurrency model mpg model
3环杀掉360安全卫士进程
厨卫电器行业B2B交易协同管理平台开发,优化企业库存结构
六石管理学:垃圾场效应:工作不管理,就会变成垃圾场
`Thymeleaf ` template engine comprehensive analysis
二叉树中最大路径和[处理好任意一颗子树,就处理好了整个树]
leetcode:1504. 统计全 1 子矩形的个数
常见的单例模式&简单工厂
One click to generate University, major and even admission probability. Is it so magical for AI to fill in volunteer cards?
在宇宙的眼眸下,如何正确地关心东数西算?
R language constructs regression model diagnosis (normality is invalid), performs variable transformation, and uses powertransform function in car package to perform box Cox transform to normality on
JS remove string spaces
IDEA连接mysql自定义生成实体类代码
Some basic database operations (providing the original database information)
Halcon draw area into picture
pgsql查询分组中某个字段最大或者最小的一条数据
P2pdb white paper