我在公司的虚拟机(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似乎在监听。
端口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:
server.xml
文件,并找到<Connector port="8080" address="127.0.0.1"
。如果有address
属性,请将其删除。这会将应用程序限制在本地主机上。 - Naman