惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
PCI Perspectives
PCI Perspectives
Webroot Blog
Webroot Blog
罗磊的独立博客
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
Last Week in AI
Last Week in AI
美团技术团队
Help Net Security
Help Net Security
The Hacker News
The Hacker News
C
Cisco Blogs
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
The Register - Security
The Register - Security
IT之家
IT之家
WordPress大学
WordPress大学
Jina AI
Jina AI
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Help Net Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
NISL@THU
NISL@THU
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
Scott Helme
Scott Helme
V
Vulnerabilities – Threatpost
B
Blog
T
Tenable Blog
博客园 - 三生石上(FineUI控件)
T
The Exploit Database - CXSecurity.com
S
Security Affairs
小众软件
小众软件
Hacker News: Ask HN
Hacker News: Ask HN
Security Latest
Security Latest
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
W
WeLiveSecurity
A
Arctic Wolf
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence

博客园 - 至尊龙骑

LAN配置--配置静态DHCP Linux服务器离线安装Docker全攻略--离线安装(一件安装docker以及docker-compose--执行自定义脚本) C# 使用FFmpeg 命令录音录像时设置 水印以及水印位置 C# 使用FFmpeg 命令 水印以及水印位置 录音录像时设置分辨率-分辨率一般是宽高比是 4:3 和16:9 少数是 5:4 FFmpeg 命令 水印以及水印位置 FFmpeg 命令录音录像时分辨率 FFmpeg 查看分辨率以及指定分辨率 C# 中监听 IPv6 回环地址----HttpListener C# 中监听 IPv6 回环地址(Loopback Address)----socket和tcp IPv6 地址 后端设置了跨域但是还是提示跨域问题,原因是这里有两个独立的安全策略在起作用:Chrome和Edge浏览器安全策略强制修改方案 开放所有跨域 ----前端和后端 Win11 上遇到的 WinForm 文件拖拽功能失效,但在 Win10 或其他系统上正常的问题 设置iis的后缀名可以下载 linux执行systemctl enable redis.service 报 Failed to execute operation: Bad message linux redis 8.2.1软件开机启动redis.service与etc下的rc.local配置2种方式 Linux开机启动设置全攻略 Linux 设置nginx 以及java jar自启动 Linux系统简单源码安装NGINX版本1.28.0 DistributedLock 实现.Net分布式锁 Windows 10\11 离线安装.NET Framework 3.5(包括.NET 2.0和3.0) - 至尊龙骑 跨域处理 utools无法搜索快捷方式和部分软件问题
Linux redis 8.2.1源码编译
至尊龙骑 · 2025-09-11 · via 博客园 - 至尊龙骑

要在Linux上编译Redis 8.2.1的源码,你需要遵循以下步骤。这个过程大致分为安装依赖、下载源码、编译和安装。

步骤 1: 安装依赖

Redis的编译依赖于一些基本的库和工具,如gccmake以及libc等。对于大多数Linux发行版,你可以通过包管理器来安装这些依赖。

对于基于Debian的系统(如Ubuntu): 

sudo apt-get update
sudo apt-get install build-essential tcl

对于基于RHEL的系统(如CentOS):

sudo yum groupinstall "Development Tools"
sudo yum install tcl

步骤 2: 下载Redis源码

你可以从Redis的官方网站或GitHub仓库下载源码。以下是使用wget命令从GitHub下载Redis 8.2.1的示例:

wget https://github.com/redis/redis/archive/8.2.1.tar.gz
tar xzf 8.2.1.tar.gz
cd redis-8.2.1

步骤 3: 编译Redis

在Redis的源代码目录中,运行make命令来编译Redis。这个过程会生成可执行文件和一些工具。

步骤 4: 安装Redis

编译完成后,你可以使用make install命令来安装Redis。这会将Redis的可执行文件安装到系统的标准目录中,通常是/usr/local/bin

步骤 5: 验证安装

安装完成后,你可以通过运行以下命令来检查Redis服务器是否成功安装:

redis-server --version   或者/usr/local/bin/redis-server --version

这应该会输出Redis的版本号,表明安装成功。

可选步骤: 配置Redis服务器

在启动Redis服务器之前,你可能需要编辑配置文件(通常位于/etc/redis/redis.conf或者/usr/local/etc/redis.conf),根据你的需求来配置Redis。例如,你可以设置密码、绑定IP地址等。

sudo nano /etc/redis/redis.conf # 或者你安装时使用的配置文件路径

步骤 6: 启动Redis服务器

最后,你可以通过以下命令启动Redis服务器: 

redis-server /etc/redis/redis.conf # 使用你的配置文件路径,注意配置文件的路径

或者,如果你使用的是默认配置,可以简单地运行:

上述运行会卡在运行界面上,如果想关掉依然可以运行,可以使用nohup命令:

nohup redis-server /etc/redis/redis.conf &

现在,你的Redis服务器应该已经成功运行了。你可以使用redis-cli来连接并测试你的Redis服务器:

redis-cli
或者redis-cli -h localhost -p 6379 auth 密码

 这样,你就完成了Redis 8.2.1的源码编译和安装过程。

posted @ 2025-09-11 16:58  至尊龙骑  阅读(117)  评论()    收藏  举报