ubuntu WiKi.js install

ubuntu WiKi.js install

 

Git install

test@docker-test:~$ sudo add-apt-repository -y ppa:git-core/ppa
test@docker-test:~$ sudo apt update && sudo apt upgrade
test@docker-test:~$ sudo apt install git

 

Nodejs install

test@docker-test:~$ sudo apt install curl
test@docker-test:~$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
test@docker-test:~$ sudo apt install -y nodejs
test@docker-test:~$ sudo apt install mongodb

 

Wiki-js install

test@docker-test:~$ sudo mkdir -p /var/www/wikijs
test@docker-test:~$ cd /var/www/wikijs/
test@docker-test:/var/www/wikijs$ curl -sSo- https://wiki.js.org/install.sh | sudo bash
 __    __ _ _    _    _
/ / /\ \ (_) | _(_)  (_)___
\ \/  \/ / | |/ / |  | / __|
 \  /\  /| |   <| |_ | \__ \
  \/  \/ |_|_|\_\_(_)/ |___/
                   |__/
   < INSTALL >

[1/3] Fetching latest build...
[2/3] Fetching dependencies...
[3/3] Creating config file...
-> Installation Complete

Thank you for installing Wiki.js!
Please consider donating to our open collective to help maintain this project:
https://opencollective.com/wikijs/donate

- Launch configuration wizard: node wiki configure
- Start Wiki.js server: node wiki start

test@docker-test:/var/www/wikijs$

test@docker-test:/var/www/wikijs$ sudo node wiki configure

 

 

 

 

 

 

 

 

SKIP THIS STEP 으로 Git 설정 부분은 넘어갑니다.

 

 

 

 

Configure 가 끝나면 자동적으로 wiki js 가 정지 합니다.

test@docker-test:/var/www/wikijs$ sudo node wiki configure
⠴ Browse to http://localhost:3000 to configure Wiki.js!
✔ Wiki.js is now running in normal mode!
test@docker-test:/var/www/wikijs$

 

WiKi.js config 파일 수정및 WiKi.js 실행

test@docker-test:/var/www/wikijs$ pwd
/var/www/wikijs
test@docker-test:/var/www/wikijs$ vi config.yml
title: Wiki
#host: 'http://localhost'
host: 'http://192.168.0.100'
port: 80
test@docker-test:/var/www/wikijs$ sudo node wiki start
✔ Wiki.js has started successfully.
test@docker-test:/var/www/wikijs$

 

 

 

 

댓글 남기기