본문 바로가기

DEV

우분투18.04 redis 설치

우분투 18.04 를 설치하고 서버를 셋팅하던중

apache, php, mysql 설치하고 redis 를 설치하려고 했는데 없다.

저장소에 redis 관련 내용을 찾을수 없단다.


구글링을 해보니 그냥.

apt-get install redis-server

명령어를 치면 된단다.


근데 난 안된다. 왜 그럴까 ? 를 한참을 검색해도 답이 안나왔다.

그러다 문득 저장소가 다른가 하면서 확인을 해봤다.

cat /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu bionic main

deb http://archive.ubuntu.com/ubuntu bionic-security main

deb http://archive.ubuntu.com/ubuntu bionic-update main


이것뿐이다. 그래서 16.04에 있던 저장소들중 2가지를 추가 했다.

dep http://archive.ubuntu.com/ubuntu bionic universe

dep http://archive.ubuntu.com/ubuntu bionic multiverse


그리고 apt-get update 후

설치 시도!

apt-get install redis-server

잘된다~

apt-get install php-redis

이것도 잘된다~


우분투 18.04 에는 왜 저 저장소들이 빠져있는건지는 모르겠다. 설치를 잘못했나. 

이젠 여튼 설치 잘 된다.