我在我们公司的VM(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:
答案 0 :(得分:0)
为来自网络中其他主机的流量设置防火墙
iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
,然后将网址请求更改为:http://IP-Adress/share