当前位置:网站首页>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
边栏推荐
猜你喜欢

The demand for VR live broadcast marketing is increasing, and the data module is paving the way for us

VSCode 插件大全

2022了你还不会『低代码』?数据科学也能玩转Low-Code啦!

Numpy数组处理(二)

第3章业务功能开发(线索关联市场活动,动态搜索)

MySQL Data Query - Union Query

MySQL Data Query - Simple Query

【AD】【持续更新ing】关于AD设计过程中一些小细节

网络通信编程基础,BIO,NIO

南信大提出TIPCB,一个简单但有效的用于基于文本的人员搜索的基于部分的卷积baseline
随机推荐
5V升压充电8.4V芯片
Break the rules!MongoDB introduces SQL?
Qualcomm WLAN framework learning (31) -- Power save
大陆泽、宁晋泊蓄滞洪区防洪工程与安全建设项目启动实施
golang文件行号探索
SwiftUI CoreData 教程之如何加速搜索速度
官宣!苏州吴江开发区上线电子劳动合同平台
【HDLBits 刷题】Verilog Language(4)Procedures 和 More Verilog Features 部分
无文件落地免杀的初尝试思考(上)
【ORM框架:Sequelize的查询】
解决reudx中的异步问题 applyMiddleware thunk
最小jvm源码分析
阿里 P8 爆出的这份大厂面试指南,看完工资暴涨 30k!
Numpy数组处理(二)
容器网络硬核技术内幕 (小结-中)
全景教程丨VR全景拍摄如何拍摄日出和日落的场景?
WeChat Mini Program 30 Customizing Templates and Obtaining User Login Credentials
【点云】M3DeTR: Multi-representation, Multi-scale, Mutual-relation 3D Object Detection with Transformers
三品牌下半年将带来多款新品,东风日产将迎来“产品大潮”
【CVPR2022】A Unified Query-based Paradigm for Point Cloud Understanding