我需要安装sphinxsearch的邮件。当我尝试运行它时,我得到了:
root@78c3f1ee01ed:/var/log# /etc/init.d/sphinxsearch start
Starting sphinxsearch: Sphinx 2.0.4-id64-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
listening on 127.0.0.1:9312
listening on 127.0.0.1:9306
precaching index 'main1'
precaching index 'main2'
precaching index 'main3'
precaching index 'main4'
precaching index 'dailydelta1'
precaching index 'delta1'
precaching index 'tag1'
precaching index 'note1'
precached 8 indexes in 0.003 sec
ERROR.日志为空。
root@78c3f1ee01ed:/var/log# ls -al sphinxsearch/
total 8
drwxrwxrwx 2 sphinxsearch root 4096 Oct 21 2013 .
drwxrwxr-x 11 root syslog 4096 Dec 1 11:07 ..交换机tail -f /var/log/searchd.log &
root@78c3f1ee01ed:/var/log# /etc/init.d/sphinxsearch start
Starting sphinxsearch: Sphinx 2.0.4-id64-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
listening on 127.0.0.1:9312
listening on 127.0.0.1:9306
precaching index 'main1'
precaching index 'main2'
precaching index 'main3'
precaching index 'main4'
precaching index 'dailydelta1'
precaching index 'delta1'
precaching index 'tag1'
precaching index 'note1'
precached 8 indexes in 0.003 sec
ERROR.
root@78c3f1ee01ed:/var/log# [Mon Dec 1 14:47:38.219 2014] [ 920] Child process 921 has been forked
[Mon Dec 1 14:47:38.219 2014] [ 921] listening on 127.0.0.1:9312
[Mon Dec 1 14:47:38.219 2014] [ 921] listening on 127.0.0.1:9306
[Mon Dec 1 14:47:38.223 2014] [ 921] binlog: replaying log /var/data/binlog/binlog.001
[Mon Dec 1 14:47:38.223 2014] [ 921] binlog: replay stats: 0 rows in 0 commits; 0 updates; 0 indexes
[Mon Dec 1 14:47:38.223 2014] [ 921] binlog: finished replaying /var/data/binlog/binlog.001; 0.0 MB in 0.000 sec
[Mon Dec 1 14:47:38.223 2014] [ 921] binlog: finished replaying total 1 in 0.000 sec
[Mon Dec 1 14:47:38.223 2014] [ 921] accepting connections看起来它正在运行,但仍然输出错误。
发布于 2014-12-02 16:51:28
在/etc/init.d/sphinxsearch中启动bash运行函数
start)
echo -n "Starting $DESC: "
do_start
[ -n "$STARTDELAY" ] && sleep $STARTDELAY
if running ; then
echo "$NAME."
else
echo " ERROR."
fi
;;正在运行查找PIDFILE。
running()
{
# Check if the process is running looking at /proc
# (works for all users)
# No pidfile, probably no daemon present
[ ! -f "$PIDFILE" ] && return 1
# Obtain the pid and check it against the binary name
pid=`cat $PIDFILE`
running_pid $pid $DAEMON || return 1
return 0
}默认PIDFILE设置在/var/run/sphinhsearch中
PIDFILE=/var/run/sphinxsearch/searchd.pid但在我的配置文件中,"using config file '/etc/sphinxsearch/sphinx.conf'...“PID已保存到"pid_file = /var/run/piler/searchd.pid”。
更改PID位置后,"PIDFILE=/var/run/piler/searchd.pid“全部正常工作。
Starting sphinxsearch: Sphinx 2.0.4-id64-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
listening on 127.0.0.1:9312
listening on 127.0.0.1:9306
precaching index 'main1'
precaching index 'main2'
precaching index 'main3'
precaching index 'main4'
precaching index 'dailydelta1'
precaching index 'delta1'
precaching index 'tag1'
precaching index 'note1'
precached 8 indexes in 0.003 sec
sphinxsearch.发布于 2014-12-01 20:53:34
这个“错误”似乎不是来自于狮身人面像。找不到任何情况下,sphinx将只输出一个平淡的错误,它至少试图解释。检查init脚本的源代码,也许它会有线索。
尽管如此,根据我的经验,狮身人面像不喜欢'binlog_path‘没有正确设置。它倾向于在没有任何消息的情况下随意地死掉(但日志仍然显示服务器在死之前启动)。
检查sphinx.conf中定义的文件夹1)是否作为文件夹存在,以及3)是否可由sphinxsearch用户写入。
https://stackoverflow.com/questions/27227624
复制相似问题