日期:2014-05-16  浏览次数:20628 次

linux下重启memcached脚本
# memcached port 
port='11211'

# memcached delete      
kill -9 `ps -ef|grep memcached|grep $port|awk '{print $2}'`

# memcached start  
/usr/local/memcached/bin/memcached -m 100 -u root -d -l 192.168.131.224 -p $port
/usr/local/memcached/bin/memcached -m 100 -u root -d -l 192.168.131.225 -p $port
/usr/local/memcached/bin/memcached -m 100 -u root -d -l 192.168.131.226 -p $port
/usr/local/memcached/bin/memcached -m 100 -u root -d -l 192.168.131.227 -p $port

?