Merge branch 'develop'

pull/135/head
13621160019@163.com 2022-03-12 09:50:30 +08:00
commit d4d920408d
6 changed files with 45 additions and 39 deletions

View File

@ -9,7 +9,7 @@
### 配置 ### 配置
**注**这里的主机指的是安装Docker的主机, 这里的IP和账号密码都为假定的用来展示说明请酌情修改。 **注**主机指的是运行Docker引擎的服务器, IP和账号密码请酌情修改。
| -- | -- | | -- | -- |
| ---------- | ----------- | | ---------- | ----------- |
@ -46,31 +46,31 @@ mysql -u root -p < myems_user_db.sql
3. 修改配置 3. 修改配置
注:如“配置”所述,这里假定的**主机IP为 192.168.0.1数据库IP为 192.168.0.2数据库账号为root,数据库密码:!MyEMS1,用户应该修改为自己对应的主机IP,数据库IP,数据库账号,数据库密码** ****假定的主机IP为 192.168.0.1数据库IP为 192.168.0.2数据库账号为root,数据库密码:!MyEMS1,请酌情修改
3.1 修改nginx.conf里的API配置 3.1 修改nginx.conf里的API配置
``` ```
cd myems cd myems
sed -i 's/127.0.0.1:8000/192.168.0.1:8000/g' admin/nginx.conf nano admin/nginx.conf
sed -i 's/127.0.0.1:8000/192.168.0.1:8000/g' web/nginx.conf nano web/nginx.conf
``` ```
3.2 复制example.env为.env并修改.env里的数据库IP账号密码 3.2 分别复制下列目录中的example.env为.env并修改.env里的数据库IP账号密码
``` ```
cd myems cd myems
cp myems-aggregation/example.env myems-aggregation/.env cp myems-aggregation/example.env myems-aggregation/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-aggregation/.env nano myems-aggregation/.env
cp myems-api/example.env myems-api/.env cp myems-api/example.env myems-api/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-api/.env nano myems-api/.env
cp myems-cleaning/example.env myems-cleaning/.env cp myems-cleaning/example.env myems-cleaning/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-cleaning/.env nano myems-cleaning/.env
cp myems-modbus-tcp/example.env myems-modbus-tcp/.env cp myems-modbus-tcp/example.env myems-modbus-tcp/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-modbus-tcp/.env nano myems-modbus-tcp/.env
cp myems-normalization/example.env myems-normalization/.env cp myems-normalization/example.env myems-normalization/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-normalization/.env nano myems-normalization/.env
``` ```
3.3 修改docker-compose.yml中upload文件夹 3.3 修改docker-compose.yml中upload文件夹路径
如果是Windows主机在api和admin服务中volumes/source使用 c:\upload 如果是Windows主机在api和admin服务中volumes/source使用 c:\upload
如果是Linux主机在api和admin服务中volumes/source使用 /upload 如果是Linux主机在api和admin服务中volumes/source使用 /upload
应确保api和admin共享同一主机文件夹。 应确保api和admin共享同一主机文件夹。

View File

