Skip to content

Instantly share code, notes, and snippets.

@kenzo0107
Created April 8, 2015 06:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kenzo0107/6f4475e8a161cf9c8f9f to your computer and use it in GitHub Desktop.
Save kenzo0107/6f4475e8a161cf9c8f9f to your computer and use it in GitHub Desktop.
# rootユーザへ切り替え
sudo su -
# wgetインストール
yum -y install wget
# repository取得
wget -r --no-parent -A 'epel-release-*.rpm' http://dl.fedoraproject.org/pub/epel/7/x86_64/e/
# repository設定
rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-*.rpm
# redisインストール
yum -y install redis
#以下ファイルが作成されていることを確認
ls -al /etc/redis*
/etc/redis.conf
/etc/redis-sentinel.conf
# redis起動
systemctl start redis.service
# redisステータス表示
systemctl status redis.service
#---- redis status 表示 start ----
redis.service - Redis persistent key-value database
Loaded: loaded (/usr/lib/systemd/system/redis.service; disabled)
Drop-In: /etc/systemd/system/redis.service.d
└─limit.conf
Active: active (running) since 水 2015-04-08 02:52:27 EDT; 1min 58s ago
Main PID: 5266 (redis-server)
CGroup: /system.slice/redis.service
└─5266 /usr/bin/redis-server 127.0.0.1:6379
4月 08 02:52:27 localhost.localdomain systemd[1]: Starting Redis persistent key-value .....
4月 08 02:52:27 localhost.localdomain systemd[1]: Started Redis persistent key-value d...e.
Hint: Some lines were ellipsized, use -l to show in full.
#---- redis status 表示 end ----
# redis通信確認
redis-cli ping
PONG
# ↑ PONGと返ってくると成功
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment