我很难执行网站。
在显示错误的tomcat日志之后: Tomcat版本:7.0.76 CentOS 7.0
$Worker.run(ThreadPoolExecutor.java:622)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Permissão negada (connect failed)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
拜托,有人可以帮帮我吗? :) THX
答案 0 :(得分:0)
就我而言,涉及到SELinux。必须启用拒绝的活动,这是我的方法:
grep postgres /var/log/audit/audit.log > ~/tomcat_w_postgres.log
audit2allow -i tomcat_w_postgres.log -M tomcat_w_postgres
semodule -i tomcat_w_postgres.pp