@ -3,13 +3,13 @@ Erstellen und starten Sie alle Dienste mit einem einzigen Befehl
### Voraussetzung ### Voraussetzung
- Installed docker, docker-compose, npm on a host. - Installierter Docker, docker-compose, npm auf dem Host.
- Installed MySQL database with username 'root' and password '!MyEMS1'. - Installierter MySQL Server mit Benutzername 'root' und Passwort '! MyEMS1".
- The MySQL database can be connected from the host where Docker is installed. - Die MySQL-Datenbank kann von dem Host aus verbunden werden, auf dem die Docker-Engine läuft.
### Konfiguration ### Konfiguration
**Anmerkung**: Der Host hier bezieht sich auf den Host, auf dem Docker installiert ist. Die IP und das Account-Passwort werden hier angenommen und verwendet, um Anweisungen anzuzeigen. Bitte ändern Sie sie entsprechend. **Anmerkung**: Der Host bezieht sich auf den Server, auf dem Docker-Engine läuft. Bitte ändern Sie die IP und das Kontopasswort entsprechend..
| -- | -- | | -- | -- |
| ---------- | ----------- | | ---------- | ----------- |
@ -46,28 +46,28 @@ Anmerkung: Siehe unter [database/README.md](./database/README.md)
3. Konfiguration ändern 3. Konfiguration ändern
**Anmerkungen**Die Host-IP hier angenommen ist 192.168.0.1, die Datenbank-IP ist 192.168.0.2, das Datenbank-Konto ist: root und das Datenbank-Passwort ist: !MyEMS1, bitte ändern Sie dies entsprechend **Anmerkungen**Die angenommene Host-IP ist 192.168.0.1, die Datenbank-IP ist 192.168.0.2, das Datenbankkonto ist: root und das Datenbank-Passwort ist:! Myems1, bitte ändern Sie dies entsprechend
3.1 API-Adresse ändern in nginx.conf 3.1 API-Adresse ändern in nginx.conf
``` ```
cd myems cd myems
sed -i 's/127.0.0.1:8000/192.168.0.1:8000/g' admin/nginx.conf nano admin/nginx.conf
sed -i 's/127.0.0.1:8000/192.168.0.1:8000/g' web/nginx.conf nano web/nginx.conf
``` ```
3.2 Beispiel example.env bis .env und Datenbank-IP, Benutzername und Passwort in .env 3.2 Kopieren Sie das folgende Beispiel in das Verzeichnis bzw. Env ist Env und modifizieren Datenbank IP, Kontonummer und Passwort in Env
``` ```
cd myems cd myems
cp myems-aggregation/example.env myems-aggregation/.env cp myems-aggregation/example.env myems-aggregation/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-aggregation/.env nano myems-aggregation/.env
cp myems-api/example.env myems-api/.env cp myems-api/example.env myems-api/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-api/.env nano myems-api/.env
cp myems-cleaning/example.env myems-cleaning/.env cp myems-cleaning/example.env myems-cleaning/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-cleaning/.env nano myems-cleaning/.env
cp myems-modbus-tcp/example.env myems-modbus-tcp/.env cp myems-modbus-tcp/example.env myems-modbus-tcp/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-modbus-tcp/.env nano myems-modbus-tcp/.env
cp myems-normalization/example.env myems-normalization/.env cp myems-normalization/example.env myems-normalization/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-normalization/.env nano myems-normalization/.env
``` ```
3.3 Upload-Ordner ändern in docker-compose.yml 3.3 Upload-Ordner ändern in docker-compose.yml

View File

@ -3,13 +3,13 @@ Create and start all the services with a single command
### Prerequisite ### Prerequisite
- Installed docker, docker-compose, npm on a host. - Installed docker, docker-compose, npm on the host.
- Installed MySQL database with username 'root' and password '!MyEMS1'. - Installed MySQL server with username 'root' and password '!MyEMS1'.
- The MySQL database can be connected from the host where Docker is installed. - The MySQL database can be connected from the host on which the Docker Engine runs.
### Configuration ### Configuration
**Note**: The host here refers to the host where docker is installed. The IP and account password here are assumed and used to show instructions. Please modify them as appropriate. **Note**: The host refers to the server on which the docker engine runs. The IP and account password are assumed and used to show instructions. Please modify them as appropriate.
| -- | -- | | -- | -- |
| ---------- | ----------- | | ---------- | ----------- |
@ -46,28 +46,28 @@ Note: Refer to [database/README.md](./database/README.md)
3. Modify Config 3. Modify Config
**Note**The host IP assumed here is 192.168.0.1, the database IP is 192.168.0.2, the database account is: root, and the database password is: !MyEMS1, please modify as appropriate **Note**Assume the host IP is 192.168.0.1, the database IP is 192.168.0.2, the database account is: root, and the database password is: !MyEMS1, please modify them as appropriate
3.1 Modify api address in nginx.conf 3.1 Modify API's address in nginx.conf
``` ```
cd myems cd myems
sed -i 's/127.0.0.1:8000/192.168.0.1:8000/g' admin/nginx.conf nano admin/nginx.conf
sed -i 's/127.0.0.1:8000/192.168.0.1:8000/g' web/nginx.conf nano web/nginx.conf
``` ```
3.2 Copy example.env to .env and modify database IP, username and password in .env 3.2 Copy example.env to .env in each folder and modify database IP, username and password in .env
``` ```
cd myems cd myems
cp myems-aggregation/example.env myems-aggregation/.env cp myems-aggregation/example.env myems-aggregation/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-aggregation/.env nano myems-aggregation/.env
cp myems-api/example.env myems-api/.env cp myems-api/example.env myems-api/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-api/.env nano myems-api/.env
cp myems-cleaning/example.env myems-cleaning/.env cp myems-cleaning/example.env myems-cleaning/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-cleaning/.env nano myems-cleaning/.env
cp myems-modbus-tcp/example.env myems-modbus-tcp/.env cp myems-modbus-tcp/example.env myems-modbus-tcp/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-modbus-tcp/.env nano myems-modbus-tcp/.env
cp myems-normalization/example.env myems-normalization/.env cp myems-normalization/example.env myems-normalization/.env
sed -i 's/127.0.0.1/192.168.0.2/g' myems-normalization/.env nano myems-normalization/.env
``` ```
3.3 Modify upload folder in docker-compose.yml 3.3 Modify upload folder in docker-compose.yml

