# Knowledge Base Deployment Manual

Document Version Content Revision Revised By⼈ Revision Date
V1 Draft Guochenghao 2022-11-23

# Table of Contents

# I.Prerequisites

Ensure that the CCS PRO service has been started normally.

# II.Database

Log in to the _system page as root: http://127.0.0.1:8529

Create a knowledge base database named【knowledge-base】

image-20221123142908644

# III. Running the Knowledge Base Backend Service

# 1. Obtain the Software

Download link:

image-20221207102211562

Unzip the downloaded zip file; the file structure is as follows:

image-20221207102254549

File Descriptions

Program Name Platform
kkfileview Document preview plugin
knowledge-base-server.zip Supports running on Linux systems such as Ubuntu, CentOS, and domestic operating systems like Kylin UOS

# 2. Running

# Start Kkfileview

Navigate to the Kkfileview folder and double-click start-win.bat to run Kkfileview. Once started successfully, Docker will start one container:

image-20221207102712476

# Start the Knowledge Base

# Method 1: Start via Hulk

Go to the Hulk configuration page, and click the 【Add Button】 in the upper right corner.

image-20221213112826935

Select the 【asset-management-server.zip】 file.

image-20221213113343762

Enable the service.

image-20221213112928780

# Method 2: Manual Start

Unzip the 【work-order-server.zip】.

image-20221207103059913

File Descriptions

File Name Platform
config Configuration File
public Static Files
ccs-knowledge-base-server-win-x64.exe Executable File
process.json Hulk Descriptor File

The software comes with an x86_64 executable version by default. For support on domestic operating systems and chips, please contact the development team for a customized version.

Double-click the executable file ccs-knowledge-base-server-win-x64.exe.

  • Modify the configuration file located at the user's directory: Sansi/knowledge-base/config/server.json.

    Change the host to the local IP.

    Modify the database address, username, and password.

    Change the knowledge base address.

    Change the document preview plugin address.

  • Double-click the corresponding icon to start the software.

For example: In a Windows operating system, simply double-clicking ccs-knowledge-base-server-win.exe will launch the application. Once the application starts successfully, a command window will appear similar to the image below:

image-20221207104021916

Notes

  1. If the command window closes immediately, it is likely due to incorrect database username or password.
  2. When modifying configuration files, do not use the built-in Notepad on Windows. Use editors like Notepad++ or Sublime Text to avoid damaging the file’s data structure.

# IV. Install Knowledge Base Page Plugin

Go to the CCS page: http://172.20.10.2:3436/#/editor to edit the target project.

# 1. Install Components

Click the 【Plugins】 button in the upper right corner.

image-20221031160439551

  1. Find the Knowledge Base plugin in the plugin repository; 2. Upload the Knowledge Base plugin locally; after successful installation, it will be displayed as follows.

image-20221123144128595

After the page refreshes automatically, the Knowledge Base plugin will appear in the left elements list.

image-20221123144223292

Drag the Knowledge Base component to the editing area and set the constraint to 【Fill Screen】.

img.png

# 2. Configure Service Address

Click the 【Configure】 button.

image-20221123144426106

Modify the service address for the knowledge base and save (usually http://127.0.0.1:3469).

image-20221123144520082

Select the component and update the server address.

image-20221123144557799

Then click the Run button.

image-20221123144629901

# V. Important Data Locations

# 1. Application Data Directory

After the application starts, it will generate relevant files in the user directory as follows:

In Windows systems, the folder path may be: C:\Users\CCC\Sansi\knowledge-base, where CCC is the current username.

In Linux systems, the folder path may be: /home/CCC/Sansi/knowledge-base, where CCC is the current username.

image-20221031162616431

  • If adjustments to the application startup port are needed later, please modify the config/server.json file in this directory.
  • If there are unresolved faults in the on-site program, please compress and package the logs directory and send it to the development team for fault analysis.

# 2. Data Backup

  1. Compress the user data directory, such as: C:\Users\CCC\Sansi\knowledge-base, and save it as a backup.
  2. Export the project data as an export.project.1666941704113.zip file for backup.