Console Deployment

  1. The linkis web service uses nginx as a static resource server. The access request process is as follows :
  2. Linkis Management Console request -> Nginx ip:port-> Linkis-gateway ip:port-> Other services

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. 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 decompression directory is as follows.

  1. ├── config.sh
  2. ├── DISCLAIMER
  3. ├── dist
  4. ├── install.sh
  5. ├── LICENSE
  6. ├── licenses
  7. └── NOTICE
  1. There are two deployment methods, automated deployment and manual deployment
  1. #Configuring front-end ports
  2. linkis_port="8088"
  3. #URL of the backend linkis gateway
  4. linkis_url="http://localhost:9001"
  5. #linkis ip address, replace `127.0.0.1` to real ip address if neccssary
  6. linkis_ipaddr=127.0.0.1
  1. #sudo permission is required to install nginx
  2. 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

  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. }
  10. location /api {
  11. proxy_pass http://192.168.xxx.xxx:9001; # ip port of linkis-gateway service
  12. proxy_set_header Host $host;
  13. proxy_set_header X-Real-IP $remote_addr;
  14. proxy_set_header x_real_ipP $remote_addr;
  15. proxy_set_header remote_addr $remote_addr;
  16. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  17. proxy_http_version 1.1;
  18. proxy_connect_timeout 4s;
  19. proxy_read_timeout 600s;
  20. proxy_send_timeout 12s;
  21. proxy_set_header Upgrade $http_upgrade;
  22. proxy_set_header Connection upgrade;
  23. }
  24. #error_page 404 /404.html;
  25. # redirect server error pages to the static page /50x.html
  26. #
  27. error_page 500 502 503 504 /50x.html;
  28. location = /50x.html {
  29. root /usr/share/nginx/html;
  30. }
  31. }
  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

(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