#!/bin/sh
ps -e -o pid -o cmd |grep memcached|awk '{print $1}'|xargs kill $$1 -9
echo 'shutdown all memcache...'
sleep 2
for L in 12000 12001 12002 12003 ; do
memcached -d -m 25 -u root -l 192.168.1.190 -p $L
echo 'memcache start at port:' $L
done