Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation record of HandlerSocket

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the "HandlerSocket installation record" related knowledge, in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

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

Error configure: error: cannot find macro directory `m4'

Mkdir m4

Configure again

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

This is the end of the "installation record of HandlerSocket". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report