在centos7安装coreseek4.1

2017-07-07  本文已影响0人  stat0s2p

以下操作均在root用户下运行

yum install epel-release
yum groupinstall "Development Tools"
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum localinstall mysql57-community-release-el7-11.noarch.rpm
yum install mysql-community-devel
wget http://files.opstool.com/man/coreseek-4.1-beta.tar.gz
tar -xzvf coreseek-4.1-beta.tar.gz
cd coreseek-4.1-beta
 cd mmseg-3.2.14
./bootstrap
./configure --prefix=/opt/coreseek-4.1
make
make install
make clean
cd csft-4.1/
./buildconf.sh
./configure --prefix=/opt/coreseek-4.1 --without-unixodbc --with-mmseg --with-mmseg-includes=/opt/coreseek-4.1/include/mmseg/ --with-mmseg-libs=/opt/coreseek-4.1/lib/ --with-mysql
make
make install
make clean

在执行make命令会有些error安提示修改相关cpp文件重新make即可。

[Unit]
Description=Core Seek Searchd
After=syslog.target network.target remote-fs.target nss-lookup.target
   
[Service]  
Type=forking
PIDFile=/opt/coreseek-4.1/var/searchd.pid
ExecStart=/opt/coreseek-4.1/bin/searchd
ExecReload=/opt/coreseek-4.1/bin/searchd --stop
ExecStop=/opt/coreseek-4.1/bin/searchd --stop
PrivateTmp=true  

[Install]  
WantedBy=multi-user.target

执行indexer --all创建索引
执行systemctl enable searchd设置自动运行。
执行systemctl start searchd运行服务。

上一篇 下一篇

猜你喜欢

热点阅读