-
[Redis] 우분투에서 레디스 설치하기개발/서버 2023. 7. 9. 23:38
설치
$ sudo apt install lsb-release curl gpg $ 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 127.0.0.1:6379> ping
'개발 > 서버' 카테고리의 다른 글
[Redis] 스프링부트 레디스 연동 (간단한 예제) (0) 2023.07.10