HandlerSocket的安装记录-创新互联

本篇内容介绍了“HandlerSocket的安装记录”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

创新互联公司是一家专注于成都网站建设、网站建设与策划设计,尼开远网站建设哪家好?创新互联公司做网站,专注于网站建设10多年,网设计领域的专业建站公司;建站业务涵盖:尼开远等地区。尼开远做网站价格咨询:13518219792

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的安装记录”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注创新互联-成都网站建设公司网站,小编将为大家输出更多高质量的实用文章!


当前标题:HandlerSocket的安装记录-创新互联
标题来源:http://csdahua.cn/article/jgigo.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流