[root@CentOSv64x64 memcached-1.2.2]# make install Making install in doc make[1]: Entering directory `/usr/memcache/install/memcached-1.2.2/doc' make[2]: Entering directory `/usr/memcache/install/memcached-1.2.2/doc' make[2]: Nothing to be done for `install-exec-am'. /bin/sh ../mkinstalldirs /usr/local/man/man1 mkdir -p -- /usr/local/man/man1 /usr/bin/install -c -m 644 ./memcached.1 /usr/local/man/man1/memcached.1 make[2]: Leaving directory `/usr/memcache/install/memcached-1.2.2/doc' make[1]: Leaving directory `/usr/memcache/install/memcached-1.2.2/doc' make[1]: Entering directory `/usr/memcache/install/memcached-1.2.2' make[2]: Entering directory `/usr/memcache/install/memcached-1.2.2' /bin/sh ./mkinstalldirs /usr/local/bin /usr/bin/install -c memcached /usr/local/bin/memcached /usr/bin/install -c memcached-debug /usr/local/bin/memcached-debug make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/memcache/install/memcached-1.2.2' make[1]: Leaving directory `/usr/memcache/install/memcached-1.2.2'
[root@CentOSv64x64 memcached-1.2.2]# /usr/local/bin/memcached -d -m 50 -u root -l 192.168.8.105 -p 12000 -c 256 -P /tmp/memcached.pid /usr/local/bin/memcached: error while loading shared libraries: libevent-1.3.so.1: cannot open shared object file: No such file or directory
解決方法:[root@CentOSv64x64 lib]# ln -s /usr/lib/libevent-1.3.so.1 /usr/lib64/libevent-1.3.so.1 _ 3. ps -aux|grep memcached 查看Memcached是否啓動 4. 關閉進程 _ kill cat /tmp/memcached.pid
服務器
[root@CentOSv64x64 ~]# telnet 192.168.8.105 12000 Trying 192.168.8.105... Connected to 192.168.8.105. Escape character is '^]'. set key1 0 60 4 zhou STORED get key1 VALUE key1 0 4 zhou END
未安裝telnet:yum install telnet併發