記一次安裝leanote

weixin_33670713發表於2018-10-24

官方地址:

https://github.com/leanote

安裝二進位制步驟

下載二進位制包檔案:

https://sourceforge.net/projects/leanote-bin/files/2.4/leanote-linux-amd64-v2.4.bin.tar.gz/download

安裝mongodb資料庫:

新增yum 源

[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc

安裝mongodb

sudo yum makecache
sudo yum install -y mongodb-org

啟動mongodb

sudo service mongod start
sudo systemctl enable mongod

恢復資料到mongodb

mongorestore -h localhost -d leanote --dir leanote/mongodb_backup/leanote_install_data/

配置Leanote(我沒懂)

The configuration of Leanote is controlled by this file: PATH_TO_LEANOTE/conf/app.conf.

One setting that you are strongly suggested to modify is app.secret, please change arbitrary number of digits of the string to something different, but keeping the string length unchanged. This is to avoid potential security issues.

Other optional changes you can make includes db.username, db.password (more on these in the Trouble Shooting section) and etc..

安裝golang

sudo yum install golang

執行 leanote

sudo bash run.sh

相關文章