Scripts部署与安装
【摘要】 安装完毕linkis后1、部署Scriptshttps://github.com/WeBankFinTech/Scriptis/blob/master/docs/zh_CN/README.md Scripts本质上是Linkis的前端程序,Scripts通过restapi跟Linkis交互,因此我们部署Scripts到nginx即 可。1.1 下载安装包https://github.com/...
安装完毕linkis后
1、部署Scripts
https://github.com/WeBankFinTech/Scriptis/blob/master/docs/zh_CN/README.md
Scripts本质上是Linkis的前端程序,Scripts通过restapi跟Linkis交互,因此我们部署Scripts到nginx即
可。
1.1 下载安装包
1.2 安装Nginx
sudo yum install epel-release
sudo yum install nginx -y
2、⼿⼯部署Scripts
2.1 修改配置⽂件
sudo vi /etc/nginx/conf.d/scriptis.conf
server {
listen 18888;# 访问端⼝
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html/scripts; # 前端包解压的⽬录
index index.html index.html;
}
location /ws {#webSocket配置⽀持
proxy_pass http://ambari-03:9001;#linkis-gateway服务的ip端⼝
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /api {
proxy_pass http://ambari-03:9001; # linkis-gateway服务的ip端⼝
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 Upgrade $http_upgrade;
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;
}
}
2.2 部署前端包
解压缩wedatasphere-scriptis-0.7.1-dist.zip
unzip wedatasphere-scriptis-0.7.1-dist.zip
解压缩之后把dist⽬录重命令为scripts
mv dist scripts
把scripts⽬录移动到/usr/share/nginx/html/下
sudo mv scripts /usr/share/nginx/html/
重启Nginx
sudo systemctl restart nginx
访问
http://nginx_ip:nginx_port
3、常⻅问题
上传⽂件⼤⼩限制
sudo vi /etc/nginx/nginx.conf
更改上传⼤⼩
client_max_body_size 200m
接⼝超时
sudo vi /etc/nginx/conf.d/scriptis.conf
更改接⼝超时时间
proxy_read_timeout 600s
4、Scripts快速⼊⻔
5、拓展问题
- http://192.168.11.156:8080/api/v3/download/share/submit/widget/d5y1yjSUzDOt4XyxphGu5uCJrDLqKPGs/eNoNzEcBwEAIADBLwDGfTP-SWgGJ1GWSdL7QRBlhjHcKEjAdsa2YW1JkvVy368xsW7zXxRV9wZjmzWVUM0s5Bn5jEfRcWpky-IdXisYFloFCjPWPN6VvhBziZuagUYkCu635be7fns-7zX4_WSMFWBx2ZC-C-ADJBixU
- http://192.168.11.156:8080/share.html?shareToken=eNoNyrkBwDAIBLCVMJ9xCQfsP1JSS8kxhHJbeCA2Htc6STNKkFKyl37Qm1bcgCiUbDVphbh9PeLIJfha4dpRajsuR6NbPXijWeXJZCF7_RzK8p2o3poQ3IO3STU2MuYjj272u_JYcocFtKs1T5wT-Fc52JjQvB-Viywb#/share/dashboard
👇🏻 关注公众号 获取更多资料👇🏻
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)