Redis Desktop Manager for OSX&Ubuntu 的安装版是收费的, 若是本身编译则是免费的.git
安装过程参考官方提供的文档 http://docs.redisdesktop.com/en/latest/install/#build-from-sourcegithub
1. Git导出源码redis
git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.9 rdm && cd ./rdm
注意: 其中有部分源码来自于Google上的代码库, 须要设置git代理, git config --global http.proxy 和 git config --global https.proxybash
2. 按如下步骤执行ide
cd src/ # 这一步会安装依赖的库, 例如qt59, 注意查看执行过程确保都成功 ./configure # 设置qt环境变量 source /opt/qt59/bin/qt59-env.sh # qmake # make # sudo make install # cd /usr/share/redis-desktop-manager/bin # 这一步是必须的, 不然没法启动 sudo mv qt.conf qt.backup
注意: 安装后, 直接运行rdm.sh会没法启动, 须要将 source /opt/qt59/bin/qt59-env.sh 这句加到sh文件头部, 以下ui
#!/bin/bash source /opt/qt59/bin/qt59-env.sh DIR=$(dirname "$(readlink -f "$0")") export LD_LIBRARY_PATH="$DIR/../lib":$LD_LIBRARY_PATH $DIR/rdm
Update 2018-05-08: 在Ubuntu18.04上编译时出错, 错误为spa
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
经过安装 zlib1g-dev 解决代理
sudo apt-get install zlib1g-dev
这个版本不须要再添加qt59-env.sh, 可是编译安装后的rdm.sh 不是可执行的, 须要手动设置一下, sudo chmod +x rdm.sh code