④.tomcat配置文件server.xml

8005端口

<Server port="8005" shutdown="SHUTDOWN">

telnet 127.0.0.2 8005 

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
SHUTDOWN
Connection closed by foreign host.
[root@RainGod tomcat]# ss -nutlp|grep java
[root@RainGod tomcat]# ps -ef|grep java
root     30338 30281  0 21:09 pts/0    00:00:00 grep --color=auto java

tomcat管理端配置文件

   <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
			  #制定配置文件
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

web服务端口参数

<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000" #连接超时时间
               redirectPort="8443" />    #https端口

8009端口

apache连接tomcat端口

站点目录参数

      <Host name="localhost"  appBase="webapps"
      unpackWARs="true" autoDeploy="true">
webapps    站点目录
unpackWARs 自动解压
autoDeploy  自动部署

日志格式

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
posted @ 2021-04-26 22:32  老夫聊发少年狂88  阅读(51)  评论(0)    收藏  举报