Wiki JS Installation:
https://docs.requarks.io/install/linux
wget https://github.com/Requarks/wiki/releases/latest/download/wiki-js.tar.gz
Copy
mkdir wiki
tar xzf wiki-js.tar.gz -C ./wiki
cd ./wiki
Copy
config.yml:mv config.sample.yml config.yml
Copy
nano config.yml
Copy
npm rebuild sqlite3
Copy
node server
Copy
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.
wiki.service inside directory /etc/systemd/system.nano /etc/systemd/system/wiki.service
Copy
/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
Copy
systemctl daemon-reload
Copy
systemctl start wiki
Copy
systemctl enable wiki
Copy
Note: You can see the logs of the service using journalctl -u wiki