apache-tomcat-6.0.30套接字绑定失败/协议处理程序启动失败

时间:2014-03-27 16:50:56

标签: apache tomcat

org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730013] An attempt was made to access
a socket in a way forbidden by its access permissions.

org.apache.catalina.core.StandardService initialize
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-80]]
LifecycleException:  Protocol handler initialization failed: java.lang.Exception
: Socket bind failed: [730013] An attempt was made to access a socket in a way f
orbidden by its access permissions.

INFO: Deploying configuration descriptor manager.xml
org.apache.coyote.http11.Http11AprProtocol start
SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730013] An attempt was made to access
a socket in a way forbidden by its access permissions.

org.apache.catalina.core.StandardService start
SEVERE: Failed to start connector [Connector[HTTP/1.1-80]]
LifecycleException:  service.getName(): "Catalina";  Protocol handler start fail
ed: java.lang.Exception: Socket bind failed: [730013] An attempt was made to acc
ess a socket in a way forbidden by its access permissions.

运行apache-tomcat-6.0.30时显示错误。

1 个答案:

答案 0 :(得分:1)

默认情况下,进程无法使用特权端口。使用1024以上的端口。如果要通过端口80访问Tomcat,请使用iptables或类似映射端口80到8080,或使用提供的服务包装器(jsvc)以root身份启动,绑定到端口80,然后删除到非 - 特权用户。