728x90
WSL(Windows Subsystem for Linux)
wsl --install
윈도우에서 리눅스 환경처럼 Powershell을 Bash 처럼 사용할 수 있게 해주며 Linux 명령어(sed, awk, vim, apt 등)와 커널을 이용할 수 있게 해준다.
설치 및 실행
https://redis.io/docs/install/install-redis/install-redis-on-windows/
Install Redis on Windows
Use Redis on Windows for development
redis.io
문서에 확인하면 설치와 실행하는 방법이 나온다.
설치
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
실행
sudo service redis-server start
호스트 변경
redis-cli -h localhost
728x90
'database > redis' 카테고리의 다른 글
[Redis][Spring Boot] Redis Keyspace Notification 기능 활용하여 redis key 만료 감지하기 (1) | 2024.11.22 |
---|---|
[Spring][Redis] Redis & 캐싱 (0) | 2024.09.09 |
[Redis][Spring][Exception] RedisConnectionException (0) | 2024.04.16 |