
重启后如何让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?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)