gearman 在Ubuntu上部署Gearman

2021-07-11 11:26:14 字數 1705 閱讀 7358

wget

tar zxvf gearmand-1.1.12.tar.gz

cd gearmand-1.1.12/

./configure

configure: error: could not find boost

sudo apt-get install libboost-dev

接著重新執行:./configure

configure: error: could not find a version of the library!

sudo apt-get install libboost-all-dev

接著重新執行:./configure

configure: error: could not find gperf

sudo apt-get install gperf*

接著重新執行:./configure

configure: error: unable to find libevent

sudo apt-get install libevent-dev

接著重新執行:./configure

configure: error: unable to find libuuid

sudo apt-get install uuid-dev

./configure

sudo make 

sudo make install

這裡要等一段時間。。

gearman

gearman: error while loading shared libraries: libgearman.so.8: cannot open shared object file: no such file or directory

(這表示系統不知道libgearman.so.8 放在哪個目錄下。 要在/etc/ld.so.conf中加入libgearman.so.8所在的目錄。 檢查了下,檔案所在目錄為/usr/local/lib。 因此出現這個問題的原因是libgearman.so.8剛生成,沒有加入到ld.so.cache中,所以這時需要重新執行一下 /sbin/ldconfig( ldconfig命令的作用):)

sudo /sbin/ldconfig

此時再執行 gearman 則已安裝成功!

安裝完job server之後,用gearmand –d命令啟動

gearmand -d

在提示的目錄下建立好/log/gearmand.log檔案,再次執行上述命令,就正常啟動了job server。

sudo gearmand -d

到這裡就已經完全ok了

安裝php gearman擴充套件

wget

sudo tar zxvf gearman-1.1.2.tgz

cd gearman-1.1.2/

sudo phpize (這裡可能會提示沒有此命令,執行 sudo apt-get install php5-dev 安裝)

sudo ./configure

sudo make

sudo make install

sudo echo "extension=gearman.so" >> /etc/php5/apache2/php.ini (注意這裡php.ini位置)

sudo /etc/init.d/apache2 restart

這時檢視php_info時就應該看到 gearman擴充套件了

Linux 上安裝Gearman及其PHP擴充套件

安裝gearman服務端 yum install y uuid devel libuuid libuuid devel uuid boost devel libevent libevent devel gperf wget tar zxvf gearmand 1.1.7.tar.gz cd gear...

在ubuntu上編譯chrome

在ubuntu上編譯chrome 紅心地瓜 1.獲取 2 解壓縮 3 安裝dept tools 將dept tools加到path裡面 export path path pwd depot tools或者加到 bashrc裡面 2.安裝dependency 進到 chromium src目錄下 bu...

在Ubuntu上安裝MySQLdb

05.14.2010 posted in python 之前有寫過 windows python2.6 mysql驅動安裝 今天呢是ubuntu下給python安裝mysql驅動,方法如下 在終端中輸入 sudo apt get install python mysqldb ok,搞定,簡單吧?來測...