11k+star 开源笔记应用真香 centos部署教程
leanote binary installation on Mac and Linux (En)
life edited this page on Jul 21, 2017 · 10 revisions
Pages 26
-
Home
-
How to develop leanote 如何开发leanote
-
How to install leanote on Ubuntu?
-
How to Upgrade Leanote
-
Install Mongodb
-
leanote api
-
leanote api en
-
leanote binary installation on Mac and Linux (En)
- Installation Overview:
- 1. Download the binary file of Leanote
- 2. Install the database -- Mongodb
- 2.1 Download Mongodb and configure
- 2.2 Test Mongodb installation
- 3. Import initial Leanote data
- 4. Configure Leanote
- 5. Run Leanote
- Attention!!!!!
- Trouble shooting
-
leanote binary installation on Windows (En)
-
leanote blog theme api
-
leanote blog theme api_en
-
leanote develop distribution installation tutorial
-
Leanote QA English
-
Leanote source installation on Mac and Linux (En)
-
leanote source installation on Windows (En)
- Show 11 more pages…
Clone this wiki locally
This tutorial explains doing a binary installation on Mac and Linux systems.
If you wish to experience the new feature sooner or help develop Leanote, please try using the source distribution.
- For source installation on Mac and Linux, see here.
- For binary installation on Windows, see here.
- For source installation on Windows, see here.
Installation Overview:
- Download the binary file of
Leanote. - Install the database --
Mongodb. - Import initial data to
Mongodb. - Configure
Leanote. - Run
Leanote.
1. Download the binary file of Leanote
Choose and download the binary file corresponding to your system from here.
Suppose it is saved in the /home/user1 folder, extract the .zip file there using:
$> cd /home/user1
$> unzip master.zip
This will create a Leanote directory under /home/user1.
2. Install the database -- Mongodb
2.1 Download Mongodb and configure
You could download a more up-to-date version from the official site of Mongodb. Or, you could use the following links to get the versions that are validated to be working by the developers.
Fast download:
- 64-bit linux Mongodb 3.0.1: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.1.tgz
Save the file to /home/user1, then extract it:
$> cd /home/user1
$> tar -xzvf mongodb-linux-x86_64-3.0.1.tgz/
To make sure that you can reference the Mongodb command from anywhere, configure its environment variable by editing your ~/bash_profile or /etc/profile:
sudo vim /etc/profile
Here I'm using the vim editor, feel free to use whatever text editor you prefer (e.g. nano). Add the following line to the file, and remember to replace with you own username and version strings:
export PATH=$PATH:/home/user1/mongodb-linux-x86_64-3.0.1/bin
To make your modification take effect:
$> source /etc/profile
2.2 Test Mongodb installation
To verify the installation of mongodb, make a new folder (e.g. data) under /home/user1 to store data:
$> mkdir /home/user1/data
Then start the Mongodb database server. You might want it to run in the background, so append & to the end:
$> mongod --dbpath /home/user1/data &
Now Mongodb is up and running, you can open a new terminal (or in the same terminal session if you have mongod run in the background) and launch it:
$> mongo
> show dbs
Should no error pops up, your Mongodb installation is complete, let's import initial data to Mongodb.
3. Import initial Leanote data
Leanote's initial data is stored in PATH_TO_LEANOTE/mongodb_backup/leanote_install_data
Open a terminal and paste in the following command to import initial data. Note the difference between the version 2 and 3 of Mongodb:
$> mongorestore -h localhost -d leanote --dir PATH_TO_LEANOTE/mongodb_backup/leanote_install_data/
Now Mongodb has created a Leanote database, you can have a peek into it, for instance query how many tables leanote database has:
$> mongo
> show dbs
leanote 0.203125GB
local 0.078125GB
Tell Mongodb to use our newly created leanote database:
> use leanote
switched to db leanote
Bit more playing around:
> show collections # a collection in Mongodb is a table in mysql
files
has_share_notes
note_content_histories
note_contents
notebooks
...
The initial users table has two accounts:
user1 username: admin, password: abc123 (administrator who can manage Leanote)
user2 username: demo@leanote.com, password: demo@leanote.com (just for demonstration)
4. Configure 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..
5. Run Leanote
If you have successfully come to this stage, there is just one more step to go:
$> cd /home/user1/leanote/bin
$> bash run.sh
If you see a message similar to this, Leanote has started successfully:
...
TRACE 2013/06/06 15:01:27 watcher.go:72: Watching: /home/user1/leanote/bin/src/github.com/leanote/leanote/conf/routes
Go to /@tests to run the tests.
Listening on :9000...
Congratulations, now fire up you browser and enter http://localhost:9000 into the address bar. Voilà! Welcome to Leanote and happy note-taking!
Attention!!!!!
Please note that you run Mongodb with no auth option which mentioned in this paper, if your server is exposed to the internet, anyone can access and modify and delete it!!!!!! So it's very dangerous to run Mongodb in this way. You must add user and password to Mongodb and run it with auth option. Please see How to add new users to mongodb database?
Trouble shooting
If you encounter issues or want to know more about Leanote's configurations, refer to the FAQ page.
参考文档:
leanote binary installation on Mac and Linux (En) · leanote/leanote Wiki · GitHub
相关文章:
11k+star 开源笔记应用真香 centos部署教程
leanote binary installation on Mac and Linux (En) life edited this page on Jul 21, 2017 10 revisions Pages 26 Home How to develop leanote 如何开发leanote How to install leanote on Ubuntu? How to Upgrade Leanote Install Mongodb leanote api leanote …...
win下安装tensorflow
1首先ctrlaltdelete打开任务管理器查看GPU型号 2或者右键我的电脑然后如下方式查看显卡发现没有navida没有GPU...
SpringBoot 入门
1.SpringBoot介绍 1.1.什么是SpringBoot Spring Boot是由Pivotal团队提供的全新框架,其中“Boot”的意思就是“引导”,Spring Boot 并不是对 Spring 功能上的增强,而是提供了一种快速开发 Spring应用的方式。 1.2.Spring Boot 特点 • 嵌…...
使用WebFlux处理WebSocket连接的全生命周期案例
使用WebFlux处理WebSocket连接的全生命周期案例 简介: 在Web应用程序开发中,WebSocket是一种用于实现双向通信的协议。Spring WebFlux提供了对WebSocket的支持,使您能够轻松地处理WebSocket连接和消息。本博客将介绍如何使用WebFlux处理WebS…...
【REST2SQL】10 REST2SQL操作指南
【REST2SQL】01RDB关系型数据库REST初设计 【REST2SQL】02 GO连接Oracle数据库 【REST2SQL】03 GO读取JSON文件 【REST2SQL】04 REST2SQL第一版Oracle版实现 【REST2SQL】05 GO 操作 达梦 数据库 【REST2SQL】06 GO 跨包接口重构代码 【REST2SQL】07 GO 操作 Mysql 数据库 【RE…...
199_二叉树的右视图
描述 给定一个二叉树的 根节点 root,想象自己站在它的右侧,按照从顶部到底部的顺序,返回从右侧所能看到的节点值。 思路 对树进行深度优先搜索,在搜索过程中,我们总是先访问右子树。那么对于每一层来说,…...
第七讲_css浮动
css浮动 1. 设置浮动2. 浮动的特点3. 浮动的影响4. 解决浮动的影响4.1 解决父元素高度塌陷的问题4.2 解决对兄弟元素影响问题 1. 设置浮动 浮动是通过float属性设置,float取值范围: none:不浮动,默认值。left:向左浮…...
2024秋招,顺丰科技测试开发工程师一面
前言 今天回顾一下,一个被捞的全流程面试经历 时间线 9月21日测评 10月26日技术一面,本来是11点半开始,我正做另一个笔试呢,突然给我打电话开面 20分钟结束,一开始以为KPI,结果给过了 10月31日技术二…...
基于apache的http文件服务配置
背景: 公司的产品使用的第三方模组可以OTA,厂家提供的是window开启软件,这样就可以在本机做http下载服务器,然后使用端口映射的方式,公开到外网,这样就可以进行4G网络访问内网服务器了。但这个有个弊端&am…...
连铸工艺和模铸工艺有什么区别。
问题描述:连铸工艺和模铸工艺有什么区别。 问题解答: 连铸工艺和模铸工艺在多个方面存在显著差异: 指代不同: 模铸是成批大量生产锻件的锻造方法。连铸即为连续铸钢的锻造方法。 工艺不同: 模铸在锻压机械的作用…...
pyqt treeWidget树生成
生成treeWidget树与获取treeWidget树节点的数据 # encodingUTF-8 import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QApplication, QTreeWidgetItem, QLineEdit, QSpinBox, QComboBox from PyQt5.QtWidgets import QWidget from release_test import Ui_F…...
DataFunSummit:2023年云原生大数据峰会:核心内容与学习收获(附大会核心PPT下载)
随着数字化转型的深入推进,大数据技术已经成为企业获取竞争优势的关键因素之一。本次峰会汇聚了业界顶尖的大数据专家、企业领袖和技术精英,共同探讨云原生大数据领域的最新技术和趋势。本文将深入分析峰会的核心内容,并探讨参会者从中能学到…...
docker 容器添加指定网络地址
docker 容器添加指定网络地址 在搭建halo博客时,准备让 halo、mysql8.1、nginx 三个容器在同一个网段中,并指定IP。 实现docker内部容器之间网络互通。 查看容器网络信息命令 docker inspect 容器名各容器部署成功后网络效果如下: nginx …...
后端怎样防止重复提交订单?
参考文章 通常我们可以在前端通过防抖和节流来解决短时间内请求重复提交的问题, 如果因网络问题、Nginx重试机制、微服务Feign重试机制或者用户故意绕过前端防抖和节流设置,直接频繁发起请求,都会导致系统防重请求失败,甚至导致后…...
数据结构之二叉搜索树
二叉搜索树 满足条件: 1.对于根节点:左子树中所有节点的值小于右子树中所有节点的值 2.任意节点的左右子树也是二叉搜索树,同样满足条件1 二叉搜索树的常用操作 我们将二叉搜索树封装为一个类 BinarySearchTree ,并声明一个成员变…...
《设计模式的艺术》笔记 - 抽象工厂模式
介绍 提供了一个创建一系列相关或相互依赖的对象的接口,而无须指定它们具体的类。抽象工厂模式又称为Kit模式,它是一种对象创建型模式。 在抽象工厂模式中,每个具体工厂都提供了多个工厂方法用于产生多种不同类型的产品,这些产品构…...
7.11、Kali Linux中文版虚拟机安装运行教程
目录 一、资源下载准备工作 二、安装教程 三、kali linux换源 四、apt-get update 报错 一、资源下载准备工作 linux 中文版镜像历史版本下载:http://old.kali.org/kali-images/ 大家可以自行选择版本下载,本人下载的是2021版本 二、安装教程 打开vmvare wokst…...
Go+快速开始详细指南
Go快速开始 Go编程语言是为工程、STEM教育和数据科学设计的。 对于工程:用儿童能掌握的最简单的语言工作。对于STEM教育:学习一门可以在未来工作中使用的工程语言。对于数据科学:用同一种语言与工程师交流。 安装方法 现在,我们建议您从源代码安装Go。 注意:需…...
SQL:一行中存在任一指标就显示出来
当想要统计的两个指标不在一张表中时,需要做关联。但很多情况下,也没有办法保证其中一张表的维度是全的,用left join或right join可能会导致数据丢失。所以借助full join处理。 1)如,将下面的数据处理成表格中的效果&…...
【代码随想录06】454. 四数相加 II 383. 赎金信 15. 三数之和 18. 四数之和
目录 454. 四数相加 II题目描述做题思路参考代码 383. 赎金信题目描述做题思路参考代码 15. 三数之和题目描述参考代码 18. 四数之和题目描述参考代码 454. 四数相加 II 题目描述 给你四个整数数组 nums1、nums2、nums3 和 nums4 ,数组长度都是 n ,请你…...
用LLM自动生成CUDA内核真的靠谱吗?实测KernelBench框架效果与避坑指南
LLM自动生成CUDA内核的实践验证:KernelBench框架深度评测与技术指南 当我在项目中发现某个PyTorch模型的矩阵乘法操作消耗了60%的推理时间时,第一反应是考虑手工编写CUDA内核来优化。但作为一个同时维护三个项目的工程师,时间成本让我犹豫——…...
告别手动配置!用Simulink 2021b生成ARXML,一键导入ISOLAR-A V9.2.1自动生成RTE
从Simulink到ISOLAR-A:ARXML自动化配置RTE的工程实践 在AUTOSAR开发流程中,模型设计与工具链集成往往存在效率瓶颈。传统"自下而上"开发模式下,工程师需要反复在Simulink和ISOLAR-A/B之间切换,手动维护接口定义、端口连…...
STM32H7/TC397 PTP移植踩坑全记录:从Announce报文HardFault到Linux主机‘clock jumped’警告
STM32H7/TC397 PTP移植实战:从HardFault到时钟同步的深度排错指南 当我在TC397和STM32H7平台上移植PTP协议栈时,原以为只是简单的代码迁移,却意外开启了一场持续两周的"排错马拉松"。从诡异的HardFault到Linux主机不断报出的clock …...
终极指南:3步为Windows 11 LTSC系统快速安装微软商店
终极指南:3步为Windows 11 LTSC系统快速安装微软商店 【免费下载链接】LTSC-Add-MicrosoftStore Add Windows Store to Windows 11 24H2 LTSC 项目地址: https://gitcode.com/gh_mirrors/ltscad/LTSC-Add-MicrosoftStore Windows 11 LTSC(长期服务…...
Wan2.2-I2V-A14B开源模型:支持LoRA微调的私有化训练环境准备
Wan2.2-I2V-A14B开源模型:支持LoRA微调的私有化训练环境准备 1. 镜像概述与核心特性 Wan2.2-I2V-A14B是一款强大的文生视频开源模型,本镜像为其提供了完整的私有化部署解决方案。基于RTX 4090D 24GB显存显卡深度优化,内置所有必要组件&…...
云顶之弈策略优化工具:TFT Overlay如何提升游戏决策效率
云顶之弈策略优化工具:TFT Overlay如何提升游戏决策效率 【免费下载链接】TFT-Overlay Overlay for Teamfight Tactics 项目地址: https://gitcode.com/gh_mirrors/tf/TFT-Overlay 在云顶之弈激烈的对战中,玩家常常面临装备合成路径混乱、羁绊触发…...
Android购物商城APP实战:从零到一构建核心功能模块
1. 项目功能模块拆解与实现路径 一个完整的购物商城APP通常包含四大核心模块:用户系统、商品展示、购物车管理和订单处理。这就像搭建一个实体商店,需要先规划好门面(登录注册)、货架(商品展示)、购物篮&am…...
Alpamayo-R1-10B商业应用探索:车企研发提效与算法验证加速方案
Alpamayo-R1-10B商业应用探索:车企研发提效与算法验证加速方案 1. 项目概述 Alpamayo-R1-10B是NVIDIA推出的自动驾驶专用开源视觉-语言-动作(VLA)模型,作为新一代自动驾驶研发工具链的核心组件,正在改变车企的研发流程。这个100亿参数规模的…...
Steane编码实战指南:用Python模拟[7,1,3]量子纠错电路(附完整代码)
Steane编码实战指南:用Python模拟[7,1,3]量子纠错电路(附完整代码) 量子计算正从实验室走向现实应用,但量子比特的脆弱性始终是横亘在实用化道路上的关键障碍。想象一下,当你精心设计的量子算法因为一个随机的相位翻转…...
Pixel Epic应用场景:律所尽调报告辅助生成+法律条文精准引用案例
Pixel Epic应用场景:律所尽调报告辅助生成法律条文精准引用案例 1. 法律行业的数字化挑战 法律尽职调查是并购交易、股权投资等商业活动中的关键环节。传统模式下,律师团队需要: 人工查阅数百页企业资料逐条核对法律法规手工编写数十页的尽…...
