Redis view remote connections and test remote connections

Source: Internet
Author: User
Tags redis server

To modify the maximum number of Redis connections

You can modify the maxclients parameters in the redis.conf configuration file;

Or when you start the Redis.service service, add a parameter--maxclients 100000来 set the maximum number of connections limit

Redis-server--maxclients 100000-f/etc/redis.conf
Command line view maximum number of Redis connections

127.0.0.1:6379> CONFIG get maxclients
    1) "MaxClients"
    2) "10000"
127.0.0.1:6379>
Get client information commands in the REDIS-CLI command control line

Client List Get clients lists
CLIENT SetName Sets the name of the current connection point Redis
CLIENT GETNAME View the name of the current connection
CLIENT kill Ip:port Kill specified connection

Test remote Connection Redis server
You can install Telnet on a remote server, such as using the CentOS on the

Yum Install Telnet

Yum Install Telnet-server

Then use telnet remote server IP remote Redis port number, such as

Telnet 10.10.27.112 6379

If you can connect successfully, you can match the View Remote connection command above to confirm that the connection is successful.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.