当前位置:网站首页>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
边栏推荐
- First thoughts on the first attempt to avoid killing without a file (Part 1)
- 相亲信息
- 微信小程序如何开通支付功能?
- Second Best PyTorch Beginner Course; Thesis Writing Guide; Using µGo to Develop a Mini Compiler; Super Efficient Use of Transformer's Extension Library; Frontier Papers | ShowMeAI News Daily
- leetcode122. Best Time to Buy and Sell Stock II
- WeChat Mini Program 31 Subcontracting Mechanism
- How to implement your personal knowledge base?
- 24小时伦敦金走势图分析
- Xshell 7 提示 “要继续使用此程序,您必须应用最新的更新或使用新版本”
- 三品牌下半年将带来多款新品,东风日产将迎来“产品大潮”
猜你喜欢

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

linux使用脚本安装redis
![LeetCode 593 有效的正方形[数学] HERODING的LeetCode之路](/img/c2/34624c9c7693ba40d0b3724c0db611.png)
LeetCode 593 有效的正方形[数学] HERODING的LeetCode之路

02-SDRAM:自动刷新

惠普服务器硬盘指示灯不亮或显示蓝色

第二好PyTorch新手课程;论文写作指南;使用µGo语言开发迷你编译器;超高效使用Transformer的扩展库;前沿论文 | ShowMeAI资讯日报

官宣!苏州吴江开发区上线电子劳动合同平台

给pdf添加已作废标识
![LeetCode 593 Valid Squares [Math] HERODING's Road to LeetCode](/img/c2/34624c9c7693ba40d0b3724c0db611.png)
LeetCode 593 Valid Squares [Math] HERODING's Road to LeetCode

相亲信息
随机推荐
VR直播营销需求增加,数据模块为我们铺路
MySQL - 设计游戏用户信息表
OneNote tutorial, how to take notes in OneNote?
分布式之基石: 可靠性——What a tangled web we weave
Minimal jvm source code analysis
ALBERT:A Lite BERT for Self-supervised Learning of Language Representations
大陆泽、宁晋泊蓄滞洪区防洪工程与安全建设项目启动实施
OneNote 教程,如何在 OneNote 中做笔记?
刚重装的win7系统不能上网(深度系统安装步骤)
240. Searching 2D Matrix II
给图片左上角加logo标识、左下角加时间和地址、地址到达指定长度换行
Verilog 加法器设计
容器网络硬核技术内幕 (小结-中)
WeChat Mini Program 31 Subcontracting Mechanism
解决报错 WARNING: IPv4 forwarding is disabled. Networking will not work.
官宣!苏州吴江开发区上线电子劳动合同平台
1. Promise usage in JS, 2. The concept and usage of closures, 3. The difference between the four methods and areas of object creation, 4. How to declare a class
UDP协议详解
关于云计算的海量数据存储模型[通俗易懂]
获取七牛云地址文件保存到本地