04Wikijs - amagerard/Wiki GitHub Wiki
1- Network | 2- NodejsRedis | 3- MariaDB | 4- Wikijs | 5- Nginx |
---|---|---|---|---|
6- Selinux | 7- UpdateWikijs | 8- Backup | 9- GnomeShell | 10 Troubleshoots |
groupadd wikijs
useradd -g wikijs -d /opt/wikijs wikijs
su - wikijs
wget https://github.com/Requarks/wiki/releases/latest/download/wiki-js.tar.gz
mkdir wiki
tar xvzf wiki-js.tar.gz -C ./wiki
mv ./wiki/config.sample.yml ./wiki/config.yml
exit
su - wikijs
vi ./wiki/config.yml
db:
type: mariadb
# PostgreSQL / MySQL / MariaDB / MS SQL Server only:
host: localhost
port: 3306
user: wikijs
pass: 641fqAB4d
db: wikijs
ssl: false
exit
cd /opt/wikijs/wiki
node server
You have installed on the wikijs server GnomeShell and Firefox.
If it is not done,
you will need to open port 3000 for external http access.
From the Wikijs server,
open the url : http://wikijs.domain:3000
or http://<Your IP>:3000
Enter a username@domain
for the administration and the password.
Example : [email protected]
password : 876kijg4
http://wikijs.ol26modk.com:3000
The web page http://wikijs.ol26modk.com:3000
is now accessible.
Create a startup service for wikijs.
vi /etc/systemd/system/wikijs.service
[Unit]
Description=Wiki.js
After=network.target
[Service]
Type=simple
# Maybe in future versions there will be no options to the node command.
ExecStart=/usr/bin/node --openssl-config=' ' server
Restart=always
# Consider creating a dedicated user for Wiki.js here:
User=wikijs
Group=wikijs
Environment=NODE_ENV=production
WorkingDirectory=/opt/wikijs/wiki/
[Install]
WantedBy=multi-user.target
systemctl enable --now wikijs