Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 – Google Cloud Platform

  • Nhu cầu lưu trữ tài liệu của các công ty tổ chức, doanh nghiệp ngày càng tăng. Yêu cầu cần phải có 1 nơi lưu trữ tổng hợp tài liệu. Wiki ra đời giúp giải quyết bài toán.
    Trên thị trường hiện tại có nhiều ứng dụng wiki khác nhau theo mã nguồn mở: Tiki, Media, Doku, Wiki JS.
  • Hôm nay mình sẽ hướng dẫn các bạn cách cài đặt Wiki JS trên Windows Server 2016, và Windows Server 2016 được cài đặt trên Google Cloud Platform

Các ứng dụng cần cài đặt:

  1. Windows server 2016
  2. Node.js
  3. PostgreSQL
  4. Wiki.js

Cài đặt Windows Sever 2016 trên Google Cloud Platform

1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Nhấn chọn Create Instance

2 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Điền tên máy ảo, chọn vùng Singapore gần Việt Nam nhất nên đường truyền tốt nhất và giả cả vừa phải
    Chọn cấu hình CPU và RAM theo nhu cầu, khuyến khích 2vCPU và RAM 8GB
    Nhấn vào change để chọn hệ điều hành

3 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Chọn Windows Server bản 2016, lưu ý chọn bản có giao diện Desktop
    Chọn ổ cứng SSD để lưu trữ hệ ddieuf hành để chạy nhanh hơn, kích thước ổ cứng cho hệ điều hành tối thiểu 50GB. Nhấn Select

4 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Tick chọn Allow HTTP và HTTPS. Nhấn Create

5 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Sau khi tạo xong, nhấn vào ARP -> Set Windows Password để tạo mật khẩu truy cập vào máy ảo

6 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Điền tên user, nhấn Set

7 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Copy lại mật khẩu, và lưu lại mật khẩu này, để đăng nhập được vào máy ảo

8 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Nhấn ARP -> Download the RDP file, sẽ tải về 1 Icon, nhấn vào Icon đó để truy cập vào máy ảo Windows vừa tạo

9 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Dán password lúc nãy vừa copy vào ô, nhấn OK

10 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Giao diện Windows Server 2016

11 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

 

 

Cài đặt Node.js

  • Từ giờ sẽ làm việc trong môi trường Windows Server
  • Trước tiên bạn cần cài Google Chrome trong Windows Server để dễ thao tác. Mở Server Manager -> Configure this local server

1 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Trong mục Properties -> IE Enhanced nhấn vào ON

2 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Chọn Off và nhấn OK

3 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Dowload Google Chrome về cài đặt
  • Dowload node.js về theo Link: https://nodejs.org/dist/v12.18.0/node-v12.18.0-x64.msi
  • Mở file vừa dowload về, chọn Next

4 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Tick chọn I accept -> Next

5 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Next tiếp

6 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Install

7 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Finish

8 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

 

 

Cài đặt PostgreSQL

9 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Tới bước này, hãy nhập password vào, password này sẽ dùng để đăng nhập vào SQL, nhấn Next

10 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Ghi chú lại số port, mặc định là 5432, nhấn Next

11 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Đang cài đặt

12 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Cài đặt xong

13 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Sau khi cài đặt xong, vào đường dẫn: C:Program FilesPostgreSQL12pgAdmin 4bin, mở file pgAdmin4

14 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Sẽ mở ra 1 link web, nhập mật khẩu admin đã tạo ban đầu

15 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Tạo user đăng nhập mới

16 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Nhập tên user

17 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Nhập password

18 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Phân quyền

19 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Click phải vào Databse -> Create -> Database

20 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Nhập tên Database mới, chọn Owner là tên User mới tạo ở trên, nhấn Save

21 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

 

 

Cài đặt Wiki JS

22 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Bạn cần NAT Port 3001 ra ngoài Internet trên Google Cloud Platform
  • Menu -> VPC Network -> Firewall

23 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Nhấn vào Create firewall rule

24 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Điền tên natport

25 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Targets chọn All instances in the network
    Source IP ranges: 0.0.0.0/0
    Tick chọn TCP: điền port bạn đặt, ở đây mình đặt 3001
    Nhấn Create

26 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

 

 

Khởi chạy Wiki JS

  • Trên Windows Server, mở Powshell, gõ lệnh
    • cd C:/wikijs
    • node server

27 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Mở trình duyệt web Chrome lên, gõ theo đường link: http://localhost:3001/
  • Nhập thông tin: email admin và password, site URL các bạn nhập địa chỉ IPWAN của máy ảo Windows Server trên Google Cloud(cách lấy IPWAN hướng dẫn ở dưới). Nhấn Install.

31 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Cách lấy IPWAN: Trên giao diện Google Cloud Platform nhấn Menu -> VPC netword -> External IP addresses, copy địa chỉ External IP addresses dán vào ô Site URL bên trên.

28 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Thành quả của các bạn sẽ giống giao diện thế này

30 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Người dùng vào Wiki JS bằng truy cập link: https://12.34.56.78:3001. Dãy IPWAN của bạn và port bạn đặt khi cài đặt Wiki JS
  • Để dịch vụ Wiki JS luôn chạy trên máy ảo. Hãy tạo 1 file notepad với nội dung:
    • cd C:\wikijs
    • node server

22 1 Hướng dẫn cài đặt Wiki JS trên Windows Server 2016 - Google Cloud Platform

  • Lưu file thành runwikijs.cmd
  • Mở hộp thoại Run bằng cách bấm tổ hợp phím Windows + R, gõ lệnh shell:startup. Dán file runwikijs.cmd vào thư mục khởi động cùng Windows. Vậy là mỗi lần máy ảo Windows Server 2016 mở lên, sẽ tự động chạy Wiki JS
  • Để tìm hiểu thêm về Wiki JS, các bạn có thể truy cập Link:
    https://docs.requarks.io/

Tác giả:  Nguyễn Công Tâm – ITFORVN.COM

Bạn có thể tương tác và cập nhật thông tin mới nhất của Nhóm Facebook ITFORVN, Các khóa học mới do group tổ chức tại «Portal»

5/5 - (1 vote)

Author

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x