網站首頁 編程語言 正文
Liunx安裝Redis
- 1.下載redis安裝包
- 2.上傳redis安裝包
- 3.解壓redis安裝包
- 4.編譯redis
- 5.安裝Redis
- 6.修改redis.conf配置文件
- 7.啟動redis
- 8.開啟6379端口
搭建環境為騰訊云 輕量級服務器
注:個人習慣 在安裝前先創建快照,預防中途報錯 直接回滾,重新再來
1.下載redis安裝包
官網:https://download.redis.io/releases/
2.上傳redis安裝包
cd /data/program
3.解壓redis安裝包
tar xzf redis-5.0.7.tar.gz
把解壓好的文件改名為redis
cd /data/program/redis
4.編譯redis
make
5.安裝Redis
make install PREFIX=/data/program/redis
6.修改redis.conf配置文件
注:本人習慣拉下來改
默認本機訪問
bind 127.0.0.1 注釋掉
守護進程
daemonize no 改為 daemonize yes
設置密碼
#requirepass foobared 改為 requirepass 123456
保護模式
protected-mode yes 改為 protected-mode no
改完后上傳回去
7.啟動redis
./redis-server /data/program/redis/redis.conf
8.開啟6379端口
1.服務器開啟6379端口
2.使用redis可視化工具 配置服務器ip 端口 密碼,點擊連接,正常訪問
原文鏈接:https://blog.csdn.net/weixin_44832006/article/details/130904715
- 上一篇:沒有了
- 下一篇:沒有了
相關推薦
- 2022-06-20 Flutter路由守衛攔截的實現_Android
- 2022-12-28 React組件通信實現流程詳解_React
- 2022-07-07 C語言用Easyx繪制圍棋和象棋的棋盤_C 語言
- 2022-06-06 element ui表單el-form的label自適應寬度
- 2022-05-10 thymeleaf跳轉到響應頁面(modelandview 中的view)
- 2022-08-20 Python為什么要保留顯式的self_python
- 2024-03-05 layui彈出層的表單驗證(form表單自帶的驗證不執行)
- 2022-06-12 PostgreSQL聚合函數的分組排序使用示例_PostgreSQL
- 欄目分類
-
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支