View File

@ -1,5 +1,5 @@
## MyEMS企业版功能 ## MyEMS企业版可选功能
| 功能 |企业版 | 说明 | | 功能 |企业版 | 说明 |
| :--- | :----: | :----: | | :--- | :----: | :----: |
@ -51,6 +51,8 @@
| LoRa无线数传电台模块(数据采集和远程控制)| ✔️ | MyEMS认证 | | LoRa无线数传电台模块(数据采集和远程控制)| ✔️ | MyEMS认证 |
| 重点用能单位能耗在线监测系统上传省市级平台通信协议| ✔️| 企业版组件授权,可定制开发 | | 重点用能单位能耗在线监测系统上传省市级平台通信协议| ✔️| 企业版组件授权,可定制开发 |
| 第三方系统集成服务 | ✔️ | 企业版组件授权,可定制开发 | | 第三方系统集成服务 | ✔️ | 企业版组件授权,可定制开发 |
| 支持故障赔付 | ✔️ | |
| 提供正规发票与合同 | ✔️ | |
| 线上软件使用培训 | ✔️ | | | 线上软件使用培训 | ✔️ | |
| 线下软件使用培训 | ✔️ | | | 线下软件使用培训 | ✔️ | |
| 邮件技术支持 | ✔️ | | | 邮件技术支持 | ✔️ | |

View File

@ -52,6 +52,8 @@
| LoRa Radio Module (Data Acquisition and Remote Control | ✔️ | MyEMS-zertifiziertes LoRa-Hardwaregerät | | LoRa Radio Module (Data Acquisition and Remote Control | ✔️ | MyEMS-zertifiziertes LoRa-Hardwaregerät |
| Protocol for Uploading to Provincial/Municipal Platform of On-line monitoring system for Key Energy-Consuming Unit | ❌ | ✔️ | | | Protocol for Uploading to Provincial/Municipal Platform of On-line monitoring system for Key Energy-Consuming Unit | ❌ | ✔️ | |
| 3rd Party Systems Integration Service | ✔️ | Kundenspezifische Entwicklung | | 3rd Party Systems Integration Service | ✔️ | Kundenspezifische Entwicklung |
| Fehler Schadensersatz | ✔️ | |
| Formelle Rechnungen und Verträge | ✔️ | |
| Online software training | ✔️ | | | Online software training | ✔️ | |
| Face to face software training | ✔️ | | | Face to face software training | ✔️ | |
| Email Customer Support | ✔️ | | | Email Customer Support | ✔️ | |

View File

@ -52,6 +52,8 @@
| LoRa Radio Module (Data Acquisition and Remote Control| ✔️ | MyEMS certified LoRa hardware device | | LoRa Radio Module (Data Acquisition and Remote Control| ✔️ | MyEMS certified LoRa hardware device |
| Protocol for Uploading to Provincial/Municipal Platform of On-line monitoring system for Key Energy-Consuming Unit | ❌ | ✔️ | Enterprise version license, or customizable development | | Protocol for Uploading to Provincial/Municipal Platform of On-line monitoring system for Key Energy-Consuming Unit | ❌ | ✔️ | Enterprise version license, or customizable development |
| 3rd Party Systems Integration Service | ✔️ | Custom development | | 3rd Party Systems Integration Service | ✔️ | Custom development |
| Fault compensation | ✔️ | |
| Formal invoices and contracts | ✔️ | |
| Online software training | ✔️ | | | Online software training | ✔️ | |
| Face to face software training | ✔️ | | | Face to face software training | ✔️ | |
| Email Customer Support | ✔️ | | | Email Customer Support | ✔️ | |