1. Download the installation package
wget http://download.redis.io/releases/redis-5.0.8.tar.gz
2. Unzip the installation package
tar -xzvf redis-5.0.8.tar.gz
3. Compile
cd redis-5.0.8
make
4. Start redis
. /src/redis-server
5. Start the redis client for testing
. /src/redis-cli
Installed
6. Install redis as a CentOS 7 service
cd redis-5.0.8/utils
. /install_server.sh
# Rename service name
mv /etc/init.d/redis_6379 /etc/init.d/redisd
# Restart redis
service redisd restart
# Stop redis
service redisd stop
# Start redis
service redisd start
Recommended Posts