1、在CentOS6.4下安裝coreseek以前須要預先安裝如下軟件
mysql
1.打開終端 輸入 su 獲取管理員權限 2.輸入命令 yum install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel 在使用命令的時候出現以下錯誤Error: Cannot find a valid baseurl for repo: addons解決方法:echo "nameserver 8.8.8.8" >> /etc/resolv.conf
2、下載安裝coreseek-4.1 wget http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-beta.tar.gz tar xzvf coreseek-4.1-beta.tar.gz cd coreseek-4.1-beta ##安裝mmseg cd mmseg-3.2.14 ./bootstrap #輸出的warning信息能夠忽略,若是出現error則須要解決 ./configure --prefix=/usr/local/mmseg3 make && make install cd .. ##安裝coreseek cd csft-4.1 sh buildconf.sh #輸出的warning信息能夠忽略,若是出現error則須要解決 ./configure --prefix=/usr/local/coreseek --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --with-mysql make && make install cd .. ##測試mmseg分詞,coreseek搜索 cd testpack cat var/test/test.xml #此時應該正確顯示中文 /usr/local/mmseg3/bin/mmseg -d /usr/local/mmseg3/etc var/test/test.xml /usr/local/coreseek/bin/indexer -c etc/csft.conf --all --rotate /usr/local/coreseek/bin/search -c etc/csft.conf 網絡搜索 至此所有安裝成
---------------------------------------------------------------------------------c++
#啓動coreseek /usr/local/coreseek/bin/searchd -c /usr/local/coreseek/etc/csft.conf #建立 /usr/local/coreseek/bin/indexer --rotate --all /usr/local/coreseek/bin/indexer main --rotate >>/usr/local/coreseek/var/log/merge.log /usr/local/coreseek/bin/indexer delta --rotate >>/usr/local/coreseek/var/log/delta.log #中止coreseek /usr/local/coreseek/bin/searchd -c /usr/local/coreseek/etc/csft.conf --stop
啓動 searchd 服務時老是提示以下錯誤: index ‘test1′: search error: failed to open /var/lib/sphinx/test1.sph: sphinx 錯誤解決 index ‘test1′: search error: failed to open /var/lib/sphinx/test.sph:No such file or directory; NOT SERVING 這個錯誤多是沒有創建好索引致使的 輸入/usr/local/coreseek/bin/indexer -c /etc/sphinx.conf –all –rotate後錯誤消失 WARNING: compat_sphinxql_magics=1 is deprecated; please update your application and config:compat_sphinxql_magics設置在新版中可能(網上的資料中有提到是rt索引的緣由)已經被棄用了,可是程序中貌似有個默認值,須要手動在本身的配置文件中將其設置爲0。 此配置參數要加在:searchd { … compat_sphinxql_magics = 0 } 裏