1 Star 0 Fork 0

大止刀口 / rws

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Redis Windows Service

使用

GitHub Releases 找到最新版本的 msi 文件,下载并安装。

安装完成之后就可以看到服务里多了个 Redis Windows Service ,可以关闭和启动 Redis 功能。

编译过程

Redis 官网下载 Redis 源码 redis-6.2.2.tar.gz MSYS2 官网下载并安装 MSYS2

一些修改

MSYS2 目录下 /usr/include/dlfcn.h 修改源码 注释掉 宏判定 #if __GNU_VISIBLE #endif 不然会报找不到结构 Dl_info 错误。

注:编译完记得改回去。

开始编译

# 更新 MSYS2 系统
pacman -Syu

# 安装 gcc make pkg-config
pacman -Sy gcc make pkg-config

# 到编译的目录(MSYS2 /d 就是 D盘;/e 就是 E盘)
cd /d/redis

# 解压 redis 源码
tar -xvf redis-6.2.2.tar.gz

# 进入原码目录
cd redis-6.2.2

# 编译
make PREFIX=/d/redis/dist install

奇怪的 bug

注:在后面的版本里,编译的 redis 路径必须带有 dist 不然就会报错。不知道是不是 MSYS2 的什么问题。

Copyright 2019 Chen Shen Chao Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Redis Windows 服务,打包编译 Redis 6.2.2。 展开 收起
C# 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/chaosannals/rws.git
git@gitee.com:chaosannals/rws.git
chaosannals
rws
rws
master

搜索帮助