多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
> 如果你在安装repeater时,存在一定的困惑,不妨先好好了解一下bin目录下各个脚本的功能~ 本篇来介绍jvm-sandbox-repeater的几个脚本解析。 其实这几个脚本,都是在描述,sandbox以及repeater如何打包、安装,甚至几个脚本是有所冗余的,我们执行之前应该去了解各个脚本做了什么,而不至于向无头苍蝇一样,胡乱执行,以免造成不必要的配置混乱。 当然,刚开始我自己也是这样,毕竟官网的文档的真的太简单了…… 但好歹,我们有了这个文档,目的就是让大家少走弯路。 ## 环境变量 ${HOME}是操作系统的用户环境路径: windows下,其路径为: ``` $ echo $HOME /c/Users/Lijx ``` ## 脚本解析 | 脚本名称 | | | --- | --- | | package.sh | 把repeater的插件、配置信息打包并发送到sandbox对应的目录中 | | bootstrap.sh | repeater的启动脚本,当sandbox的module目录下不存在repeater-bootstrap.jar时,会执行install-local.sh构建repeater | 关于sandbox ## 文件结构 package.sh打包后的文件结构如下: ``` $ tar -zxvf repeater-stable-bin.tar repeater/ repeater/plugins/ repeater/cfg/ repeater/repeater-bootstrap.jar repeater/repeater-module.jar repeater/cfg/repeater.properties repeater/cfg/repeater-config.json repeater/cfg/repeater-logback.xml repeater/plugins/mybatis-plugin.jar repeater/plugins/hibernate-plugin.jar repeater/plugins/spring-data-jpa-plugin.jar repeater/plugins/dubbo-plugin.jar repeater/plugins/redis-plugin.jar repeater/plugins/ibatis-plugin.jar repeater/plugins/http-plugin.jar repeater/plugins/java-plugin.jar ```