当前位置:网站首页>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] random number generation and `include < time. H > 'learning
- WPF--实现WebSocket服务端
- ssm中项目异常处理
- Why is customer support important to SaaS?
- C language operators and input and output
- A chip company fell in round B
- 【CodeForces】Educational Codeforces Round 132 (Rated for Div. 2)
- WFST decoding process
- Raspberry pie uses the command line to configure WiFi connections
猜你喜欢

一碰撞就自燃,谁来关心电池安全?上汽通用有话说

Simple example of C language 1

What is the variance?
![[C language] header file of complex number four operations and complex number operations](/img/f9/b389fe5367f1fa6cd18aaac856bc0d.png)
[C language] header file of complex number four operations and complex number operations

What is the process of swing event processing?
![[C language] guessing numbers game](/img/ac/81a82404618487861b67e35f18d13f.png)
[C language] guessing numbers game

Circular linked list OJ question
![[C language] simulation implementation of strlen (recursive and non recursive)](/img/73/e92fe714515491f1ea366d6924c9ec.png)
[C language] simulation implementation of strlen (recursive and non recursive)

Item exception handling in SSM
![[C language] Pointer advanced knowledge points](/img/8f/0057243c603ddfe20381c9bd446f03.png)
[C language] Pointer advanced knowledge points
随机推荐
9. Pointer of C language (4) pointer and one-dimensional array, pointer operation
lattice
[C language] initial C language reflection and summary
Basic mathematical knowledge (update)
[C language] Pointer elementary knowledge points
Raspberrypico analytic PWM
基于 MinIO 对象存储保障 Rancher 数据
LeetCode-297-二叉树的序列化与反序列化
[C language] use function pointers to make a different calculator
C language data 3 (1)
私有化部署的即时通讯平台,为企业移动业务安全保驾护航
NEIL: Extracting Visual Knowledge from Web Data
字符设备驱动结构
Implementation of memcpy in C language
C language array and bubble sort
9. Pointer of C language (1) what is pointer and how to define pointer variables
Scene thread allocation in MMO real-time combat games
一碰撞就自燃,谁来关心电池安全?上汽通用有话说
Tencent cloud deployment lamp_ Experience of building a station
[C language] Pointer advanced knowledge points