标签:store ref exp ctp reload amazon auth usr systemctl
CentOS 7配置tomcat https并改端口为443:安装tomcat:
配置tomcat证书(有公司https key、crt文件情况):
设置密码
设置同上密码
修改端口为443
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" />
<Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="/etc/tomcat/tomcat.keystore" keystorePass="xxxxx" />
:wq
安装authbind
#ExecStart=/usr/libexec/tomcat/server start
ExecStart=/usr/bin/authbind -deep "/usr/libexec/tomcat/server" start
:wq
重启tomcat:
验证:
浏览器访问:https://ip
CentOS 7配置tomcat https并改端口为443
标签:store ref exp ctp reload amazon auth usr systemctl
原文地址:https://blog.51cto.com/yangzhiming/2430896