Linkis Console Deployment

Linkis 1.0 provides a Linkis Console, which provides functions such as displaying Linkis’ global history, modifying user parameters, managing ECM and microservices, etc. Before deploying the front-end management console, you need to deploy the Linkis back-end. Linkis deployment manual See: Linkis Deployment Manual

1. Preparation

  1. Download the web installation package from the release page of Linkis (click here to enter the download page), apache-linkis-xxx-incubating-web-bin. tar.gz Manually decompress: tar -xvf apache-linkis-x.x.x-incubating-web-bin.tar.gz, the decompressed directory is:
1. config.sh
2. dist
3. install.sh
4. ....

2. Deployment

1. There are two deployment methods, automated deployment and manual deployment

2.1 Automated deployment

1. Enter the unzipped front-end directory, and edit `vi config.sh` in the directory Change the front-end port and back-end interface address, the back-end interface address is the gateway address of Linkis.
1. #Configuring front-end ports
2. linkis_port="8088"

5. #URL of the backend linkis gateway
6. linkis_url="http://localhost:9001"

9. #linkis ip address
10. linkis_ipaddr=$(ip addr | awk'/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1" , "g", $2)}')

After the modification is executed in this directory, you need to use sudo to execute: sudo sh install.sh

After execution, you can directly access it in Google browser: http://linkis_ipaddr:linkis_port where linkis_port is the port configured in config.sh, and linkis_ipaddr is the IP of the installation machine

If the access fails: You can check the installation log which step went wrong

2.2 Manual deployment

  1. Install Nginx: sudo yum install nginx -y
  2. Modify the configuration file: sudo vi /etc/nginx/conf.d/linkis.conf Add the following content:
1. server {
2. listen 8080;# access port
3. server_name localhost;
4. #charset koi8-r;
5. #access_log /var/log/nginx/host.access.log main;
6. location / {
7. root /appcom/Install/linkis/dist; # The directory where the front-end package is decompressed
8. index index.html index.html;
9. }

11. location /api {
12. proxy_pass http://192.168.xxx.xxx:9001; # ip port of linkis-gateway service
13. proxy_set_header Host $host;
14. proxy_set_header X-Real-IP $remote_addr;
15. proxy_set_header x_real_ipP $remote_addr;
16. proxy_set_header remote_addr $remote_addr;
17. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
18. proxy_http_version 1.1;
19. proxy_connect_timeout 4s;
20. proxy_read_timeout 600s;
21. proxy_send_timeout 12s;
22. proxy_set_header Upgrade $http_upgrade;
23. proxy_set_header Connection upgrade;
24. }
25. #error_page 404 /404.html;
26. # redirect server error pages to the static page /50x.html
27. #
28. error_page 500 502 503 504 /50x.html;
29. location = /50x.html {
30. root /usr/share/nginx/html;
31. }
32. }
  1. Copy the front-end package to the corresponding directory: /appcom/Install/linkis/dist; # The directory where the front-end package is decompressed
  2. Start the service sudo systemctl restart nginx
  3. After execution, you can directly access it in Google browser: http://nginx_ip:nginx_port

3. Common problems

(1) Upload file size limit

1. sudo vi /etc/nginx/nginx.conf

Change upload size

1. client_max_body_size 200m

(2) Interface timeout

1. sudo vi /etc/nginx/conf.d/linkis.conf

Change interface timeout

1. proxy_read_timeout 600s