当前位置:网站首页>Other IPS cannot connect to the local redis problem solving and redis installation
Other IPS cannot connect to the local redis problem solving and redis installation
2022-07-28 20:21:00 【LifeBackwards】
Solution
Other than this machine IP Unable to connect to this computer Redis The solution is as follows :
1 modify redis.conf file :daemonize by yes, Give Way redis Running in the background ;
2 Comment out bind 127.0.0.1, Run address access outside this machine ;
3 protected Set to no, Turn off protection mode ;
4 Turn off firewall .
Redis install
Next we will Linux build Redis The complete installation process of is introduced as follows :
Redis It's an open source nosql Non relational database , advanced key-value Storage . We usually use redis Do cache storage on the server , But it doesn't support sql Of the statement , No table structure . Server side running redis Generally, you can check redis, We can't find it redis Check the database again , It can effectively reduce the pressure on the server .
Tools :CentOS 7 64 position 、Redis Installation package
Redis The installation process is as follows :
1 decompression redis Installation package , Go to unzip directory , direct make Compile , There is no need to configure.
![]()
![]()
2 Execution and installation . At the time of installation , The software can specify the installation directory :make PREFIX=/usr/local/redis install
![]()
3 After installation , Go to the installation directory . Introduce to you redis Functions of files in the directory .

4 Decompress the configuration file in the directory redis.conf copy to redis In the installation directory of .

start-up Redis
1 modify redis.conf file :daemonize by yes, Give Way redis Running in the background ; Comment out bind 127.0.0.1, Run address access outside this machine ;protected Set to no, Turn off protection mode ; Turn off firewall .

1: View fire protection status
systemctl status firewalld
service iptables status
2: Turn off the firewall temporarily
systemctl stop firewalld
service iptables stop
3: Permanently shut down firewall
systemctl disable firewalld
chkconfig iptables off
4: service iptables restart
systemctl enable firewalld
service iptables restart
2 start-up redis service ../bin/redis-server ./redis.conf.

3 see redis Whether to start .redis The default port of the service is 6379, Can pass netstat -tunpl | grep 6379 see redis Whether the service of is started successfully .

4 Client connection redis Service for , grammar :./bin/redis-cli .
![]()
5 close redis The service command :pkill redis-server.
![]()
边栏推荐
- 【实验分享】CCIE—BGP反射器实验
- Usage of const and assert
- Simple use of robobrowser
- C language pointer and two-dimensional array
- [C language] guessing numbers game
- Sequential linear table - practice in class
- Raspberry pie CM4 -- using metartc3.0 to integrate ffmpeg to realize webrtc push-pull streaming
- lattice
- How to automatically store email attachments in SharePoint
- C语言数据 3(2)
猜你喜欢

Raspberry pie CM4 -- using metartc3.0 to integrate ffmpeg to realize webrtc push-pull streaming

83.(cesium之家)cesium示例如何运行
![[C language] Pointer advanced knowledge points](/img/8f/0057243c603ddfe20381c9bd446f03.png)
[C language] Pointer advanced knowledge points

83. (cesium home) how the cesium example works

5. Difference between break and continue (easy to understand version)
![[C language] function](/img/81/c185e2bb5eccc13433483f9558f52a.png)
[C language] function

2. Floating point number, the difference between float and double in C language and how to choose them

Rand function generates pseudo-random numbers

The privatized instant messaging platform protects the security of enterprise mobile business

Raspberry pie 4B parsing PWM
随机推荐
C语言简单实例 1
Common commands of raspberry pie
Zfoo adds routes similar to mydog
Power Bi 2021 calendar DAX code
Raspberry pie 3b ffmpeg RTMP streaming
Longest Palindromic Substring
How to automatically store email attachments in SharePoint
[C language] 5000 word super detailed explanation of various operations of the sequence table
XOR operation and its usage
[C language] Gobang game [array and function]
Multi-Modal Knowledge Graph Construction and Application: A Survey
七种轮询介绍(后附实践链接)
[C language] simulation implementation of strlen (recursive and non recursive)
弹出模态框
JVM (24) -- performance monitoring and tuning (5) -- Analyzing GC logs
Implementation of strstr in C language
C language - question brushing column
Why is customer support important to SaaS?
Use of strtok and strError
Using typedef in C language to change the name of data type