memcached安裝報錯 error while loading shared libraries: libevent-2.0.so.5: cannot open shared object fil

我是從其餘服務器scp來的memcached(~~~整個文件夾的那種,windows用多了的後遺症)windows

在準備運行 ./memcached -d -u root -l localhost -m 800 -p 11211 服務器

啓動memcached的時候, boom~~~~~~~~~~~~~~~~~~~~~~~~~~~~memcached

error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directoryspa

一開始我是忘記裝libevent依賴了code

因而乎去官網wget了libevent-2.0.22-stable這個版本的libeventorm

chmod 755 configure
#受權 你們都懂的
./configure --prefix=/usr/local/libevent
#環境檢查巴拉巴拉一堆~~~
make && make install
#編譯安裝

而後接着用以前的命令運行memcached 仍是報了以前的錯誤blog

因而從新去官網下載memcached,按照網上找到得安裝方法操做文檔

仍是報以前得錯誤~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~部署

敗下陣來之後,打開了彷彿在嘲笑個人部署文檔get

發現我libevent安裝得沒有問題,將memcached刪除殆盡~~~

去官網wget到了memcached-1.4.24這個版本

解壓完之後執行了如下命令~~~~必定要細心

chmod 755 configure

./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/
# --with-libevent=/usr/local/libevent/ 我以前就是漏了這個 必定要加上去
make && make install

而後到 /usr/local/memcached/bin/ 這個目錄下執行   ./memcached -d -u root -l localhost -m 800 -p 11211

就ojbk了

相關文章
相關標籤/搜索