An's Blog
收藏、分享 …
Toggle navigation
Home
Cesium
SuperMap
ArcGIS
MapboxGL
CentOS
GeoServer
Favorites
Archives
Tags
Leanote安装部署
2022-12-11 20:05:17
1
0
0
admin
一、MongoDB安装部署 第1步:配置yum源,创建/etc/yum.repos.d/mongodb-org-4.4.repo文件 [mongodb-org-4.4] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc 第2步:安装 yum install -y mongodb-org 启动mongodb :systemctl start mongod.service 停止mongodb :systemctl stop mongod.service 重启mongodb :systemctl restart mongod.service 查看mongodb :systemctl status mongod.service 设置mongodb开机自启动 :systemctl enable mongod.service 参考地址:https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-red-hat/ 二、安装Leanote 第1步:下载 https://sourceforge.net/projects/leanote-bin/files/2.6.1/leanote-linux-amd64-v2.6.1.bin.tar.gz 第2步:导入初始数据,数据存放在:/usr/local/leanote/mongodb_backup/leanote_install_data 执行以下语句: mongorestore -h localhost -d leanote --dir /usr/local/leanote/mongodb_backup/leanote_install_data 第3步:在mongodb中已经新建了leanote数据库, 可用命令查看下leanote 有多少张"表": [root@localhost leanote]# mongo MongoDB shell version v4.4.14 connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("ef1bb0f4-fa9d-44c8-8162-fdd1cfbd7d42") } MongoDB server version: 4.4.14 Welcome to the MongoDB shell. For interactive help, type "help". For more comprehensive documentation, see https://docs.mongodb.com/ Questions? Try the MongoDB Developer Community Forums https://community.mongodb.com --- The server generated these startup warnings when booting: 2022-05-17T23:28:58.719-04:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted 2022-05-17T23:28:58.720-04:00: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never' 2022-05-17T23:28:58.720-04:00: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. We suggest setting it to 'never' --- --- Enable MongoDB's free cloud-based monitoring service, which will then receive and display metrics about your deployment (disk utilization, CPU, operation statistics, etc). The monitoring data will be available on a MongoDB website with a unique URL accessible to you and anyone you share the URL with. MongoDB may use this information to make product improvements and to suggest MongoDB products and deployment options to you. To enable free monitoring, run the following command: db.enableFreeMonitoring() To permanently disable this reminder, run the following command: db.disableFreeMonitoring() --- > show dbs admin 0.000GB config 0.000GB leanote 0.001GB local 0.000GB 第3步:Leanote安全性文件app.secret修改。/usr/local/leanote/conf/app.conf 第4步:启动 nohup /bin/bash /usr/local/leanote/bin/run.sh >> /var/log/leanote.log 2>&1 & 第5步:登录,默认密码:admin/abc123 第6步:自动启动脚本 ab [Leanote 2.4.1.ipa](/api/file/getAttach?fileId=6395c77b9a54ae022b000083)
Pre:
Leanote安装部署
Next:
GeoServer必备插件(不断补充中…)
0
likes
1
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Table of content