一、Linux中部署Redis
1.1 安装
- 
下载 $ wget https://download.redis.io/releases/redis-6.2.2.tar.gz
- 
编译安装 $ tar -xf redis-6.2.2.tar.gz $ cd redis-6.2.2/ $ make $ make make PREFIX=/opt/redis install
- 
配置环境变量 $ vim /etc/profile >> PATH="/opt/redis/bin:" $ source /etc/profile $ which redis-server $ which redis-cli
- 
修改配置文件 $ cp ./redis.conf /opt/redis $ vim /opt/redis/redis.conf >> daemonize yes # 启用守护进程
 
     
    
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号