1.下载地址 http://www.xunsearch.com/site/downloadhtml
2.解压xunsearch-full-latest.tar.bz2 压缩包xunsearch-full-1.4.10c++
3.将xunsearch-full-1.4.10上传到服务器home/xunsearchcentos
4.cd /home/xunsearchapi
5.sh setup.sh服务器
正常状况下能够顺利安装的,可是,每次你都会遇到不正常的状况。ui
由于个人窗口出现的是下面这样的,可是按enter和输入y 老是跳来跳去,反正就是不安装编码
据说正常是这样的centos7
看起来是字符编码不对,改改字符编码吧,然而网上的解决方法是rest
1.setting里改(这个没找到)code
2.修改 sysconfig/i18n(竟然不存在)
按理说,不改字符编码也不会影响安装,因而从新在centos7上下载安装。
参考:http://www.trojansun.com/xunsearch-new-install.html
wget http://www.xunsearch.com/download/xunsearch-full-latest.tar.bz2 tar -xjf xunsearch-full-latest.tar.bz2 cd xunsearch-full-1.4.10/ sh setup.sh
中文仍是乱码,因而删掉默认路径本身填/data/tool,确认的时候删掉[Y/n]后面的再填y
哈,正在安装了,但是现实老是残酷的,竟然安装失败
还好,bug见多了,心情没有起伏,找方法解决咯。安装
yum install glibc-headers gcc-c++ |
而后再从新安装就成功了,虽然仍是中文乱码。
记录一下别人安装过程出现的问题和解决方法
问题1:
1 2 |
configure: error: in `/opt/xunsearch-full-1.4.10/scws-1.2.3': configure: error: no acceptable C compiler found in $PATH |
解决方法:
1 |
yum install gcc |
问题2:
1 2 3 4 5 6 |
configure: error: *** You need a working C++ compiler to compile Xapian, but configure failed to *** find one. If you have a working C++ compiler, you can tell configure where *** to find it by invoking it like so: *** *** ./configure CXX=/opt/bin/c++ |
解决方法:
1 |
yum install glibc-headers gcc-c++ |
问题3:
1 2 |
configure: error: in `/opt/xunsearch-full-1.4.10/xapian-core-scws-1.2.22': configure: error: C++ preprocessor "/lib/cpp" fails sanity check |
解决方法:
1 |
yum install glibc-headers gcc-c++ |
问题4:
1 2 |
checking for zlib.h... no configure: error: zlib.h not found - required for brass, chert and flint (you may need to install the zlib1g-dev or zlib-devel package) |
解决方法:
1 2 |
yum search zlib #跟我环境同样的能够略过,就是为了查查哪一个是我要安装的 yum install zlib-devel |
使用:
进入到/usr/local/xunsearch/bin
1 2 |
cd /usr/local/xunsearch/bin ./xs-ctl.sh restart |
能够看到默认的绑定端口已经运行了,xunsearch默认运行的是8383和8384
1 2 3 4 |
WARNING: no server[xs-indexd] is running (BIND:127.0.0.1:8383) INFO: re-starting server[xs-indexd] ... (BIND:127.0.0.1:8383) WARNING: no server[xs-searchd] is running (BIND:127.0.0.1:8384) INFO: re-starting server[xs-searchd] ... (BIND:127.0.0.1:8384) |