我想更新acceptcount&的连接器标签属性遗嘱执行人以下列方式。
<Connector acceptCount="1000"
address="${ajp.listen.address}"
connectionTimeout="20000"
executor="tomcatThreadPoolupdated1"
maxKeepAliveRequests="15"
port="${ajp.http.port}"
protocol="org.apache.coyote.ajp.AjpProtocol"/>
<Connector acceptCount="20000"
address="${bio.listen.address}"
connectionTimeout="20000"
executor="tomcatThreadPoolupdated2"
maxKeepAliveRequests="15"
port="${bio.http.port}"
protocol="org.apache.coyote.http11.Http11Protocol"
redirectPort="${bio.https.port}"/>
这是我的xml。 如果您使用awk提供解决方案,请解释解决方案。
<?xml version="1.0"?>
<Server port="${base.shutdown.port}" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector acceptCount="300"
address="${ajp.listen.address}"
connectionTimeout="20000"
executor="tomcatThreadPool"
maxKeepAliveRequests="15"
port="${ajp.http.port}"
protocol="org.apache.coyote.ajp.AjpProtocol"/>
<Connector acceptCount="200"
address="${bio.listen.address}"
connectionTimeout="20000"
executor="tomcatThreadPool111"
maxKeepAliveRequests="15"
port="${bio.http.port}"
protocol="org.apache.coyote.http11.Http11Protocol"
redirectPort="${bio.https.port}"/>
</Service>
</Server>