一,先安装mongo数据库,本机ubuntu18.04
# 确保包最新
sudo apt update && sudo apt upgrade -y
# 安装
sudo apt install mongodb
sudo systemctl status mongodb
sudo systemctl stop mongodb
sudo systemctl start mongodb
sudo systemctl restart mongodb
# 是否随系统启动
sudo systemctl disable mongodb
sudo systemctl enable mongodb
# 编辑数据库
mongo
二,安装可视化工具,robo3t
# 下载安装包
# 解压
tar -xvzf robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz
# 创建一个目录,将解压包里的所有内容移动过去
sudo mkdir /usr/local/bin/robomongo
sudo mv robo3t-1.1.1-linux-x86_64-c93c6b0/* /usr/local/bin/robomongo
# 加权限
cd /usr/local/bin/robomongo/bin
sudo chmod +x robo3t
# 加快捷启动
vim ~/.bashrc --> alias robomongo="/usr/local/bin/robomongo/bin/robo3t"
source ~/.bashrc
# 启动
robomongo