马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
1. Ruby 环境
Redis-dump 是一个 Ruby 工具,需先安装 Ruby 和 RubyGems。
安装依赖:
- sudo yum install -y curl gpg2 gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison sqlite-devel
复制代码 2. 导入 RVM 官方 GPG 密钥
某些 Ruby Gem 可能需要编译当地扩展,需安装构建工具和依赖库:
- gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BD
复制代码- ➜ /opt gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BD
- gpg: directory `/root/.gnupg' createdgpg: new configuration file `/root/.gnupg/gpg.conf' createdgpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this rungpg: keyring `/root/.gnupg/secring.gpg' createdgpg: keyring `/root/.gnupg/pubring.gpg' createdgpg: "7D2BAF1CF37B13E2069D6956105BD0E739499BD" not a key ID: skippinggpg: no keyserver known (use option --keyserver)gpg: keyserver receive failed: Syntax error in URI
复制代码 3. 安装 RVM
直接通过 RubyGems 安装:
- curl -sSL https://get.rvm.io | bash -s stable
复制代码 [code]➜ /opt curl -sSL https://get.rvm.io | bash -s stable
Downloading https://github.com/rvm/rvm/archive/1.29.12.tar.gzDownloading https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asccurl: (52) Empty reply from serverCould not download 'https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asc'. curl returned status '52'.Creating group 'rvm'Installing RVM to /usr/local/rvm/ source /etc/profileInstallation of RVM in /usr/local/rvm/ is almost complete: * First you need to add all users that will be using rvm to 'rvm' group, and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`. * To start using RVM you need to run `source /etc/profile.d/rvm.sh
` in all your open shell windows, in rare cases you need to reopen all shell windows. * Please do NOT forget to add your users to the rvm group. The installer no longer auto-adds root or users to the rvm group. Admins must do this. Also, please note that group memberships are ONLY evaluated at login time. This means that users must log out then back in before group membership takes effect!Thanks for installing RVM |