Skip to content

Commit

Permalink
add backup of curl cmd in doc (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxq2011hust authored and cyjseagull committed Apr 29, 2020
1 parent df51e7a commit e27f1f7
Show file tree
Hide file tree
Showing 16 changed files with 135 additions and 68 deletions.
16 changes: 13 additions & 3 deletions docs/enterprise_tools/operation.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ $ cd ./data/monitor
1. 监控节点是否存活, 并且可以重新启动挂掉的节点.
2. 获取节点的块高和view信息, 判断节点共识是否正常.
3. 分析最近一分钟的节点日志打印, 收集日志关键错误打印信息, 准实时判断节点的状态.
4. 指定日志文件或者指定时间段, 分析节点的共识消息处理, 出块, 交易数量等信息, 判断节点的健康度.
4. 指定日志文件或者指定时间段, 分析节点的共识消息处理, 出块, 交易数量等信息, 判断节点的健康度.

### 配置告警服务

Expand All @@ -392,7 +392,7 @@ $ cd ./data/monitor
绑定自己的github账号,以及微信后,可以使用本脚本向微信发送告警信息,使用本脚本的-s命令 可以向指定微信发送告警信息

如果用户希望使用其他服务,可以修改monitor.sh中的alarm() {
# change http server
# change http server
}函数,个性化配置为自己需要的服务

### help命令
Expand Down Expand Up @@ -458,7 +458,12 @@ FISCO BCOS generator 的scripts文件夹的`check_certificates.sh`脚本包含
如果用户需要检测由`开发部署工具buildchain.sh`生成的节点时,可以采用以下命令获取检测脚本:

```bash
$ curl -LO https://raw.githubusercontent.com/FISCO-BCOS/generator/master/scripts/check_certificates.sh && chmod u+x check_certificates.sh
curl -LO https://raw.githubusercontent.com/FISCO-BCOS/generator/master/scripts/check_certificates.sh && chmod u+x check_certificates.sh
```

```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载,请尝试 `curl -LO https://gitee.com/FISCO-BCOS/generator/raw/master/scripts/check_certificates.sh && chmod u+x check_certificates.sh`
```

使用generator部署节点的用户可以从generator的根目录下,从scripts/check_certificates.sh获取脚本。
Expand Down Expand Up @@ -493,6 +498,11 @@ $ ./check_certificates.sh -v ~/ca.crt ~/node.crt
curl -LO https://raw.githubusercontent.com/FISCO-BCOS/FISCO-BCOS/master/tools/check_node_config.sh && chmod u+x check_node_config.sh
```

```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载,请尝试 `curl -LO https://gitee.com/FISCO-BCOS/FISCO-BCOS/raw/master/tools/check_node_config.sh`
```

### 使用

使用下面的命令,脚本`-p`选项指定节点路径,脚本会根据路径下的config.ini分析配置是否有错误。
Expand Down
6 changes: 3 additions & 3 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ curl -LO https://github.com/FISCO-BCOS/FISCO-BCOS/releases/download/v2.4.0/build

```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载build_chain.sh脚本,请尝试从 `https://gitee.com/FISCO-BCOS/FISCO-BCOS/raw/master/tools/build_chain.sh` 获取脚本
- 如果因为网络问题导致长时间无法下载build_chain.sh脚本,请尝试 `curl -LO https://gitee.com/FISCO-BCOS/FISCO-BCOS/raw/master/tools/build_chain.sh && chmod u+x build_chain.sh`
```

### 搭建单群组4节点联盟链
Expand Down Expand Up @@ -164,12 +164,12 @@ info|2019-01-21 17:23:40.612241| [g:1][p:264][CONSENSUS][SEALER]++++++++++++++++
- 获取控制台并回到fisco目录

```bash
cd ~/fisco && curl -LO https://github.com/FISCO-BCOS/console/releases/download/v1.0.9/download_console.sh && bash download_console.sh
cd ~/fisco && curl -LO https://github.com/FISCO-BCOS/console/releases/download/v1.0.9/download_console.sh && bash download_console.sh
```

```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载,请尝试从 `https://gitee.com/FISCO-BCOS/console/raw/master/tools/download_console.sh` 获取
- 如果因为网络问题导致长时间无法下载,请尝试 `cd ~/fisco && curl -LO https://gitee.com/FISCO-BCOS/console/raw/master/tools/download_console.sh`
```

- 拷贝控制台配置文件
Expand Down
8 changes: 5 additions & 3 deletions docs/manual/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ FISCO BCOS提供了脚本和Web3SDK用以创建账户,同时也提供了Web3SD
## 账户的创建

### 使用脚本创建账户

#### 1. 获取脚本

```bash
curl -LO https://raw.githubusercontent.com/FISCO-BCOS/console/master/tools/get_account.sh && chmod u+x get_account.sh && bash get_account.sh -h
```

```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载,请尝试从 `https://gitee.com/FISCO-BCOS/console/raw/master/tools/get_account.sh` 获取
- 如果因为网络问题导致长时间无法下载,请尝试 `curl -LO https://gitee.com/FISCO-BCOS/console/raw/master/tools/get_account.sh && chmod u+x get_account.sh && bash get_account.sh -h`
```

国密版本请使用下面的指令获取脚本
Expand All @@ -31,8 +33,8 @@ curl -LO https://raw.githubusercontent.com/FISCO-BCOS/console/master/tools/get_g

```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载,请尝试从 `https://gitee.com/FISCO-BCOS/console/raw/master/tools/get_gm_account.sh` 获取
- get_gm_account需要下载tassl,如果无法下载,请从 `https://gitee.com/FISCO-BCOS/LargeFiles/raw/master/tools/tassl.tar.gz` 获取,解压放在~/.fisco/tassl,1.0.9及以下版本放在~/.tassl
- 如果因为网络问题导致长时间无法下载,请尝试 `curl -LO https://gitee.com/FISCO-BCOS/console/raw/master/tools/get_gm_account.sh && chmod u+x get_gm_account.sh && bash get_gm_account.sh -h`
- get_gm_account需要下载tassl,如果无法下载,请尝试 `curl -LO https://gitee.com/FISCO-BCOS/LargeFiles/raw/master/tools/tassl.tar.gz` ,解压放在~/.fisco/tassl,1.0.9及以下版本放在~/.tassl
```

执行上面的指令,看到如下输出则下载到了正确的脚本,否则请重试。
Expand Down
5 changes: 5 additions & 0 deletions docs/manual/build_chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ Processing IP:127.0.0.1 Total:4 Agency:agency Groups:1
curl -LO https://raw.githubusercontent.com/FISCO-BCOS/FISCO-BCOS/master/tools/gen_node_cert.sh
```
```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载,请尝试 `curl -LO https://gitee.com/FISCO-BCOS/FISCO-BCOS/raw/master/tools/gen_node_cert.sh`
```
2. 生成新节点私钥证书
```bash
Expand Down
13 changes: 13 additions & 0 deletions docs/manual/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,20 @@
.. important::
前置条件:搭建FISCO BCOS区块链请参考 `开发部署工具 <./build_chain.html>`_ 或 `企业工具 <../enterprise_tools/index.html>`_。
```

### 获取控制台

```bash
cd ~ && mkdir -p fisco && cd fisco
# 获取控制台
curl -LO https://github.com/FISCO-BCOS/console/releases/download/v1.0.9/download_console.sh && bash download_console.sh
```

```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载,请尝试 `curl -LO https://gitee.com/FISCO-BCOS/console/raw/master/tools/download_console.sh && bash download_console.sh`
```

目录结构如下:
```bash
|-- apps # 控制台jar包目录
Expand Down Expand Up @@ -157,6 +164,11 @@ $ curl -LO https://github.com/FISCO-BCOS/LargeFiles/raw/master/tools/solcj/solcJ
$ bash replace_solc_jar.sh solcJ-all-0.4.25-gm.jar
```

```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载,请尝试 `curl -LO https://gitee.com/FISCO-BCOS/LargeFiles/raw/master/tools/solcj/solcJ-all-0.4.25-gm.jar`
```

#### 合约编译工具

**控制台提供一个专门的编译合约工具,方便开发者将solidity合约文件编译为java合约文件。** 使用该工具,分为两步:
Expand Down Expand Up @@ -209,6 +221,7 @@ $ curl -LO https://github.com/FISCO-BCOS/LargeFiles/raw/master/tools/solcj/solcJ
```bash
$ curl -LO https://github.com/FISCO-BCOS/LargeFiles/raw/master/tools/solcj/solcJ-all-0.5.2-gm.jar
```

### 启动控制台

在节点正在运行的情况下,启动控制台:
Expand Down
7 changes: 6 additions & 1 deletion docs/manual/get_executable.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build_chain.sh脚本增加了`-d`选项,提供docker模式建链的选择,

```eval_rst
.. note::
源码编译适合于有丰富开发经验的用户,编译过程中需要下载依赖库,请保持网络畅通。受网络和机器配置影响,编译用时5-20分钟不等。
```

Expand Down Expand Up @@ -80,6 +80,11 @@ $ cmake ..
$ make
```

```eval_rst
.. note::
- 如果因为网络问题导致长时间无法下载依赖库,请尝试从 `https://gitee.com/FISCO-BCOS/LargeFiles/tree/master/libs` 下载,放在FISCO-BCOS/deps/src/
```

### 编译选项介绍

- BUILD_GM,默认off,国密编译开关。通过`cmake -DBUILD_GM=on ..`打开国密开关。
Expand Down

0 comments on commit e27f1f7

Please sign in to comment.