CentosでRedisをインストール
1039 ワード
yum install gcc-c++
yum install -y tcl
wget http://download.redis.io/releases/redis-3.2.9.tar.gz
tar xzf redis-3.2.9.tar.gz
mv redis-3.2.9 /usr/local/redis
cd /usr/local/redis
make
make install
mkdir -p /etc/redis
cp redis.conf /etc/redis
vim /etc/redis/redis.conf
daemonize yes (no -> yes)
/usr/local/bin/redis-server /etc/redis/redis.conf
ps -ef | grep redis
redis-cli
set name Joe
Ok
redis-cli shutdown
# rc.local , /etc/profile , , 。
echo "/usr/local/bin/redis-server /etc/redis/redis.conf &" >> /etc/rc.local