Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
You can’t perform that action at this time.