War包:cd\-----cd sina-----jar -cvf news.war news
打成war包,扔到webapps
8443:秘密验证
加密的链接器:keytool -genkey -alias tomcat -keyalg RSA
在server.xml中配置:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
添加:添加keystoreFile=”conf/.keystore”
Keystorepass=”123456”
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="conf/.keystore" keystorepass="123456"/>
登陆时为:https://localhost:8443/
TOMCAT配置:conf---tomcat-users.xml
配置管理员如下:<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="tomcat,manager"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>