Try Wiki.js 3.0
I wrote this post in English because of my intension to send it to wiki.js' channel to reply to others' questions.
The operations below were done in Ubuntu Server 22.04 amd64
Set up the environment
Update system dependencies
sudo apt update && sudo apt upgrade -y
Install Node.js 18.x and yarn
If Node 18.x was already installed in your instance, please skip the step.
To install it directy, head to https://nodejs.org/en/download/. I'll set upnvm
here and then use it to set up the node environment.curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash # restart terminal nvm install node # install latest node npm install --global yarn
Install PostgreSQL 14.x
If postgresql was already installed on your instance, please skip this step.sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get -y install postgresql
Set up PostgreSQL database
sudo -u postgres psql CREATE USER wikijs WITH PASSWORD 'wikijsrocks'; CREATE DATABASE wiki OWNER wikijs; GRANT ALL PRIVILEGES ON DATABASE wiki TO wikijs; \q
Set up Wiki.js
Clone Wiki.js' repo and do setup
cd /your/desired/directory git clone https://github.com/requarks/wiki.git cd wiki git checkout vega yarn install cd ux yarn install npm run build #build assets cd .. cp config.sample.yml config.yml npm run start
Try out
- Access wiki js at
localhost:3000
or<your instance's local ip>:3000
You can try the below url:
Login Panel:/login
Admin Panel:/_admin/
Profile Panel:/_profile
转载本站原创文章需事先获得作者同意