当前位置:网站首页>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.
![]()
边栏推荐
- [C language] scanf format input and modifier summary
- Simple example of C language 1
- Implementation of strcat in C language
- [C language] comprehensively analyze the pointer and sort out the pointer knowledge points
- C language - question brushing column
- 2、 Relationship between software operation and memory
- C+ + core programming
- Array method added in ES6
- 为什么客户支持对SaaS公司很重要?
- robobrowser的简单使用
猜你喜欢

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

Raspberrypico analytic PWM
![[C language] 5000 word super detailed explanation of various operations of the sequence table](/img/3b/932526e96ef14df8a321048e9c14b4.png)
[C language] 5000 word super detailed explanation of various operations of the sequence table
![[C language] guessing numbers game [function]](/img/db/8ebdb02f137878224367503b730803.png)
[C language] guessing numbers game [function]

私有化部署的即时通讯平台,为企业移动业务安全保驾护航
![[C language] print pattern summary](/img/48/d8ff17453e810fcd9269f56eda4d47.png)
[C language] print pattern summary
![[C language] random number generation and `include < time. H > 'learning](/img/bb/3e47bf2e3b25653d9048884d65cda3.png)
[C language] random number generation and `include < time. H > 'learning
![[C language] function](/img/81/c185e2bb5eccc13433483f9558f52a.png)
[C language] function

Implementation of strstr in C language

Digital filter design matlab
随机推荐
Simple example of C language 1
HSETNX KEY_NAME FIELD VALUE 用法
A chip company fell in round B
CM4 development cross compilation tool chain production
[C language] print pattern summary
robobrowser的简单使用
Zfoo adds routes similar to mydog
C language implementation of strncpy
New fruit naming (DP is similar to the longest common subsequence)
C语言数据 3(1)
Implementation of memcpy in C language
[C language] guessing numbers game
flask_ Mail source code error
Commands related to obtaining administrator permissions
[C language] scanf format input and modifier summary
Raspberry pie 4B ffmpeg RTMP streaming
Const pointer of C language and parameter passing of main function
Method number problem for solving sum of numbers (knapsack problem)
C language data 3 (1)
9. Pointer of C language (1) what is pointer and how to define pointer variables