溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

HandlerSocket的安裝記錄

發(fā)布時間:2021-09-16 03:18:53 來源:億速云 閱讀:108 作者:chen 欄目:網絡安全

本篇內容介紹了“HandlerSocket的安裝記錄”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!

HandlerSocket[@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的安裝記錄”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關的知識可以關注億速云網站,小編將為大家輸出更多高質量的實用文章!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI