【腾讯云开发中的坑1】java.net.BindException: Permission denied <null>:443

来源:互联网 发布:一落叶而知天下秋启示 编辑:程序博客网 时间:2024/06/04 23:18

参考文献:    http://blog.csdn.net/mchdba/article/details/46335861


1,启动报错显示

java.net.BindException: Permission denied <null>:443

后面省略。


在server.xml文件里面把Tomcat的http连接方式设置为80端口之后,运行tomcat的时候,提示“java.net.BindException: Permission denied:80”;https连接方式设置为443端口之后,运行tomcat的时候,提示“java.net.BindException: Permission denied:443”;


解答

Linux下可以 改为8080/8443等1024以上的端口, 用命令进行端口绑定。


打开server.xml


将下面代码中的433

<Connector port="443"protocol="HTTP/1.1"SSLEnabled="true"

    maxThreads="150"scheme="https"secure="true"

    keystoreFile="conf/www.trunkrong.com.jks"

    keystorePass="08qt9w61hx7v7x9"

    clientAuth="false"sslProtocol="TLS" />


改成8433就好

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"

    maxThreads="150" scheme="https" secure="true"

    keystoreFile="conf/www.trunkrong.com.jks"

    keystorePass="08qt9w61hx7v7x9"

    clientAuth="false" sslProtocol="TLS" />









阅读全文
1 0
原创粉丝点击