編譯Windows 版本的Redis 6.x

1. 準備編譯工具Cygwin

https://cygwin.com/setup-x86_64.exe

安裝

 

 

 

 

 

 

 

 

 

 

 

 

原始鏡像用不了,加上阿里雲鏡像 http://mirrors.aliyun.com/cygwin/

添加命令  make,gcc-core,gcc-g++ libgcc1 libgccpp1

勾選對應的庫

 

 

 

 

 

 

打開cygwin客戶端,會顯示管理員目錄。

 

 

 

2. 下載redis源碼

這裏選擇指定的版本(http://download.redis.io/releases/)。這裏以6.x的爲例(5.x的需要更新hiredis (https://github.com/redis/hiredis.git))

將文件拷貝到 D:\devtools\cygwin64\home\Administrator\

其中D:\devtools\cygwin64\home是安裝的目錄, Administrator是啓動後的管理員名稱目錄。

3 將文件拷貝到新的目錄

將src下的exe,

D:\devtools\cygwin64\bin\cygwin1.dll

 redis.conf

 

 

  cmd切換到對應的目錄,運行redis-server.exe

 

 

參考 Redis6 Windows 版本編譯

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章