CentOS-6.5でredisサーバ構築
インストール
外部リポジトリに新しいパッケージがあるので、epelリポジトリを登録。
$ wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
epelリポジトリを使ってインストール
# yum --enablerepo=epel install redis Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: ftp.jaist.ac.jp * epel: ftp.jaist.ac.jp * extras: ftp.jaist.ac.jp * updates: ftp.jaist.ac.jp Setting up Install Process Resolving Dependencies
-
- > Running transaction check
- > Package redis.x86_64 0:2.4.10-1.el6 will be installed
- > Finished Dependency Resolution
- > Running transaction check
起動
# /etc/init.d/redis start redis-server を起動中: [ OK ]
動作確認
# /etc/init.d/redis status redis-server (pid 2116) を実行中... # netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 〜〜 デフォルトではポート6379で動作するらしい