当前位置:网站首页>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.
![]()
边栏推荐
- File lookup and file permissions
- Raspberry Pie 3 connected to WiFi
- Longest Palindromic Substring
- Richpedia: A Large-Scale, Comprehensive Multi-Modal Knowledge Graph
- Sequential linear table - practice in class
- Machine learning -- model evaluation, selection and verification
- [C language] Pointer advanced knowledge points
- Array method added in ES6
- Token verification program index.php when configuring wechat official account server
- Introduction to seven kinds of polling (practice link attached)
猜你喜欢
![[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] simulation implementation of strlen (recursive and non recursive)](/img/73/e92fe714515491f1ea366d6924c9ec.png)
[C language] simulation implementation of strlen (recursive and non recursive)

Windows系统下Mysql数据库定时备份

Raspberrypico analytic PWM

JVM (24) -- performance monitoring and tuning (5) -- Analyzing GC logs
![[C language] initial C language reflection and summary](/img/21/826d144867f7a73ec2cd8896a5250a.png)
[C language] initial C language reflection and summary

Longest Palindromic Substring

基于 MinIO 对象存储保障 Rancher 数据

What is the variance?
![[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 array and bubble sort
[C language] string reverse order implementation (recursion and iteration)
C语言简单实例 1
Longest Palindromic Substring
Scene thread allocation in MMO real-time combat games
Zfoo adds routes similar to mydog
WFST decoding process
Sequential linear table - practice in class
What is the variance?
2. Floating point number, the difference between float and double in C language and how to choose them
Multi-Modal Knowledge Graph Construction and Application: A Survey
Simple example of C language 1
[C language] print pattern summary
JVM (24) -- performance monitoring and tuning (5) -- Analyzing GC logs
Stories of Party members | Li qingai uses cartoons to drive farmers to increase income and become rich
[C language] Pointer elementary knowledge points
8. Compilation errors of C language and Chinese explanation
Implementation of memcpy in C language
Introduction to seven kinds of polling (practice link attached)
Basic knowledge of communication network 01