Linkis Console Deployment
- 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:
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
Modify the configuration file: sudo vi /etc/nginx/conf.d/linkis.conf Add the following content:
server {
listen 8080;# access port
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
root /appcom/Install/linkis/dist; # The directory where the front-end package is decompressed
index index.html index.html;
}
location /api {
proxy_pass http://192.168.xxx.xxx:9001; # ip port of linkis-gateway service
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header x_real_ipP $remote_addr;
proxy_set_header remote_addr $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_connect_timeout 4s;
proxy_read_timeout 600s;
proxy_send_timeout 12s;
proxy_set_header Connection upgrade;
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Copy the front-end package to the corresponding directory:
/appcom/Install/linkis/dist; # The directory where the front-end package is decompressed
Start the service
sudo systemctl restart nginx
(1) Upload file size limit
sudo vi /etc/nginx/nginx.conf
Change upload size
(2) Interface timeout
sudo vi /etc/nginx/conf.d/linkis.conf