Bootcamp Notes 05-Build Leanote Cloud Note-taking Service

Bootcamp notes-build Leanote cloud note-taking service

1. Create an ECS instance

2.SSH connection server

3. Install the database

The database used by Leanote
installs the necessary components for MongoDB and starts it

yum -y install mongodb mongodb-server.x86_64 mariadb-devel.i686
systemctl start mongod
systemctl status mongod

3. Install Leanote Service

Download Leanote from sourceforge and unzip

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

Edit the file leanote/conf/app.conf, find the app.secret item in the file, and change the value of this item to any string (if you don’t modify it, there will be a security risk)

Then initialize the MongoDB database and
mongorestore -h localhost -d leanote --dir /root/leanote/mongodb_backup/leanote_install_data/
start the Leanote service.
nohup bash /root/leanote/bin/run.sh > /root/leanote/run.log 2>&1 &
At this point, you can visit to
http://<公网IP>:9000view the deployment of the note-taking software

Alibaba Cloud University plans to accompany more than 2,000 college students to practice and grow on the cloud. Here you can get free cpu resources, and you can also participate in free training camps to improve your practice: https://developer.aliyun.com/adc/student/

Guess you like

Origin blog.csdn.net/scowlingsoup/article/details/113102022