linux – 当我重新启动Ubuntu服务器时如何重新启动sphinx?

linux – 当我重新启动Ubuntu服务器时如何重新启动sphinx?,第1张

概述我在我的ubuntu 9.04服务器上构建并安装了sphinx搜索. 重启后如何让sphinx守护程序自动启动? 我不知道Sphinx,但这是基本的方法.使用以下内容创建一个文件/etc/init.d/searchd(也有 this script,但您可能需要稍微调整一下): #!/bin/bashcase "${1:-''}" in 'start') # put the 我在我的ubuntu 9.04服务器上构建并安装了sphinx搜索.

重启后如何让sphinx守护程序自动启动?

解决方法 我不知道Sphinx,但这是基本的方法.使用以下内容创建一个文件/etc/init.d/searchd(也有 this script,但您可能需要稍微调整一下):
#!/bin/bashcase "${1:-''}" in  'start')        # put the command to start sphinx        # i.e.,/usr/bin/searchd start or /usr/bin/searchd --daemon or whatever the command is        ;;  'stop')        # stop command here        ;;  'restart')        # restart command here        ;;  *)        echo "Usage: $SELF start|stop|restart"        exit 1        ;;esac

然后执行以下 *** 作:

$sudo update-rc.d searchd defaults

要手动控制服务:

$sudo /etc/init.d/searchd <start|stop|restart>
总结

以上是内存溢出为你收集整理的linux – 当我重新启动Ubuntu服务器时如何重新启动sphinx?全部内容,希望文章能够帮你解决linux – 当我重新启动Ubuntu服务器时如何重新启动sphinx?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/1043491.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存