Redis Learning Notes (iii)-use REDIS clients to connect Windows and Linux Redis and troubleshoot problems that cannot connect Redis __linux

Source: Internet
Author: User
Tags download redis redis server


Build environment: Linux is centos7.4 (please note that centos7 the following version of the firewall and CENTOS7 above, the use of Redis Client connection Redis will be different, it is recommended to use CENTOS7 version) 

First, download Redis client

Official Download Address: https://github.com/uglide/RedisDesktopManager/releases
Because it is a foreign website, download speed is slow or even download failure, you can go to the CSDN Download Center to find points to download or to other sites to download, download installation after the client opened, as follows:
Second, connect Windows under the Redis Server

1, to ensure that the Redis server is the starting state
2. Create a connection
Open the following page:

3, use the command window right click localhost, select Console
Normal use of various Redis commands

third, connect Linux under the Redis server (if the connection is generally a firewall or protection mode problems, follow these steps to resolve) 


1, modify the redis.conf configuration file into the edit profile


[Root@localhost bin]# VI redis.conf


Precede 127.0.0.1 with Comments (redis4.0 The following versions are commented out by default)






Review process before commenting






View process after comments






Modify protected mode to No (the version below redis4.0 does not have this mode configuration, no modification)






Save Exit 

2, open 6379 ports in a Linux firewall (a different way from the CENTOS7 version of the open port)


[Root@localhost bin]# firewall-cmd--zone=public--add-port=6379/tcp--permanent
3, restart the firewall
[root@localhost bin]# systemctl Restart Firewalld
4, start Redis
[Root@localhost bin]#./redis-server redis.conf
5. Connection Test

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.