1.解压
tar -xvf nutcracker-0.4.1.tar.gz2.安装
yum install -y libtool cd nutcracker-0.4.1 ./configure make make install3.配置文件
cp /home/test/nutcracker-0.4.1/conf/nutcracker.yml /etc/twemproxy/4.启动:
/usr/local/sbin/nutcracker -d -c /etc/twemproxy/nutcracker.yml -p /var/run/redisproxy.pid -o /var/log/twemproxy/run/redisproxy.log启动脚本(补充):
#!/bin/sh # nutcracker Startup script for twemproxy # chkconfig: - 80 12 # # processname: nutcracker # config: /etc/twemproxy/nutcracker.yml # pidfile: /var/run/redisproxy.pid source /etc/init.d/functions BIN="/usr/local/sbin" CONFIG="/etc/twemproxy/nutcracker.yml " PIDFILE="/var/run/redisproxy.pid" ### Read configuration [ -r "$SYSCONFIG" ] && source "$SYSCONFIG" RETVAL=0 prog="nutcracker" desc="nutcracker" start() { if [ -e $PIDFILE ];then echo "$desc already running...." exit 1 fi echo -n $"Starting $desc: " daemon $BIN/$prog $CONFIG RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog return $RETVAL } stop() { echo -n $"Stop $desc: " killproc $prog RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog $PIDFILE return $RETVAL } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart) restart ;; condrestart) [ -e /var/lock/subsys/$prog ] && restart RETVAL=$? ;; status) status $prog RETVAL=$? ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" RETVAL=1 esac exit $RETVAL
相关推荐
Centos7下安装MongoDB
Centos 下 netflow安装配置--安装nfsen
centos7离线安装bzip2
centos7离线安装vim
centos7.6离线安装nginx
CentOS7下安装JDK1.8详细过程
CentOS7下安装oracle11g具体步骤
Centos6.5下安装Oracle 11g.docxCentos6.5下安装Oracle 11g.docx
centos7离线安装bison
CentOS7离线安装最新版本Podman-4.1.1版本。 当前容器的发展,对Docker逐渐远离,拥抱Containerd和Podman,目前Podman操作基本与Docker一致,让用户从Docker迁移至Podman成为了可能。 由于CentOS7.9默认安装的都是...
CentOS7离线安装oracle 11g_r2所有离线依赖包,并附详细安装说明,安装详细说明和依赖包,轻松在CentOS7安装oracle
CentOS7下安装nvm
Centos7下安装Bugzilla,并附带中文包,均亲测可用!
centos7亲测安装成功,摘自网上一个帖子,忘了出处,若有人知道望告知,添加链接,谢谢!
Centos5.5下安装LAMP完整版Centos5.5下安装LAMP完整版Centos5.5下安装LAMP完整版Centos5.5下安装LAMP完整版Centos5.5下安装LAMP完整版Centos5.5下安装LAMP完整版Centos5.5下安装LAMP完整版Centos5.5下安装LAMP完整版
CentOS 6.4安装(超级详细图解教程) 说明: 1、CentOS 6.4 系统镜像有两个,安装系统只用到第一个镜像即 CentOS-6.4-i386-bin-DVD1.iso(32 位) 或者 CentOS-6.4-x86_64-bin-DVD1.iso(64 位),第二个镜像是...
centos7离线安装http服务器的rpm包
内网机器安装nmap,下载资源后解压到目录,执行yum install *.rpm
centos7离线安装gcc-c++