标签:命令 pre value src reboot lease 目录 grep tab
cd /opt
wget http://download.redis.io/releases/redis-6.0.3.tar.gz
tar zxvf redis-6.0.3.tar.gz
make
cd src && make install
将redis-6.0.3/utils目录下的redis_init_script脚本拷贝到/etc/init.d下修改名字为redis
cp redis_init_script /etc/init.d/redis
# chkconfig: 2345 90 10
# description: Redis is a persistent key-value database
mkdir /etc/redis
cp redis.conf /etc/redis/6379.conf
chmod +x /etc/init.d/redis
chkconfig redis on
service redis start
service redis stop
ps -ef | grep redis
Red Hat Enterprise Linux 8 Install Redis
标签:命令 pre value src reboot lease 目录 grep tab
原文地址:https://www.cnblogs.com/PrimerPlus/p/12956041.html