1.修改tomcat的显示名字
打开/bin/catalina.bat
:doStart
shift
if "%TITLE%" == "" set TITLE=ProjectManage_Tomcat //ProjectManage_Tomcat就是tomcat的显示名字
set _EXECJAVA=start "%TITLE%" %_RUNJAVA%
if not ""%1"" == ""-security"" goto execCmd
shift
echo Using Security Manager
set "SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy"
goto execCmd
2.配置htts证书和80端口,转443
conf/server.xml
<Connector port="80" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000"
redirectPort="443" />
<!--keystoreFile地址 ,keystorePass密码,pfx类型要加上keystoreType="PKCS12"-->
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreType="PKCS12"
keystoreFile="D:\apache-tomcat\apache-tomcat-7.0.82\conf\cert\wx.ggimage.com.pfx"
keystorePass="4k6KsAhN" />
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- 安装证书加端口 jks类型-->
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="D:\Tomcat\apache-tomcat-7.0.79-wechat\conf\cert\wx.sailner.com.jks"
keystorePass="fpswz805i6" />
3.tomcat控制台中文乱码
D:\Program Files\apache-tomcat-8.5.54\conf\logging.properties
#java.util.logging.ConsoleHandler.encoding = UTF-8
修改成
java.util.logging.ConsoleHandler.encoding = GBK