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

推荐订阅源

Y
Y Combinator Blog
GbyAI
GbyAI
爱范儿
爱范儿
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Check Point Blog
M
MIT News - Artificial intelligence
量子位
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
V
Visual Studio Blog
罗磊的独立博客
F
Fortinet All Blogs
美团技术团队
博客园_首页
博客园 - 【当耐特】
L
LangChain Blog
月光博客
月光博客
腾讯CDC
The Cloudflare Blog
D
Docker
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

博客园 - googlegis

npm install 指定安装源 windows 下 CodeX 提示 Computer Use plugins unavailable 使用gzip压缩3dtiles Cesium 加载 3dtiles 优化方案 Bad owner or permissions on /var/lib/jenkins/.ssh/config docker 删除 容器和镜像 docker 下安装 gitlab EE docker 在 linux 下的安装及使用 npm/npx 指定源 根据经纬度获取地形数据高程 GeoServer加载shp文件后中文乱码 Cesium中glb模型颜色暗淡解决 mongod.service failed with result exit-code npm、pnpm系统禁止了脚本的执行 当前计算机配置不支持 wsl2--已解决 hexo 推送需要github的用户名 el-switch 初始化时触发切换 使用vim修改linux中的文件 wsl 安装 Module '"element-plus"' has no export memeber 'ElMessage'. Did you mean to user 'import ElMessage from "element-plus" CodeBlocks window下安装后找不到编译器 CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory Error message "error:0308010C:digital envelope routines::unsupported"
在 wsl2 中安装redis
googlegis · 2024-03-13 · via 博客园 - googlegis

Redis is not officially supported on Windows. However, you can install Redis on Windows for development by following the instructions below.

To install Redis on Windows, you'll first need to enable WSL2 (Windows Subsystem for Linux). WSL2 lets you run Linux binaries natively on Windows. For this method to work, you'll need to be running Windows 10 version 2004 and higher or Windows 11.

Install or enable WSL2

Microsoft provides detailed instructions for installing WSL. Follow these instructions, and take note of the default Linux distribution it installs. This guide assumes Ubuntu.

Install Redis

Once you're running Ubuntu on Windows, you can follow the steps detailed at Install on Ubuntu/Debian to install recent stable versions of Redis from the official packages.redis.io APT repository. Add the repository to the apt index, update it, and then install:

curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list

sudo apt-get update
sudo apt-get install redis

Lastly, start the Redis server like so:

sudo service redis-server start

Connect to Redis

You can test that your Redis server is running by connecting with the Redis CLI:

redis-cli 
127.0.0.1:6379> ping
PONG