MongoDB
# 安装依赖
$ yum -y install mongodb mongodb-server.x86_64 mariadb-devel.i686
# 启动服务
$ systemctl start mongod
# 查看运行状态, 显示active(running)即表示安装并运行成功
$ systemctl status mongod
Leanote
# 下载二进制安装包
$ wget https://nchc.dl.sourceforge.net/project/leanote-bin/2.6.1/leanote-linux-amd64-v2.6.1.bin.tar.gz
# 解压
$ tar -zxvf leanote-linux-amd64-v2.6.1.bin.tar.gz
# 进入解压后的文件夹并修改app.conf中的app.secret
$ vim leanote/conf/app.conf
# 初始化数据库
$ mongorestore -h localhost -d leanote --dir /root/leanote/mongodb_backup/leanote_install_data/
# 如果初始化数据库时出现
# BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly.
# 则执行下面的命令设置LC_ALL变量
$ export LC_ALL=C
# 启动服务
$ nohup bash /root/leanote/bin/run.sh > /root/leanote/run.log 2>&1 &
现在就可以通过http://${ECS公网地址}:9000
访问到云笔记了.