当前位置:网站首页>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
边栏推荐
- 【HDLBits 刷题】Verilog Language(4)Procedures 和 More Verilog Features 部分
- 336. Palindromic Pairs
- SAP ABAP OData 服务 Data Provider Class 的 GET_ENTITYSET 方法实现指南试读版
- 怎么实现您的个人知识库?
- WeChat Mini Program 30 Customizing Templates and Obtaining User Login Credentials
- IDEA 快捷键
- 针对自动识别大麦网滑块验证码,提出解决方案,并进行分析、总结
- 华为畅享50 Pro评测:HarmonyOS加持 更流畅更安全
- 什么是数据安全性?
- 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
猜你喜欢

Fully automated machine learning modeling!The effect hangs the primary alchemist!

一文理解分布式开发中的服务治理

PyQt5学习一(环境搭建)

【Nacos】nacos1.x 单机、内置数据库模式修改密码

940. 不同的子序列 II

无文件落地免杀的初尝试思考(上)

The Ministry of Human Resources and Social Security announced that "database operation administrator" has become a new occupation, and OceanBase participated in the formulation of occupational standar

高通WLAN框架学习(31)-- Power save

leetcode-593:有效的正方形

UDP协议详解
随机推荐
对不起,你很难赚到中年人的钱
The cornerstone of distributed: reliability - What a tangled web we weave
Liu Genghong, boys and girls, come here!Sports data analysis and mining!(with a full set of code and data sets)
SQL教程之性能不仅仅是查询
SwiftUI 手势大全之可用的手势类型有哪些(教程含源码)
转:idea中language level设置
APM电机输出逻辑(Motors类详解)
iNFTnews | 福布斯的Web3探索
5V升压充电8.4V芯片
[ACTF2020 Freshman Competition]Exec 1
【CVPR2022】A Unified Query-based Paradigm for Point Cloud Understanding
LeetCode 593 Valid Squares [Math] HERODING's Road to LeetCode
UDP协议详解
【AD】【持续更新ing】关于AD设计过程中一些小细节
亚马逊登录参数metadata1,encryptedPwd逆向分析
【数据库】mysql日期格式转换
Bug fix: Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255]
leetcode122. Best Time to Buy and Sell Stock II 买卖股票的最佳时机 II(简单)
解释器模式
Xshell 7 提示 “要继续使用此程序,您必须应用最新的更新或使用新版本”