memcached这家伙大家应该都很熟悉吧。。。路人甲:"不熟" 我:"¥#%@……¥%……¥%……"
##install gccyum install gcc gcc-c++ make automake -y#default down pathmkdir -p /root/software && cd /root/softwarewget -c http://scripts.showshowbaby.com/lnmp/soft/{libevent-2.0.21-stable.tar.gz,memcached-1.4.15.tar.gz}##install libeventtar zxvf libevent-2.0.21-stable.tar.gz && cd libevent-2.0.21-stable./configure --prefix=/usrmake && make install#install Memcachedcd ..tar zxvf memcached-1.4.15.tar.gzcd memcached-1.4.15./configure --prefix=/usr/local/memcachedmake && make installldconfigmkdir -p /data/logs/memcached/ ##启动,如果有需要记录日志,统一放到/data/logs/memcached/下按端口/usr/local/memcached/bin/memcached -d -m 16m -u nobody -p 11211 -c 2048 -U 0 -l 127.0.0.1##开机启动vim /etc/rc.d/rc.local