> 如果你在安裝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
```
- 寫在前面
- 如何閱讀源碼
- 第一部分 開源框架
- Netty
- 啟動過程
- SpringSecurityOauth2
- Quartz
- quartz啟動原理
- quartz定時調度任務觸發流程
- 第二部分 優質中間件源碼分析
- Canal
- Canal是如何偽裝為mysql的slave的?
- canal源碼調試
- Sentinel
- 核心概念梳理
- 滑動窗口實現原理
- jvm-sandbox
- jvm-sandbox-repeater
- Windows環境安裝
- 結果比對
- 第三部分 優質行業項目源碼分析
- 第一章 分庫分表實踐
- sharding-jdbc
- 第二章 DDD領域驅動
- 享同科技DDD開源框架
- J-IM
- 功能測試
- 悟空CRM
- 項目搭建
- 默認密碼
- dataX-web
- 項目搭建
- 部署報錯
- dolphinscheduler
- awescnb
- geek
- chrome插件-funds
- 優質開源項目備忘