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) |