配置linux Sphinx服务默认文件修改

配置linux Sphinx服务默认文件修改

By ✿青歌◞ at 2017-12-17
0人收藏 • 1572人看过

一个是官方的https://github.com/lincanbin/Carbon-Forum/blob/master/docker_resources/sphinx.conf 配置文件

一个是sphinx安装以后的文件  官方给的配置文件跟默认安装的文件路径不一样  已经修改了一部分老大看下改的对不对。附件已传

@lincanbin

14 个回复 | 最后更新于 2017-12-17
✿青歌◞
2017-12-17
#1

@lincanbin  老大看下改的对不对 我安装的是Sphinx 2.2.11-release版本

lincanbin
2017-12-17
#2

回复#1 @✿青歌◞ :

好长,有没有错看运行后有没有出现错误日志就是了。

如果出错了错误日志会提示你第几行错了。

✿青歌◞
2017-12-17
#3

回复#2 @lincanbin :

QQ截图20171217233538.jpg

这个应该是可以了吧 我也看不懂

lincanbin
2017-12-17
#4

回复#3 @✿青歌◞ :

你ps里能看到Sphinx的进程吗?

✿青歌◞
2017-12-17
#5

回复#4 @lincanbin :

  PID TTY          TIME CMD

 4868 pts/0    00:00:00 bash

 5708 pts/0    00:00:00 vim

 6619 pts/0    00:00:00 vim

 6736 pts/0    00:00:00 vim

 6829 pts/0    00:00:00 vim

 6870 pts/0    00:00:00 vim

 7003 pts/0    00:00:00 vim

15356 pts/0    00:00:00 ps


好像没有9312  

lincanbin
2017-12-17
#6

回复#5 @✿青歌◞ :

数据库里有反向索引出现吗?

我这摸不到你机器也不好知道成没成。

✿青歌◞
2017-12-17
#7

回复#6 @lincanbin :

QQ截图20171217234010.jpg

不知道怎么看 ···

lincanbin
2017-12-17
#8

回复#7 @✿青歌◞ :

不在这个库。

✿青歌◞
2017-12-17
#9

回复#8 @lincanbin :

那是在那个库?

lincanbin
2017-12-17
#10

回复#9 @✿青歌◞ :

算了,应该不用看了。

服务没开起来。

✿青歌◞
2017-12-17
#11

回复#10 @lincanbin :



老大帮我看下 这个配置文件是不是弄错了

✿青歌◞
2017-12-17
#12

回复#10 @lincanbin :

# /usr/local/sphinx/bin/searchd --config /usr/local/sphinx/etc/sphinx.conf

Sphinx 2.2.11-id64-release (95ae9a6)

Copyright (c) 2001-2016, Andrew Aksyonoff

Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)


using config file '/usr/local/sphinx/etc/sphinx.conf'...

WARNING: key 'sql_query_info' was permanently removed from Sphinx configuration. Refer to documentation for details.

WARNING: key 'charset_type' was permanently removed from Sphinx configuration. Refer to documentation for details.

WARNING: key 'max_matches' was permanently removed from Sphinx configuration. Refer to documentation for details.

FATAL: failed to lock pid file '/usr/local/sphinx/var/log/searchd.pid': Resource temporarily unavailable (searchd already running?)


打开进程就出现这个

lincanbin
2017-12-17
#13

回复#12 @✿青歌◞ :

太长了没办法看。

✿青歌◞
2017-12-17
#14

source kms_db

{

type = mysql


sql_host = localhost

sql_user = hz

sql_pass = 12

sql_db = wk

sql_port


这个kms_db 是什么意思 是随便写的 还是数据库


登 录


现在注册

QQ  登 录    Weibo  登 录    GitHub  登 录