深圳之声_打造深圳最全面的企业资讯平台
您当前的位置 : 深圳之声  >  消费
2020从使用蚂蚁笔记开始!
2020-11-19 11:02:35 来源:互联网 阅读:-


2020从使用蚂蚁笔记开始

本文详细讲述了如何在Mac电脑上快速搭建蚂蚁笔记服务和登录使用Mac客户端进行笔记创作。


mongo服务

Mac环境下安装MongoDB,根据官方文档进行安装,使用brew install。

文档地址:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/

$ brew tap mongodb/brew

$ brew install mongodb-community@4.2

$ brew services start mongodb-community@4.2

$ ps aux | grep -v grep | grep mongod

mymacbookpro 391 0.0 0.2 5115464 16740 ?? S 9:51下午 0:58.76 /usr/local/opt/mongodb-community@3.6/bin/mongod --config /usr/local/etc/mongod.conf

安装完后可以修改配置文件,指定日志和数据目录:

$ vi /usr/local/etc/mongod.conf

systemLog:

destination: file

path: /Users/mymacbookpro/Development/pseudo/mongodb/mongo.log

logAppend: true

storage:

dbPath: /Users/mymacbookpro/Development/pseudo/mongodb

net:

bindIp: 127.0.0.1

leanote服务端

下载解压:

$ wget https://jaist.dl.sourceforge.net/project/leanote-bin/2.6.1/leanote-darwin-amd64-v2.6.1.bin.tar.gz

$ tar zxvf leanote-darwin-amd64-v2.6.1.bin.tar.gz

leanote服务端目录结构:

$ ls

appconfmongodb_backup

binmessagespublic

初始化mongo数据

$ cd leanote

$ mongorestore -h localhost -d leanote --dir mongodb_backup/leanote_install_data/

初始化之后的的用户名密码:

user1 username: admin, password: abc123 (administrator who can manage Leanote)

user2 username: demo@leanote.com, password: demo@leanote.com (just for demonstration)

查看mongo数据:

$ mongo

MongoDB shell version v4.2.2

connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb

......

> show dbs

admin 0.000GB

config 0.000GB

leanote 0.001GB

local 0.000GB

> use leanote

switched to db leanote

> show collections

albums

attachs

blog_comments

blog_likes

blog_singles

configs

email_logs

files

find_pwds

group_users

groups

has_share_notes

leanote.ShareNotes

leanote.has_share_notes

note_content_histories

note_contents

note_images

note_tags

notebooks

notes

reports

sessions

share_notebooks

share_notes

suggestions

tag_count

tags

themes

tokens

traffics

user_blogs

users

运行leanote服务

$ nohup bash bin/run.sh &

查看日志

$ tail -f nohup.out

......

Listening on.. 0.0.0.0:9000

默认端口号9000

leanote Mac客户端

下载解压后把对应的app移到Mac应用程序列表中,启动时注意在系统偏好设置-安全性与隐私里面 设置允许继续运行。

$ wget https://nchc.dl.sourceforge.net/project/leanote-desktop-app/2.6.2/leanote-desktop-mac-v2.6.2.zip

客户端启动后,选择-登录自建服务,填写http://127.0.0.1:9000和默认的用户名密码。

2020从使用蚂蚁笔记开始

笔记样式

leanote官方博客:http://leanote.leanote.com/cate/latest

2020从使用蚂蚁笔记开始

【202001】

推荐阅读:长城商圈网

频道推荐
  • 中国火腿和欧美火腿有什么区别?长知识了
    中国火腿和欧美火腿有什么区别?长知识了

    火腿在人们的日常生活中是一种必不可少,又十分受欢迎的食物,它主要是由猪肉经过一系列的加工制作而成的,因此深受人们的喜爱。光是在地大物博的我国,不同的地区,因为生...

    2019-09-19
  • 老北京小吃里的7大“怪味”
    老北京小吃里的7大“怪味”

    在咱北京的众多美食里,有一些比较“有个性”的吃食,像豆汁儿啊、卤煮火烧、芥末墩儿...吃不惯它们的人,还给它们起了个名字叫“怪味”小吃。可就小编而言,也没发现它...

    2019-09-19
  • 光瓶酒=低端酒?No ! 来看看各大光瓶酒的实力秀
    光瓶酒=低端酒?No ! 来看看各大光瓶酒的

    光瓶酒=低端酒?No! ,在《中国大众光瓶酒营销白皮书》中就谈到光瓶酒未来发展趋势:在大众酒时代,大众光瓶酒不再低端。大众光瓶酒是一种战略,有规模,有利润。可以...

    2019-09-19