更新时间:2025-05-28 gmt 08:00

制作扩展依赖包-j9九游会登录

准备一个zip包,zip包中用于扩展进程的编写,可以拉起一个扩展进程,zip包中限制如下:

zip包中必须含有extension命名的文件夹,extension的文件夹中必须包含以extension为前缀,.sh文件类型的脚本文件,用于后续扩展启动扩展进程,例如zip包的文件结构如下:

extension -

​ extensiondemo.sh

​test.py

代码内容参考

其中extensiondemo.sh 中的语言所在路径参考下表。

表1 多语言路径说明

语言

路径

java8

/opt/function/runtime/java8/rtsp/jre/bin/java

java11

/opt/function/runtime/java11/rtsp/jre/bin/java

node.js6

/opt/function/runtime/nodejs6.10/rtsp/nodejs/bin/node

node.js8

/opt/function/runtime/nodejs8.10/rtsp/nodejs/bin/node

node.js10

/opt/function/runtime/nodejs10.16/rtsp/nodejs/bin/node

node.js12

/opt/function/runtime/nodejs12.13/rtsp/nodejs/bin/node

node.js14

/opt/function/runtime/nodejs14.18/rtsp/nodejs/bin/node

python2.7

/opt/function/runtime/python2.7/rtsp/python/bin/python

python3.6

/opt/function/runtime/python3.6/rtsp/python/bin/python3

python3.9

/opt/function/runtime/python3.9/rtsp/python/bin/python3

php7.3

/opt/function/runtime/php7.3/rtsp/php/bin/php

相关文档

网站地图