Linkis Console Deployment

    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. 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.

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

    (1) Upload file size limit

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

    Change upload size

    (2) Interface timeout

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