우분투16 redis 설치

(우분투 redis 설치에서 넘어옴)
우분투16 redis 설치
우분투16 레디스 설치

1 확인[ | ]

root@zetawiki:~# dpkg -l | grep redis-server
root@zetawiki:~# apt list redis-server
Listing... Done
redis-server/xenial 2:3.0.6-1 amd64

2 설치[ | ]

root@zetawiki:~# apt install redis-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libjemalloc1 redis-tools
Suggested packages:
  ruby-redis
The following NEW packages will be installed:
  libjemalloc1 redis-server redis-tools
0 upgraded, 3 newly installed, 0 to remove and 145 not upgraded.
Need to get 517 kB of archives.
After this operation, 1,505 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://kr.archive.ubuntu.com/ubuntu xenial/universe amd64 libjemalloc1 amd64 3.6.0-9ubuntu1 [78.9 kB]
Get:2 http://kr.archive.ubuntu.com/ubuntu xenial/universe amd64 redis-tools amd64 2:3.0.6-1 [95.3 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu xenial/universe amd64 redis-server amd64 2:3.0.6-1 [343 kB]
Fetched 517 kB in 0s (764 kB/s)   
Selecting previously unselected package libjemalloc1.
(Reading database ... 101560 files and directories currently installed.)
Preparing to unpack .../libjemalloc1_3.6.0-9ubuntu1_amd64.deb ...
Unpacking libjemalloc1 (3.6.0-9ubuntu1) .................................................] 
Selecting previously unselected package redis-tools......................................] 
Preparing to unpack .../redis-tools_2%3a3.0.6-1_amd64.deb ...
Unpacking redis-tools (2:3.0.6-1) .......................................................] 
Selecting previously unselected package redis-server.....................................] 
Preparing to unpack .../redis-server_2%3a3.0.6-1_amd64.deb ...
Unpacking redis-server (2:3.0.6-1) ...############.......................................] 
Processing triggers for libc-bin (2.23-0ubuntu10) ...#####...............................] 
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu10) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up libjemalloc1 (3.6.0-9ubuntu1) ...
Setting up redis-tools (2:3.0.6-1) ...#############################......................] 
Setting up redis-server (2:3.0.6-1) ...#####################################.............] 
Processing triggers for libc-bin (2.23-0ubuntu10) ...################################....] 
Processing triggers for systemd (229-4ubuntu10) ...
Processing triggers for ureadahead (0.100.0-19) ...

3 확인 2[ | ]

  • 설치가 잘 됐는지 설치 목록을 확인
root@zetawiki:~# dpkg -l | grep redis-server
ii  redis-server                        2:3.0.6-1                                  amd64        Persistent key-value database with network interface
  • 네트워크 확인
root@zetawiki:~# netstat -tnlp | grep redis
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      25472/redis-server

4 확인 3[ | ]

  • 레디스 간단 명령으로 동작 확인
root@zetawiki:~# redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> set foo bar
OK
127.0.0.1:6379> get foo
"bar"
127.0.0.1:6379> exit
root@zetawiki:~#

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}