本篇內(nèi)容介紹了“HandlerSocket的安裝記錄”的有關(guān)知識,在實(shí)際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!
創(chuàng)新互聯(lián)公司是一家專注于成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè)與策劃設(shè)計(jì),尼開遠(yuǎn)網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)公司做網(wǎng)站,專注于網(wǎng)站建設(shè)10多年,網(wǎng)設(shè)計(jì)領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:尼開遠(yuǎn)等地區(qū)。尼開遠(yuǎn)做網(wǎng)站價格咨詢:13518219792HandlerSocket[@more@]
tar zxvf ahiguti-HandlerSocket-Plugin-for-MySQL-1.0.6-23-g4cfc840.tar.gz
cd ahiguti-HandlerSocket-Plugin-for-MySQL-4cfc840
./autogen.sh
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
cat /usr/share/aclocal/libtool.m4 >> aclocal.m4
./configure --with-mysql-source=/root/Percona-Server
--with-mysql-bindir=/usr/local/Percona-Server-5.1.51-rel11.5-132-Linux-x86_64/bin
--with-mysql-plugindir=/usr/local/Percona-Server-5.1.51-rel11.5-132-Linux-x86_64/lib/mysql/plugin
錯誤configure: error: cannot find macro directory `m4'
mkdir m4
再次configure
make
make install
Append configuration options for handlersocket to my.cnf.
[mysqld]
loose_handlersocket_port = 9998
# the port number to bind to (for read requests)
loose_handlersocket_port_wr = 9999
# the port number to bind to (for write requests)
loose_handlersocket_threads = 16
# the number of worker threads (for read requests)
loose_handlersocket_threads_wr = 1
# the number of worker threads (for write requests)
open_files_limit = 65535
# to allow handlersocket accept many concurrent
# connections, make open_files_limit as large as
# possible.
Log in to mysql as root, and execute the following query.
mysql> install plugin handlersocket soname 'handlersocket.so';
If handlersocket.so is successfully installed, it starts
accepting connections on port 9998 and 9999. Running
'show processlist' should show handlersocket worker threads.
Client
tar zxvf ahiguti-HandlerSocket-Plugin-for-MySQL-1.0.6-23-g4cfc840.tar.gz
cd ahiguti-HandlerSocket-Plugin-for-MySQL-4cfc840/
./autogen.sh
./configure --disable-handlersocket-server
make
make install
#cd perl-Net-HandlerSocket
#perl Makefile.PL
#make
#make install
tar zxvf php-handlersocket-0.0.6.tar.gz
cd php-handlersocket
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install
adjust php.ini and add an extension=handlersocket.so
“HandlerSocket的安裝記錄”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識可以關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!
分享文章:HandlerSocket的安裝記錄-創(chuàng)新互聯(lián)
網(wǎng)頁地址:http://jinyejixie.com/article10/jgigo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)網(wǎng)站制作、云服務(wù)器、定制網(wǎng)站、外貿(mào)建站、企業(yè)建站、用戶體驗(yàn)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容