我们将通过编译源码的方式安装,这样可以指定安装目录。 安装编译所需的依赖 # 对于 CentOS/RHEL/Fedora sudo yum groupinstall "Development Tools" sudo yum install tcl 下载并编译 Redis 源码 # 回到服务目录