tomcat 错误记录

错误整理

Author : Janloong Do_O

非root用户启动tomcat,端口配置为80时

 Failed to initialize end point associated with ProtocolHandler ["http-bio-80"]
java.net.BindException: Permission denied (Bind failed) :80

解决策略

使用端口映射将外网访问的80端口映射为8080端口
tomcat改为8080端口

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
service iptables save

你可能感兴趣的:(Web)