# 真实服务器资源配置

### 一、项目介绍

### 二、服务器资源

#### 1.项目服务器信息概览

**1.1三台服务器相关指标**

| 地址             | cpu                                                        | 内存      | 硬盘      | 系统                                   |
| -------------- | ---------------------------------------------------------- | ------- | ------- | ------------------------------------ |
| 查看命令           | *cat /proc/cpuinfo \| grep name \| cut -f2 -d: \| uniq -c* | free -g | *lsblk* | *cat /etc/redhat-release*            |
| 172.18.200.132 | 8 Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz                | 30g     | 500g    | CentOS Linux release 7.9.2009 (Core) |
| 172.18.200.133 | 8 Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz                | 30g     | 500g    | CentOS Linux release 7.9.2009 (Core) |
| 172.18.200.134 | 8 Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz                | 30g     | 500g    | CentOS Linux release 7.9.2009 (Core) |

**1.2项目ip和hostname配置：**

```
172.18.200.132 hadoop102
172.18.200.133 hadoop103
172.18.200.134 hadoop104
192.168.18.17 hadoop105
```

#### 2.项目进程部署：

**2.1 hadoop102:**

**1.minio**

```bash
docker run -p 9000:9000 -p 9090:9090 --name minio \
 -d --restart=always \
 -e MINIO_ACCESS_KEY=ruoyi \
 -e MINIO_SECRET_KEY=ruoyi123 \
 -v /usr/local/minio/data:/data \
 -v /usr/local/minio/config:/root/.minio \
  minio/minio server /data  --console-address ":9000" --address ":9090"
  
  docker run \
   -p 9000:9000 \
   -p 9090:9090 \
   --user $(id -u):$(id -g) \
   --name minio \
   -e "MINIO_ROOT_USER=ruoyi" \
   -e "MINIO_ROOT_PASSWORD=ruoyi123" \
   -v ${HOME}/minio/data:/data \
   quay.io/minio/minio server /data --console-address ":9090"
```

**2.redis**

**3.rabbitmq**

```bash
docker run -di --name rabbit -e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=admin123 \
-p 15672:15672 -p 5672:5672 -p 25672:25672 -p 1883:1883 \
rabbitmq:management
```

#### 2.2 hadoop103

| 服务名称               | 占用端口  | 版本                                     | 用户名   | 密码       |
| ------------------ | ----- | -------------------------------------- | ----- | -------- |
| tars               | 5000  | 3.0，（docker部署）                         | admin | admin123 |
| fisco-bcos-rpc     | 20200 | 3.2.0（config.toml文件进行部署,该节点为根节点，请不要改动） |       |          |
| fisco-bcos-gateway | 30300 | 3.2.0（config.toml文件进行部署，该节点为根节点，请不要改动） |       |          |

**2.2.1.tars**

```bash
# linux系统：进入到docker配置文件路径
cd ./fisco/BcosBuilder/docker/host/linux
# 创建并启动tars管理服务
docker-compose up -d
# 启动tars管理服务
docker-compose start
# 停止tars管理服务，停止前请关闭所有节点和服务
docker-compose stop
```

#### 2.3 hadoop104

| 服务名称                | 占用端口  | 版本                                              | 用户名   | 密码       |
| ------------------- | ----- | ----------------------------------------------- | ----- | -------- |
| webase-web          | 5000  | 3.0                                             | admin | admin123 |
| fisco-bcos-rpc      | 20200 | 3.2.0 （该节点可以通过接口进行卸载和删除，日志文件在/root/tarsnode目录下） |       |          |
| fisco-bcos-gateway  | 30300 | 3.2.0（该节点可以通过接口进行卸载和删除，日志文件在/root/tarsnode目录下）  |       |          |
| webase-node-Manager | 5001  | 3.0                                             |       |          |
| webase-front        | 5002  | 3.0                                             |       |          |
| webase-sign         | 5004  | 3.0                                             |       |          |

```bash
# webase-web文件目录
cd ./WeBASE-Web
# webase-node-Manager文件目录
cd ./WeBASE-Node-Manager
# webase-front文件目录
cd ./WeBASE-Front
# webase-sign 文件目录
cd ./WeBASE-Sign
```

#### 2.4 hadoop105

**1.redis**

```plain%20text
docker run -itd --name redis -p 6379:6379 redis
```

**2.minio**

```plain%20text
docker run  -p 9002:9002 --name minio \
 -d --restart=always \
 -e MINIO_ACCESS_KEY=minio \
 -e MINIO_SECRET_KEY=minio@123 \
 -v /usr/local/minio/data:/data \
 -v /usr/local/minio/config:/root/.minio \
  minio/minio server /data  --console-address ":9002" --address ":9090"
```

**3.portainer**

命令：

```bash
docker volume create portainer_data

docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:2.17.1
```

删除容器：

**4.nacos**

```nginx
docker run -d \
-e PREFER_HOST_MODE=ip \
-e MODE=standalone \
-e SPRING_DATASOURCE_PLATFORM=mysql \
-e MYSQL_SERVICE_HOST=192.168.18.17 \
-e MYSQL_SERVICE_PORT=3306 \
-e MYSQL_SERVICE_DB_NAME=nacos \
-e MYSQL_SERVICE_USER=root \
-e MYSQL_SERVICE_PASSWORD=Trasen@8812 \
-e NACOS_APPLICATION_PORT=8848 \
-p 8848:8848 -p 9848:9848 -p 9849:9849 \
--name nacos \
--restart=always \
--privileged=true \
nacos/nacos-server
```

### 三、服务器部署服务：

hadoop102：

| portainer           | 8000、9443、9444 | 2.18.2 | docker                          |     |    |
| ------------------- | -------------- | ------ | ------------------------------- | --- | -- |
| minio               | 9000           |        | docker                          |     |    |
| 服务名称                | 占用端口           | 版本     | 路径                              | 用户名 | 密码 |
| webase-node-Manager | 5001           | v3.0.0 | /usr/local/webase-node-manager/ |     |    |
| webase-front        | 5002           | v3.0.0 | /root/WeBASE-Front              |     |    |
| trasenchain-0.0.1   | 9999           | v0.0.1 | docker                          |     |    |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qiangrens-organization.gitbook.io/qkd90/fu-wu-qi-yun-wei-he-ce-shi/linux-fu-wu-qi/zhen-shi-fu-wu-qi-zi-yuan-pei-zhi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
