训练营笔记05-搭建Leanote云笔记服务

训练营笔记-搭建Leanote云笔记服务

1.创建ECS实例

2.SSH连接服务器

3.安装数据库

Leanote使用的数据库为MongoDB
安装必要组件并启动

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

3.安装Leanote服务

从sourceforge下载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

编辑文件leanote/conf/app.conf,在文件中找到app.secret项,将该项的值改为任意字符串(如不修改将会有安全风险)

接着初始化MongoDB数据库
mongorestore -h localhost -d leanote --dir /root/leanote/mongodb_backup/leanote_install_data/
启动Leanote服务
nohup bash /root/leanote/bin/run.sh > /root/leanote/run.log 2>&1 &
此时可以访问
http://<公网IP>:9000查看笔记软件部署情况

阿里云高校计划,陪伴两千多所高校在校生云上实践、云上成长。在这里你可以领用免费的cpu 资源,还可以参加免费训练营,实践提高:https://developer.aliyun.com/adc/student/

猜你喜欢

转载自blog.csdn.net/scowlingsoup/article/details/113102022