089版本是1147M我的U盘afk还剩5次下1.17G可不可以装的下?

欢迎来到电脑技术网,专业的计算机网络技术学习平台!
CentOS下***beanstalkd服务
人气: 发布时间:
CentOS下***beanstalkd服务beanstalkd在CentOS下没有默认的***包,需要手动编译***,最新版本1.6,不过1.5版本后,取消了对libevent的依赖,但不能直接启动作为daemon进程,1.4.6还是可以使用参数 -d 启动为 daemon,所以选择编译1.4.6。***后默认不带启动脚本,但fedora下可以使用yum***,***后生成 /etc/init.d/beanstalkd启动脚本,所以特地在虚拟机里livecd启动fedora17,***后,挖出beanstalkd启动脚本。切换到 root用户下:yum install libevent libevent-devel
所有版本地址: /kr/beanstalkd/downloads 下载地址:wget
/downloads/kr/beanstalkd/beanstalkd-1.4.6.tar.gz解压:tar xzf beanstalkd-1.4.6.tar.gzcd beanstalkd-1.4.6./configuremakemake install默认***路径 :/usr/local/bin/查看版本:/usr/local/bin/beanstalkd -v
1.4.6添加用户组:groupadd beanstalkd添加用户:adduser -M -g beanstalkd -s /sbin/nologin beanstalkd添加启动脚本,放入 /etc/init.d/ 目录下chmod 755 /etc/init.d/beanstalkd加入开机启动:
chkconfig beanstalkd on启动:service beanstalkd start***完毕附:从Fedora下挖来的 startup 脚本:001#!/bin/sh002#003# beanstalkd - a simple, fast workqueue service004
#005# chkconfig:
- 57 47006# description: a simple, fast workqueue service007# processname: beanstalkd008# config:
/etc/sysconfig/beanstalkd009#
010011### BEGIN INIT INFO012# Provides: beanstalkd013# Required-Start: $local_fs $network $remote_fs014# Required-Stop: $local_fs $network $remote_fs015# Default-Stop: 0 1 2 6016# Short-Description: start and stop beanstalkd017# Description: a simple, fast work-queue service018### END INIT INFO019020# Source function library.021. /etc/rc.d/init.d/functions022
023# Source networking configuration.024. /etc/sysconfig/network025026# Check that networking is up.027[ $NETWO***NG = no ] && exit028exec=/usr/local/bin/beanstalkd029prog=$(basename $exec)030031# default options, overruled by items in sysconfig032BEANSTALKD_ADDR=127.0.0.1033BEANSTALKD_PORT=BEANSTALKD_USER=beanstalkd035036[ -e /etc/sysconfig/beanstalkd ] && . /etc/sysconfig/beanstalkd037
038lockfile=/var/lock/subsys/beanstalkd039040start() {041
[ -x $exec ] || exit 5042
echo -n $Starting $prog: 043
# if not running, start it up here, usually something like daemon $exec044
options=-l ${BEANSTALKD_ADDR} -p ${BEANSTALKD_PORT} -u ${BEANSTALKD_USER}045
if [ ${BEANSTALKD_MAX_JOB_SIZE} !=
]; then046
options=${options} -z ${BEANSTALKD_MAX_JOB_SIZE}047
if [ ${BEANSTALKD_BINLOG_DIR} !=
]; then050
if [ ! -d ${BEANSTALKD_BINLOG_DIR} ]; then051
echo Creating binlog directory (${BEANSTALKD_BINLOG_DIR})052
mkdir -p ${BEANSTALKD_BINLOG_DIR} && chown ${BEANSTALKD_USER}:${BEANSTALKD_USER} ${BEANSTALKD_BINLOG_DIR}053
options=${options} -b ${BEANSTALKD_BINLOG_DIR}055
if [ ${BEANSTALKD_BINLOG_FSYNC_PERIOD} !=
]; then056
options=${options} -f ${BEANSTALKD_BINLOG_FSYNC_PERIOD}057
options=${options} -F059
if [ ${BEANSTALKD_BINLOG_SIZE} !=
]; then061
options=${options} -s ${BEANSTALKD_BINLOG_SIZE}062
daemon $exec -d $options066
retval=$?067
[ $retval -eq 0 ] && touch $lockfile069
return $retval070}071072stop() {073
echo -n $Stopping $prog: 074
# stop it here, often killproc $prog075
killproc $prog -INT076
retval=$?077
[ $retval -eq 0 ] && rm -f $lockfile079
return $retval080}081082restart() {083
start085}086087reload() {088
restart089}090091force_reload() {092
restart093}094095rh_status() {096
# run checks to determine if the service is running or use generic status097
status $prog098}099100rh_status_q() {101
rh_status &/dev/null 2&&05case $1 in106
rh_status_q && exit 0108
rh_status_q || exit 0112
restart)115
reload)118
rh_status_q || exit 7119
force-reload)122
force_reload123;124
status)125
rh_status126;127
condrestart|try-restart)128
rh_status_q || exit 0129
restart130;131
echo $Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}133
exit 2134esac135exit $?
责任编辑:电脑技术网
无相关信息
  想象一下曾经经典的 NES 2D 游戏能变成 3D,而且能在浏览器上玩?一位开...
  三星galaxy a9 pro曝光或将4月发布 三星galaxy a9 pro1600万像素即将登场。...
  三星电子的业务长项是硬件,在软件和互联网领域,三星电子毫无建树,在过去...114网址导航

参考资料

 

随机推荐