无法连接到Alfresco。

4
我在公司的虚拟机(Centos)上安装了Alfresco 5.0。 Alfresco日志看起来很好,Alfresco正在运行。但是,如果我尝试从我的办公室Windows PC调用Alfresco网站,则会显示“无法连接”。 我使用http://IP-Adress:8080/share访问该网站。 我最初认为防火墙正在阻止端口8080。其他Web应用程序(如Joomla或Moodle)也在Centos-VM上运行,并且可以通过Web访问而没有问题。 我陷入困境,需要任何帮助。 以下是netstat、iptables和nmap的结果:
端口8080似乎在监听。
netstat -an | grep 8080 | grep -i listen
tcp 0 0 :::8080 :::* LISTEN

这里是iptables的输出:

iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:mysql

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

NMap:

[root@SLCTEST alfresco-5.0.d]# nmap -sS -O 127.0.0.1

Starting Nmap 5.51 ( http://nmap.org ) at 2015-05-18 17:11 BRT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000035s latency).
Not shown: 989 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
139/tcp open netbios-ssn
445/tcp open microsoft-ds
3306/tcp open mysql
5432/tcp open postgresql
7070/tcp open realserver
8009/tcp open ajp13
8080/tcp open http-proxy
8443/tcp open https-alt
No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ).
TCP/IP fingerprint:

你能从本地登录吗?同时尝试禁用防火墙了吗?我没有看到任何其他原因可以使它在同一网络中工作。 - mitpatoliya
请确保查看Tomcat的server.xml文件,并找到<Connector port="8080" address="127.0.0.1"。如果有address属性,请将其删除。这会将应用程序限制在本地主机上。 - Naman
谢谢回复。不,我的Tomcat的server.xml文件中没有包含<Connector port="8080" address="127.0.0.1">。 - user4917549
尝试使用netstat -anp命令查看哪些进程正在使用这些端口,或者在Alfresco关闭时进行检查。 - Heiko Robert
1个回答

0

设置防火墙以处理来自网络中其他主机的流量

iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

并将URL请求更改为:http://IP-地址/share


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接