1.打开https端口
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="/path/keystorefile
e" keystorePass="keystorepassword"/>
2.由于linux下非root用户不能打开1024以下的端口,所以使用以下方法进行端口转换:
iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8443