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
通路到雲筆記了.