memcached: error while loading shared libraries: libevent-2.0.so.5: cannot o解決 memcached基本選項-p 連接埠 監聽tcp連接埠-d 以守護進程方式運行memcached-u username 以username運行-m 《num》 最大的記憶體使用量,單位是MB ,預設是64MB-c <num> 軟串連數量,預設是1024-v 輸出警告和錯誤資訊-vv 列印用戶端的請求和返回資訊檢查memcached是否正常運行#ps aux | grep memcached#telnet localhost 11211....stats...會顯示memcached的基本資料 如果啟動時出現“memcached: error while loading shared libraries:libevent-2.0.so.5: cannotopen shared object file: No such file or directory”之類的資訊,表示memcached 找不到libevent 的位置所以,請先使用whereis libevent 得到位置,然後串連到memcached 所尋找的路徑首先查看,libevent 在哪裡# whereis libeventlibevent: /usr/local/lib/libevent.la /usr/local/lib/libevent.so /usr/local/lib/libevent.a然後,再看memcached 從哪裡找它# LD_DEBUG=libs memcached -v 2>&1 > /dev/null | less可以看到:是/usr/lib/libevent-2.0.so.5,所以,建立軟鏈[root@localhost tools]# ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5再次啟動 關閉memcached :pkill memcached