JiFu's Wiki JiFu's Wiki
首页
  • HTML
  • JavaScript
  • NodeJS
  • Vuejs
  • 微信小程序
  • Python
  • 数据库
  • 中间件
  • 算法
  • 软件工程
  • Wordpress
  • iOS开发
  • Android开发
  • Linux
  • Windows
  • MacOS
  • Docker
  • Vim
  • VSCode
  • Office
  • 其他
  • Photoshop
  • Sketch
  • Mac
  • 游戏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
首页
  • HTML
  • JavaScript
  • NodeJS
  • Vuejs
  • 微信小程序
  • Python
  • 数据库
  • 中间件
  • 算法
  • 软件工程
  • Wordpress
  • iOS开发
  • Android开发
  • Linux
  • Windows
  • MacOS
  • Docker
  • Vim
  • VSCode
  • Office
  • 其他
  • Photoshop
  • Sketch
  • Mac
  • 游戏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • DevOps介绍
  • Linux

  • MacOS

  • Windows

  • Docker

  • Vim

  • VSCode

  • Office

  • 其他

    • Wiki.js安装手册
    • Vuepress手册
    • git submodule在项目中的使用
    • ffmpeg命令手册
    • git pre-commit使用
    • alfred插件推荐
    • Git中.gitignore无效的解决办法
    • Git忽略提交规则 - .gitignore配置总结
    • screenFetch 命令行信息截图工具
    • Axel:命令行下轻量级多线程下载程序
    • Inxi:一个功能强大的获取 Linux 系统信息的命令行工具
    • Linux下Aria2下载器的安装及配置
    • Chrome浏览器怎么清理单个页面缓存
    • MacOS软件私人配置
  • 运维
  • 其他
JiFu
2024-03-19

Wiki.js安装手册

# Install

  1. Download the latest version of Wiki.js:
wget https://github.com/Requarks/wiki/releases/latest/download/wiki-js.tar.gz
1
  1. Extract the package to the final destination of your choice:

mkdir wiki
tar xzf wiki-js.tar.gz -C ./wiki
cd ./wiki
1
2
3
4
  1. Rename the sample config file to config.yml:
mv config.sample.yml config.yml
1
  1. Edit the config file and fill in your database and port settings (Configuration Reference):
vim config.yml
1
  1. For SQLite installations only: (skip this step otherwise) Fetch native bindings for SQLite3:
npm rebuild sqlite3
1
  1. Run Wiki.js
node server
1

# Run as service

There are several solutions to run Wiki.js as a background service. We'll focus on systemd in this guide as it's available in nearly all linux distributions.

  1. Create a new file named wiki.service inside directory /etc/systemd/system.
nano /etc/systemd/system/wiki.service
1
  1. Paste the following contents (assuming your wiki is installed at /var/wiki):
[Unit]
Description=Wiki.js
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/node server
Restart=always
# Consider creating a dedicated user for Wiki.js here:
User=nobody
Environment=NODE_ENV=production
WorkingDirectory=/var/wiki

[Install]
WantedBy=multi-user.target
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  1. Save the service file (CTRL+X, followed by Y).

  2. Reload systemd:

systemctl daemon-reload
1
  1. Run the service:
systemctl start wiki
1
  1. Enable the service on system boot.
systemctl enable wiki
1
#wiki.js#安装手册
上次更新: 2024/03/19, 15:13:37
Excel 二级下拉菜单
Vuepress手册

← Excel 二级下拉菜单 Vuepress手册→

最近更新
01
MacOS软件推荐
04-30
02
Debian Sway开发机安装手册
03-26
03
Debian服务器安装手册
03-11
更多文章>
Theme by Vdoing | Copyright © 2019-2025 Ji Fu | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式