Enabling non root user to run tomcat with port 443

血红的双手。 提交于 2019-12-14 03:23:35

问题


I am trying to run tomcat with https as a non-root user. Configured server.xml with required port modification and added SSL configuration.

However when I execute sudo systemctl restart tomcat get following error in catalina.out

 org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["https-jsse-nio-443"]
      java.net.SocketException: Permission denied
       at sun.nio.ch.Net.bind0(Native Method)
       at sun.nio.ch.Net.bind(Net.java:433)
       at sun.nio.ch.Net.bind(Net.java:425)

回答1:


Follow this post

Resolution point number 5 works better

# setcap cap_net_bind_service+ep /path/to/bin/java


来源:https://stackoverflow.com/questions/46491732/enabling-non-root-user-to-run-tomcat-with-port-443

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!