Skip to content
WONGCW 網誌
  • 首頁
  • 論壇
  • 微博
  • 壁紙下載
  • 免費圖床
  • 視頻下載
  • 聊天室
  • SEO工具
  • 支援中心
  • 表格製作
  • More
    • 在線名片
    • 網頁搜索
    • 天氣預報
    • 二維碼生成器
  • Search Icon

WONGCW 網誌

記錄生活經驗與點滴

Leanote笔记搭建

Leanote笔记搭建

2018-06-13 Comments 0 Comment

主机环境:
[root@test ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.4.1708 (Core)
Release: 7.4.1708
Codename: Core
[root@test ~]# uname -a
Linux test 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

1.安装mongodb:
yum安装参考:https://www.tracymc.cn/archives/492
编译安装参考:https://www.tracymc.cn/archives/168

2.安装Leanote
[root@test ~]# cd /home/
[root@test home]# wget https://jaist.dl.sourceforge.net/project/leanote-bin/2.6.1/leanote-linux-amd64-v2.6.1.bin.tar.gz
如果wget慢的话,可以先本地下载了再传到主机上.
[root@test home]# tar -zxvf leanote-linux-amd64-v2.6.1.bin.tar.gz
[root@test home]# cd leanote
[root@test leanote]# ll
total 24
drwxr-xr-x 3 501 games 4096 May 26 22:10 app
drwxr-xr-x 3 501 games 4096 May 26 22:10 bin
drwxr-xr-x 2 501 games 4096 May 26 22:10 conf
drwxr-xr-x 9 501 games 4096 May 26 22:10 messages
drwxr-xr-x 3 501 games 4096 May 26 22:10 mongodb_backup
drwxr-xr-x 14 501 games 4096 Mar 8 11:15 public
修改配置文件:
[root@test conf]# cat app.conf |grep -v ‘^#’|grep -v ‘^$’
http.addr=0.0.0.0 # listen on all ip addresses
http.port=80 //端口默认为9000,我这里修改为80
site.url=http://localhost:9000 # or http://x.com:8080, http://www.xx.com:9000
adminUsername=admin
db.host=127.0.0.1
db.port=27017
db.dbname=leanote # required
db.username= # if not exists, please leave it blank
db.password= # if not exists, please leave it blank
app.secret=test123456789 #修改了这个
app.name=leanote
http.ssl=false
cookie.httponly=false
cookie.prefix=LEANOTE
cookie.domain= # for share cookie with sub-domain
cookie.secure=false
session.expires=3h # 3 hour. Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.
format.date=2006-01-02
format.datetime=2006-01-02 15:04:05 # 必须这样配置
results.chunked=false
log.trace.prefix = “TRACE ”
log.info.prefix = “INFO ”
log.warn.prefix = “WARN ”
log.error.prefix = “ERROR ”
i18n.default_language=en-us
module.static=github.com/revel/modules/static
[dev]
mode.dev=true
results.pretty=true
watch=true
module.testrunner = # github.com/revel/modules/testrunner
log.trace.output = stderr
log.info.output = stderr
log.warn.output = stderr
log.error.output = stderr
[prod]
mode.dev=false
results.pretty=false
watch=false
module.testrunner =
log.trace.output = off
log.info.output = off
log.warn.output = %(app.name)s.log
log.error.output = %(app.name)s.log
初始化数据库:
[root@test conf]# mongorestore -h localhost -d leanote –dir /home/leanote/mongodb_backup/leanote_install_data/
[root@test ~]# mongo
MongoDB shell version v3.6.5
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.6.5
admin 0.000GB
config 0.000GB
leanote 0.001GB //说明导入成功
local 0.000GB
> 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服务:
[root@test bin]# chmod u+x /home/leanote/bin/run.sh
[root@test bin]# nohup /home/leanote/bin/run.sh >> /var/log/leanote.log 2>&1 &
访问Leanote:
通过访问http://yourip或http://yourdomain.com就可以了使用自己的笔记本.
默认登录用户/密码为admin/123abc,请务必修改密码已确保使用安全!

部分截图如下:

还能将笔记公开为博客,如下:

注意:
按照本教程启动Mongodb是没有权限控制的,如果你的Leanote服务器和端口(27017)暴露在外网,任何人都可以访问你的Mongodb并修改,所以这是极其危险的!请务必为Mongodb设置相关权限!!!

分享此文:

  • 按一下即可分享至 X(在新視窗中開啟) X
  • 按一下以分享至 Facebook(在新視窗中開啟) Facebook
  • 分享到 WhatsApp(在新視窗中開啟) WhatsApp
  • 按一下以分享到 Telegram(在新視窗中開啟) Telegram
  • 分享到 Pinterest(在新視窗中開啟) Pinterest
  • 分享到 Reddit(在新視窗中開啟) Reddit
  • 按一下即可以電子郵件傳送連結給朋友(在新視窗中開啟) 電子郵件
  • 點這裡列印(在新視窗中開啟) 列印

相關


教學資源

Post navigation

PREVIOUS
Win10 Wi-Fi密码怎么看?教你看连接过的Wi-Fi密码
NEXT
Windows 強制刪除檔案及資料夾 – 連 unlock 都省了

發表迴響取消回覆

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料。

More results...

Generic filters
Exact matches only
Search in title
Search in content
Search in excerpt
Filter by 分類
網站公告
Featured
限時免費
Windows 軟件下載
系統軟件
辦公軟件
圖像處理
影音媒體
網絡軟件
應用軟件
Mac 軟件下載
安卓軟件下載
網絡資訊
Mac資訊
Linux資訊
VPS資訊
NASA資訊
WordPress資訊
WeChat資訊
PHP資訊
教學資源
開源程序
網頁工具
SEO工具
醫療健康
其他資訊
Content from
Content to
2018 年 6 月
一 二 三 四 五 六 日
 123
45678910
11121314151617
18192021222324
252627282930  
« 5 月   7 月 »

分類

  • 網站公告
  • 限時免費
  • Windows 軟件下載
  • 系統軟件
  • 辦公軟件
  • 圖像處理
  • 影音媒體
  • 網絡軟件
  • 應用軟件
  • Mac 軟件下載
  • 安卓軟件下載
  • 網絡資訊
  • Mac資訊
  • Linux資訊
  • VPS資訊
  • NASA資訊
  • WordPress資訊
  • WeChat資訊
  • PHP資訊
  • 教學資源
  • 開源程序
  • 網頁工具
  • SEO工具
  • 醫療健康
  • 其他資訊

彙整

近期文章

  • 伊麗莎白·霍姆斯的合夥人正在為新的血液檢測新創公司籌集資金 2025-05-11
  • 微軟更新了Windows 11右鍵選單但你可能不會喜歡它 2025-05-11
  • 英特爾已停止其Deep Link技術的支援不再提供維護和更新 2025-05-11
  • OpenAI的企業應用正在加速競爭對手份額受到擠壓 2025-05-11
  • 新教宗良十四世表示將繼承方濟各路線稱AI對人類提出新的挑戰 2025-05-11
  • 技術突破讓商業聚變發電廠更便宜、更容易建造 2025-05-11
  • 曝首款折疊螢幕iPhone關鍵零件已送樣明年登場 2025-05-11
  • 部落客實測華為鴻蒙電腦能跑Windows 11 補齊軟體短板 2025-05-11
  • 玩家吐槽《毀滅戰士:黑暗時代》Steam定價太貴遠高於V社建議價格 2025-05-11
  • 來自FCC代表的信函顯示SpaceX星際飛船第九次測試發射即將啟動 2025-05-11

熱門文章與頁面︰

  • 您可以在Windows 11 24H2 中找回WordPad
  • Hosts File Editor+ v1.5.10 多語言中文​​正式版-hosts文件編輯器
  • 台積電將於明年第四季在新竹Fab 20廠生產基於2nm GAA的晶圓
  • R290易燃R32會爆炸?聊聊關於空調製冷劑的那些事
  • 海爾Leader三筒懶人洗衣機發表國補後3,999元起
  • AnyDVD v8.3.4.1 Beta
  • A24新片《遺軍之戰》 取自門多薩的戰爭回憶
  • Windows 11看視頻還要錢?教你免費安裝HEVC視頻擴展
  • 川普的加密貨幣項目似乎在價格暴跌後大量買入以太幣
  • z-sms – 在線免費云短信臨時手機號接碼平台網頁版

投遞稿件

歡迎各界人士投遞稿件到admin@wongcw.com

請提供以下資料:

1.你的名字

2.你的電郵

3.分類目錄

4.文章標題

5.文章摘要

6.文章內容

7.文章來源

 

聯繫我們

查詢,投稿,商務合作:
​admin@wongcw.com
​技術支援:
​support@wongcw.com
​客户服務:
​cs@wongcw.com

QQ群:833641851

快帆

MALUS

極度掃描

DMCA.com Protection Status

WONGCW 網誌

  • 免責聲明
  • 捐助我們
  • ThemeNcode PDF Viewer
  • ThemeNcode PDF Viewer SC
  • Events

服務器提供

本站使用之服務器由ikoula提供。

聯繫我們

查詢,投稿,商務合作:
​admin@wongcw.com
​技術支援:
​support@wongcw.com
​客户服務:
​cs@wongcw.com

QQ群:833641851

© 2025   All Rights Reserved.
 

載入迴響中...