Scripts的下载及安装(手动部署)

Scripts的下载及安装(手动部署)

安装完linkis后,可以部署Scripts

Scripts本质上是Linkis的前端程序,Scripts通过Restapi跟Linkis交互,因此我们部署Scripts到nginx即可。

1 下载安装包

https://github.com/WeBankFinTech/Scriptis/releases

在这里插入图片描述

或者  wget https://github.com/WeBankFinTech/Scriptis/releases/download/0.7.1/wedatasphere-scriptis-0.7.1-dist.zip

2 安装nginx

我的机器已安装,略。

3 手工部署Scripts

3.1 修改配置文件
vim /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://localhost:20401;#linkis-gateway服务的ip端⼝
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade"; 
    }
    location /api {
        proxy_pass http://localhost:20401; # 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;
    }
}
3.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/下
mv ./scripts /usr/share/nginx/html/


# 重启Nginx
systemctl restart nginx

# 访问(记得关闭防火墙)
http://nginx_ip:nginx_port
http://192.168.100.14:18888/

在这里插入图片描述

安装之后出现一个问题:

"GET /api/rest_j/v1/publicservice/getBaseInfo HTTP/1.1" 404

原因是:我们安装的linkis是DSS1.0集成版本的,其中内置了scriptis,需要的是1.0.0版本以上的,目前还没有剥离出来。
因此,后面,还是用DSS集成的scriptis了。

在这里插入图片描述

https://store.kde.org/content/show.php/Tiling?content=161151 Description: Note that this requires kde 4.11 for the config interface at least Tiling script for kwin, featuring: - A useractionmenu to selectively tile windows - Three layouts, all mouse-resizable - One layout with the option to set multiple "master" windows ("M-S-+" to increment, "M-S--" to decrement) - The option to deactivate tiling per-desktop via keybinding - A configuration menu for floating windows (by class) - An option to remove windowborders - "Animated" resizing and moving - Optional "useless" gaps Hotkeys: ("M" here stands for what is usually the windows key, "S" stands for shift) M-PgUp / M-PgDown: Switch layout for current desktop M-S-F11: Deactivate tiling on current desktop M-f: Toggle between tiling and floating for active window M-S-m: Swap active window with the master window M-S-+: Increment number of master windows in (default) "HalfLayout" M-S-h, M-S-j, M-S-k, M-S-l: Move window in corresponding direction The following have been removed in 1.6.2 as they are already provided by kwin (but set to different keys): M-u: Toggle window borders M-h, M-j, M-k, M-l: Switch focus in corresponding direction If you would like to help, consider reporting bugs and maybe even sending pullrequests to www.github.com/faho/kwin-tiling Changelog: 2 years ago * Forgot to enable bladelayout, could lead to crashes/script not working. * 1.0.1: Fix some issues with panel at the top * 1.1.0: Add an option to disable borders This should only be used with FocusUnderMouse, as because of a kwin limitation focus can jump and it's impossible to tell which window has focus * 1.1.1: Bugfixes and an attempt to adjust to new or removed panels * 1.1.2: Enable resize "animations" and bugfixes (again including panel struts) * 1.1.3: Retile on layout switch and keep desktop floating state * 1.1.4: Bugfixes related to tabgroups and the focus hotkeys * 1.2: Properly retile when a client resizes (including borders), "animate" moving, improve resizing "animation", add keybinding to toggle window border and bugfixes * 1.2.1: Remove broken tabgroup handling (tabgroups float for now) and add a possible bugfix for some transparency issues * 1.3 (unreleased): Readd clients that return (e.g. are unminimized) to their previous tile, bugfixes (including resizing) * 1.3.1: Tabgroups, add shortcut (Meta+Shift+M) to swap a window with the master, bugfixes * 1.3.1.1: Fix plasmoids immediately closing * 1.3.1.2: Fix maximizing, fullscreen and resizing bugs * 1.3.2: Fix windows not responding and focus-follows-mouse choosing the wrong window, add an option to open windows as master * 1.3.3: Fix movement losing windows, add workaround for steam update window, fix tiling not working * 1.4: Add option to disable tiling by default, add per-desktop layout configuration (as a line of text currently), add shortcut to toggle borders on all clients (M-S-U), add shortcuts to resize the master window (M-Alt-{h,j,k,l}), minor bug fixes * 1.5: Bugfixes (including crashes), optional gaps between windows, respect min/maxsize (unfortunately this could cause crashes under certain circumstances) * 1.6 (unreleased): Make resizing layout-agnostic, a manual tiling mode, code cleanup, fix tiling when compositing is disabled * 1.6.1: Respect min/maxSizes, multiple (or zero) master support in halflayout, bugfixes * 1.6.2: Make respecting min/MaxSizes an option, improve fullscreen behavior, improve configuration UI, remove shortcuts for toggling a border for a single window and switching focus (as they are provided by kwin itself already) * 1.6.3: Fix crash when number of desktops isn't height * width of desktopgrid, fix default floating list * 1.7.0: Bugfixes, add option to defer placement to kwin
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值