有一些人xunsearch 中文搜索部分报错:fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
有下面几个方法:
方法一:fecshop关闭中文搜索xunsearch模块
关闭参看文档:http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-service-abc.html#4service
方法二:安装xunsearch,并配置
问题排查:
1.xunsearch 要安装启动
2.安装的时候严格按照文档操作:!!!!!!
http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-config.html
10.3部分漏了
添加一下host
2.1Linux下面添加host:vim /etc/hosts
, 添加下面的host映射,:wq
保存退出即可
127.0.0.1 xunsearch
2.2windows下面,打开文件 C:\Windows\System32\drivers\etc\hosts
文件,在里面添加
127.0.0.1 xunsearch
附录:
window添加host的资料:https://jingyan.baidu.com/article/a501d80cee03d8ec630f5e14.html