Home  >  Article  >  Backend Development  >  linux 安装了xunsearch服务,但是PHP连接显示:目标计算机积极拒绝

linux 安装了xunsearch服务,但是PHP连接显示:目标计算机积极拒绝

WBOY
WBOYOriginal
2016-06-06 20:25:211687browse

求助一下,我在本地虚拟机上安装了xunearch

telnet ip 22
可以连接

telnet ip 8383 就显示:无法打开到主机的连接。

用PHP去连接xunsearch,显示:
192.168.1.130:8383 [10061] 由于目标计算机积极拒绝,无法连接。

虚拟机上防火墙已经关闭。iptables -F
同时:netstat -nlut 确认 8383 8384都已打开

回复内容:

求助一下,我在本地虚拟机上安装了xunearch

telnet ip 22
可以连接

telnet ip 8383 就显示:无法打开到主机的连接。

用PHP去连接xunsearch,显示:
192.168.1.130:8383 [10061] 由于目标计算机积极拒绝,无法连接。

虚拟机上防火墙已经关闭。iptables -F
同时:netstat -nlut 确认 8383 8384都已打开

你只监听了localhost或者127.0.0.1吧,改成监听网卡IP或者监听0.0.0.0看看

你的xunsearch服务deamon开启了吗?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn