当前位置:网站首页>linux install redis using script
linux install redis using script
2022-07-29 22:15:00 【little brother】
1. If you have installed it, please uninstall it first
1. Check if redis is running
ps aux | grep redis
2. If redis is running, remove it by killing the reids processClose, you can see from the red box above that the redis process PID is 1112
# kill -9 PIDkill -9 1112After closing the process, check again, redis has stopped running
3. Enter the following command to stop the redis-server service
redis-cli shutdown4. View the redis installation directory
whereis redis
5. Delete the redis installation package
rm -rf /usr/bin/redisrm -rf /usr/local/redis
6. Check if redis is deleted

2. Install
This time I use redis script to install redis
1. First upload the redis installation package and installation script to the specified location, and give executable permission to the script file
chmod 777 -R Redis_Install.sh
2. Run the script and wait for installation
./Redis_Install.shSuccessful installation
3. Error (error) NOAUTH Authentication required
When we operate on the redis client in the virtual machine, the following error (error) NOAUTH Authentication required occurs, because redis sets a password, we needUse the password to authenticate and then operate the redis client, otherwise we do not have permission to operate the redis cache database.
auth 'your password'
3. Test external connection
When trying to connect externally to the redis server just installed, we found that the connection timed out.We can end by closing the Linux firewall or specifying port 6379 for development.
3.1, close the firewall
1. Check the firewalld status. If it is in the dead status, the firewall is not enabled.If it is active, it is on.
systemctl status firewalld
2. Turn off firewall
#Close the firewallsystemctl stop firewalld#Open firewall commandsystemctl start firewalld3.2. When the firewall is turned on, develop the specified port 6379
firewall-cmd --permanent --zone=public --add-port=6379/tcp
边栏推荐
猜你喜欢

使用脚本安装mysql

PyQt5学习一(环境搭建)

一 JS中Promise用法、二闭包的概念与用法、三对象创建的四种方式与区区别、四 如何声明一个类

Cobaltstrike和BurpSuite桌面快捷配置

给pdf添加已作废标识

解决报错 WARNING: IPv4 forwarding is disabled. Networking will not work.

iNFTnews | 福布斯的Web3探索

解释器模式

WeChat Mini Program 30 Customizing Templates and Obtaining User Login Credentials

惠普服务器硬盘指示灯不亮或显示蓝色
随机推荐
LeetCode--单链表--146.LRU缓存
一文理解分布式开发中的服务治理
[ACTF2020 新生赛]Exec 1
Come in now!!!Take you to know the basic data types of C language
容器网络硬核技术内幕 (25) 知微知彰,知柔知刚 (中)
【点云】M3DeTR: Multi-representation, Multi-scale, Mutual-relation 3D Object Detection with Transformers
亚马逊登录参数metadata1,encryptedPwd逆向分析
酷客导航助你商场轻松购物,业务办理不迷茫
数字孪生万物可视 | 联接现实世界与数字空间
MySQL Data Query - Union Query
相亲信息
The world is on fire, Google servers have crashed
PointPillars 工程复现
【HDLBits 刷题】Verilog Language(4)Procedures 和 More Verilog Features 部分
小程序预览pdf
The sword refers to Offer II 097. Number of subsequences
【593. 有效的正方形】
Xshell 7 提示 “要继续使用此程序,您必须应用最新的更新或使用新版本”
WeChat Mini Program 31 Subcontracting Mechanism
Chrome浏览器打印flash log