记一次安装leanote

官方地址:

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

你可能感兴趣的:(记一次安装leanote)