本文共 1318 字,大约阅读时间需要 4 分钟。
installation redis on centos
redis installation guide for centos
below is step-by-step instructions for installing redis on centos 7.x or later:
download redis installation package
visit the official redis website or use package manager to download the latest stable version of redis.unzip redis
after downloading the tar.gz file follow these steps:mkdir -p /opt/redis mv redis-6.x.x.tar.gz /opt/redis/ cd /opt/redis/ tar -zxvf redis-6.x.x.tar.gz
sudo yum install gcc-c++
make
make install
default installation path
on centos the redis server binary is typically installed in/usr/local/bin/redis-server
.copy configuration file
after installation copy the sample redis.conf configuration file from the source directory to your desired path.modify configuration file
编辑配置文件default设置为后台运行将daemonize换成yes。start redis
使用指定config文件启动redis服务。sudo ./redis-server /etc/redis.conf
redis-cli
shutdown
check if redis processes have been terminated by running
ps aux | grep redis
转载地址:http://gyzzk.baihongyu.com/