1、首先修改redis.conf
# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize no (此处改为yes,让redis启动后以daemon守护进程运行)
2、执行redis-server ***/redis.conf
3、查看redis版本
redis-cli --version