gpt4 book ai didi

ubuntu - sphinxsearch pid 文件为空,netstat 无任何报告

转载 作者:行者123 更新时间:2023-12-04 18:42:11 25 4
gpt4 key购买 nike

在 Ubuntu 10.04 上安装了 SphinxSearch。

每次我启动它时,pid 文件(/var/run/searchd.pid)都是一个空白文件。我可以重新启动服务几秒钟,然后我得到“重新启动:未知实例:”

此外,SphinxSearch 不会显示在“netstat |”下。 grep 9312'。

下面是我的配置文件的搜索部分。

searchd
{
listen = 9312
log = /var/log/sphinxsearch/searchd.log
query_log = /var/log/sphinxsearch/log/query.log
read_timeout = 5
max_children = 30
pid_file = /var/run/searchd.pid
max_matches = 1000
seamless_rotate = 1
preopen_indexes = 0
unlink_old = 1
}

和/etc/init/sphinxsearch.conf 看起来像
# SphinxSearch Service

description "SphinxSearch Daemon"
author "Andrey Aksyonoff <shodan@sphinxsearch.com>"

start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]

respawn
respawn limit 10 35

# The default of 5 seconds is too low if we have rt indices and have to flush them
kill timeout 30

env DEFAULTFILE="/etc/default/sphinxsearch"
pre-start script
if [ -f "$DEFAULTFILE" ]; then
. "$DEFAULTFILE"
fi
if [ "z$START" != "zyes" ]; then
stop
logger "To enable sphinxsearch, edit /etc/default/sphinxsearch and set START=yes"
exit 0
fi
if [ ! -f /etc/sphinxsearch/sphinx.conf ]; then
logger "Please create an /etc/sphinxsearch/sphinx.conf configuration file."
logger "Templates are in the /etc/sphinxsearch/ directory."
exit 0
fi
end script

exec /usr/bin/searchd --nodetach

最佳答案

经过一番搜索,这个问题只是由于日志文件的路径无效引起的。从未报告过无法访问日志...

关于ubuntu - sphinxsearch pid 文件为空,netstat 无任何报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8570604/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com