From 14ae53c265a14ac6e6baec9cbac8a5af72f6ae52 Mon Sep 17 00:00:00 2001 From: varyhin Date: Sat, 1 Jul 2023 16:04:52 +0300 Subject: [PATCH 01/11] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB(?= =?UTF-8?q?=D0=B0)=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 install.md diff --git a/install.md b/install.md new file mode 100644 index 0000000..e69de29 -- 2.40.1 From e50c897048c73c584b16ea93ed42a0fe4160354a Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 4 Jul 2023 11:21:58 +0300 Subject: [PATCH 02/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 279 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 279 insertions(+) diff --git a/install.md b/install.md index e69de29..591f109 100644 --- a/install.md +++ b/install.md @@ -0,0 +1,279 @@ +# Инструкция по установке +## Установка необходимых пакетов для ОС RockyLinux 9.1 +Для установки системы мониторинга e-node требуется операционная система RockyLinux 9.1 с установленными набором программного обеспечения: + - Архиватор Tar + - Контейнеризатор приложений Docker + - Служба настройки и запуска многоконтейнерных приложений Docker + +### Установка Tar +В случае отсутствия пакета tar на сервере можно воспользоваться rpm пакетом в составе комплекта системы мониторинга e-node находящимся в папке ./yum/tar/ + + yum install -y ~/enode/yum/tar/* + +Проверить версию пакета tar можно с помощью команды + + tar --version + +> [root@server]# tar --version +> tar (GNU tar) 1.34 Copyright (C) 2021 +> Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or +> later . This is free software: you +> are free to change and redistribute it. There is NO WARRANTY, to the +> extent permitted by law. +> Written by John Gilmore and Jay Fenlason. + +### Установка Docker и docker compose +В случае отсутствия пакета docker и утилиты docker compose на сервере можно воспользоваться rpm пакетами в составе комплекта системы мониторинга e-node находящимся в папке ./yum/docker-ce/ + + yum install -y ~/enode/yum/docker-ce/* + +После успешной установки необходимо запустить службу и поставить ее на автозапуск после перезагрузки системы + + systemctl start docker + systemctl enable docker + +Проверить статус работы службы docker можно с помощью команды + + systemctl status docker + +Проверить версию службы docker можно с помощью команды + + docker --version + +> [root@server]# docker --version +> Docker version 24.0.2, build cb74dfc + +Проверить версию утилиты docker compose можно с помощью команды + + docker compose version + +> [root@server]# docker compose version +> Docker Compose version v2.18.1 + +## Инструкция по установке e-node +### Установка основной базы данных (clickhouse) + + docker run -d \ + --name=enode-clickhouse \ + --restart=unless-stopped \ + --ulimit nofile=262144:262144 \ + + --user 1000:1000 \ + --network localhost_network \ + + --publish 127.0.0.1:8123:8123 \ + --publish 127.0.0.1:9000:9000 \ + --publish 127.0.0.1:9009:9009 \ + --volume $(pwd)/ch_data:/var/lib/clickhouse/ \ + --volume $(pwd)/ch_logs:/var/log/clickhouse-server/ \ + --volume $(pwd)/ch_config:/etc/clickhouse-server/config.d/ \ + --volume $(pwd)/ch_users:/etc/clickhouse-server/users.d/ \ + clickhouse/clickhouse-server + + database: + container_name: e-database + image: clickhouse/clickhouse-server + restart: always + ulimits: + nofile: + soft: 262144 + hard: 262144 + # ports: + # - 0.0.0.0:8123:8123 + volumes: + - ${DATA_DIR}/database:/var/lib/clickhouse + - ${DATA_DIR}/logs/clickhouse:/var/log/clickhouse-server + networks: + - e_net + +### Установка in-memory key–value базы данных (redis) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# Welcome to StackEdit! + +Hi! I'm your first Markdown file in **StackEdit**. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the **file explorer** on the left corner of the navigation bar. + + +# Files + +StackEdit stores your files in your browser, which means all your files are automatically saved locally and are accessible **offline!** + +## Create files and folders + +The file explorer is accessible using the button in left corner of the navigation bar. You can create a new file by clicking the **New file** button in the file explorer. You can also create folders by clicking the **New folder** button. + +## Switch to another file + +All your files and folders are presented as a tree in the file explorer. You can switch from one to another by clicking a file in the tree. + +## Rename a file + +You can rename the current file by clicking the file name in the navigation bar or by clicking the **Rename** button in the file explorer. + +## Delete a file + +You can delete the current file by clicking the **Remove** button in the file explorer. The file will be moved into the **Trash** folder and automatically deleted after 7 days of inactivity. + +## Export a file + +You can export the current file by clicking **Export to disk** in the menu. You can choose to export the file as plain Markdown, as HTML using a Handlebars template or as a PDF. + + +# Synchronization + +Synchronization is one of the biggest features of StackEdit. It enables you to synchronize any file in your workspace with other files stored in your **Google Drive**, your **Dropbox** and your **GitHub** accounts. This allows you to keep writing on other devices, collaborate with people you share the file with, integrate easily into your workflow... The synchronization mechanism takes place every minute in the background, downloading, merging, and uploading file modifications. + +There are two types of synchronization and they can complement each other: + +- The workspace synchronization will sync all your files, folders and settings automatically. This will allow you to fetch your workspace on any other device. + > To start syncing your workspace, just sign in with Google in the menu. + +- The file synchronization will keep one file of the workspace synced with one or multiple files in **Google Drive**, **Dropbox** or **GitHub**. + > Before starting to sync files, you must link an account in the **Synchronize** sub-menu. + +## Open a file + +You can open a file from **Google Drive**, **Dropbox** or **GitHub** by opening the **Synchronize** sub-menu and clicking **Open from**. Once opened in the workspace, any modification in the file will be automatically synced. + +## Save a file + +You can save any file of the workspace to **Google Drive**, **Dropbox** or **GitHub** by opening the **Synchronize** sub-menu and clicking **Save on**. Even if a file in the workspace is already synced, you can save it to another location. StackEdit can sync one file with multiple locations and accounts. + +## Synchronize a file + +Once your file is linked to a synchronized location, StackEdit will periodically synchronize it by downloading/uploading any modification. A merge will be performed if necessary and conflicts will be resolved. + +If you just have modified your file and you want to force syncing, click the **Synchronize now** button in the navigation bar. + +> **Note:** The **Synchronize now** button is disabled if you have no file to synchronize. + +## Manage file synchronization + +Since one file can be synced with multiple locations, you can list and manage synchronized locations by clicking **File synchronization** in the **Synchronize** sub-menu. This allows you to list and remove synchronized locations that are linked to your file. + + +# Publication + +Publishing in StackEdit makes it simple for you to publish online your files. Once you're happy with a file, you can publish it to different hosting platforms like **Blogger**, **Dropbox**, **Gist**, **GitHub**, **Google Drive**, **WordPress** and **Zendesk**. With [Handlebars templates](http://handlebarsjs.com/), you have full control over what you export. + +> Before starting to publish, you must link an account in the **Publish** sub-menu. + +## Publish a File + +You can publish your file by opening the **Publish** sub-menu and by clicking **Publish to**. For some locations, you can choose between the following formats: + +- Markdown: publish the Markdown text on a website that can interpret it (**GitHub** for instance), +- HTML: publish the file converted to HTML via a Handlebars template (on a blog for example). + +## Update a publication + +After publishing, StackEdit keeps your file linked to that publication which makes it easy for you to re-publish it. Once you have modified your file and you want to update your publication, click on the **Publish now** button in the navigation bar. + +> **Note:** The **Publish now** button is disabled if your file has not been published yet. + +## Manage file publication + +Since one file can be published to multiple locations, you can list and manage publish locations by clicking **File publication** in the **Publish** sub-menu. This allows you to list and remove publication locations that are linked to your file. + + +# Markdown extensions + +StackEdit extends the standard Markdown syntax by adding extra **Markdown extensions**, providing you with some nice features. + +> **ProTip:** You can disable any **Markdown extension** in the **File properties** dialog. + + +## SmartyPants + +SmartyPants converts ASCII punctuation characters into "smart" typographic punctuation HTML entities. For example: + +| |ASCII |HTML | +|----------------|-------------------------------|-----------------------------| +|Single backticks|`'Isn't this fun?'` |'Isn't this fun?' | +|Quotes |`"Isn't this fun?"` |"Isn't this fun?" | +|Dashes |`-- is en-dash, --- is em-dash`|-- is en-dash, --- is em-dash| + + +## KaTeX + +You can render LaTeX mathematical expressions using [KaTeX](https://khan.github.io/KaTeX/): + +The *Gamma function* satisfying $\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$ is via the Euler integral + +$$ +\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. +$$ + +> You can find more information about **LaTeX** mathematical expressions [here](http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference). + + +## UML diagrams + +You can render UML diagrams using [Mermaid](https://mermaidjs.github.io/). For example, this will produce a sequence diagram: + +```mermaid +sequenceDiagram +Alice ->> Bob: Hello Bob, how are you? +Bob-->>John: How about you John? +Bob--x Alice: I am good thanks! +Bob-x John: I am good thanks! +Note right of John: Bob thinks a long
long time, so long
that the text does
not fit on a row. + +Bob-->Alice: Checking with John... +Alice->John: Yes... John, how are you? +``` + +And this will produce a flow chart: + +```mermaid +graph LR +A[Square Rect] -- Link text --> B((Circle)) +A --> C(Round Rect) +B --> D{Rhombus} +C --> D +``` + + + + + -- 2.40.1 From cefb73cb0f5642472b6bca181d609993a5cbc905 Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 4 Jul 2023 12:12:27 +0300 Subject: [PATCH 03/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 197 ++++++----------------------------------------------- 1 file changed, 19 insertions(+), 178 deletions(-) diff --git a/install.md b/install.md index 591f109..35c69a7 100644 --- a/install.md +++ b/install.md @@ -22,6 +22,10 @@ > extent permitted by law. > Written by John Gilmore and Jay Fenlason. +Папка с необходимыми пакетами создавалась с коммандой + +> yum update --downloadonly --downloaddir ~/yum/tar tar + ### Установка Docker и docker compose В случае отсутствия пакета docker и утилиты docker compose на сервере можно воспользоваться rpm пакетами в составе комплекта системы мониторинга e-node находящимся в папке ./yum/docker-ce/ @@ -50,6 +54,21 @@ > [root@server]# docker compose version > Docker Compose version v2.18.1 + + + + + + + + + + + + + + +# Не актуальное ## Инструкция по установке e-node ### Установка основной базы данных (clickhouse) @@ -99,181 +118,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Welcome to StackEdit! - -Hi! I'm your first Markdown file in **StackEdit**. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the **file explorer** on the left corner of the navigation bar. - - -# Files - -StackEdit stores your files in your browser, which means all your files are automatically saved locally and are accessible **offline!** - -## Create files and folders - -The file explorer is accessible using the button in left corner of the navigation bar. You can create a new file by clicking the **New file** button in the file explorer. You can also create folders by clicking the **New folder** button. - -## Switch to another file - -All your files and folders are presented as a tree in the file explorer. You can switch from one to another by clicking a file in the tree. - -## Rename a file - -You can rename the current file by clicking the file name in the navigation bar or by clicking the **Rename** button in the file explorer. - -## Delete a file - -You can delete the current file by clicking the **Remove** button in the file explorer. The file will be moved into the **Trash** folder and automatically deleted after 7 days of inactivity. - -## Export a file - -You can export the current file by clicking **Export to disk** in the menu. You can choose to export the file as plain Markdown, as HTML using a Handlebars template or as a PDF. - - -# Synchronization - -Synchronization is one of the biggest features of StackEdit. It enables you to synchronize any file in your workspace with other files stored in your **Google Drive**, your **Dropbox** and your **GitHub** accounts. This allows you to keep writing on other devices, collaborate with people you share the file with, integrate easily into your workflow... The synchronization mechanism takes place every minute in the background, downloading, merging, and uploading file modifications. - -There are two types of synchronization and they can complement each other: - -- The workspace synchronization will sync all your files, folders and settings automatically. This will allow you to fetch your workspace on any other device. - > To start syncing your workspace, just sign in with Google in the menu. - -- The file synchronization will keep one file of the workspace synced with one or multiple files in **Google Drive**, **Dropbox** or **GitHub**. - > Before starting to sync files, you must link an account in the **Synchronize** sub-menu. - -## Open a file - -You can open a file from **Google Drive**, **Dropbox** or **GitHub** by opening the **Synchronize** sub-menu and clicking **Open from**. Once opened in the workspace, any modification in the file will be automatically synced. - -## Save a file - -You can save any file of the workspace to **Google Drive**, **Dropbox** or **GitHub** by opening the **Synchronize** sub-menu and clicking **Save on**. Even if a file in the workspace is already synced, you can save it to another location. StackEdit can sync one file with multiple locations and accounts. - -## Synchronize a file - -Once your file is linked to a synchronized location, StackEdit will periodically synchronize it by downloading/uploading any modification. A merge will be performed if necessary and conflicts will be resolved. - -If you just have modified your file and you want to force syncing, click the **Synchronize now** button in the navigation bar. - -> **Note:** The **Synchronize now** button is disabled if you have no file to synchronize. - -## Manage file synchronization - -Since one file can be synced with multiple locations, you can list and manage synchronized locations by clicking **File synchronization** in the **Synchronize** sub-menu. This allows you to list and remove synchronized locations that are linked to your file. - - -# Publication - -Publishing in StackEdit makes it simple for you to publish online your files. Once you're happy with a file, you can publish it to different hosting platforms like **Blogger**, **Dropbox**, **Gist**, **GitHub**, **Google Drive**, **WordPress** and **Zendesk**. With [Handlebars templates](http://handlebarsjs.com/), you have full control over what you export. - -> Before starting to publish, you must link an account in the **Publish** sub-menu. - -## Publish a File - -You can publish your file by opening the **Publish** sub-menu and by clicking **Publish to**. For some locations, you can choose between the following formats: - -- Markdown: publish the Markdown text on a website that can interpret it (**GitHub** for instance), -- HTML: publish the file converted to HTML via a Handlebars template (on a blog for example). - -## Update a publication - -After publishing, StackEdit keeps your file linked to that publication which makes it easy for you to re-publish it. Once you have modified your file and you want to update your publication, click on the **Publish now** button in the navigation bar. - -> **Note:** The **Publish now** button is disabled if your file has not been published yet. - -## Manage file publication - -Since one file can be published to multiple locations, you can list and manage publish locations by clicking **File publication** in the **Publish** sub-menu. This allows you to list and remove publication locations that are linked to your file. - - -# Markdown extensions - -StackEdit extends the standard Markdown syntax by adding extra **Markdown extensions**, providing you with some nice features. - -> **ProTip:** You can disable any **Markdown extension** in the **File properties** dialog. - - -## SmartyPants - -SmartyPants converts ASCII punctuation characters into "smart" typographic punctuation HTML entities. For example: - -| |ASCII |HTML | -|----------------|-------------------------------|-----------------------------| -|Single backticks|`'Isn't this fun?'` |'Isn't this fun?' | -|Quotes |`"Isn't this fun?"` |"Isn't this fun?" | -|Dashes |`-- is en-dash, --- is em-dash`|-- is en-dash, --- is em-dash| - - -## KaTeX - -You can render LaTeX mathematical expressions using [KaTeX](https://khan.github.io/KaTeX/): - -The *Gamma function* satisfying $\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$ is via the Euler integral - -$$ -\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. -$$ - -> You can find more information about **LaTeX** mathematical expressions [here](http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference). - - -## UML diagrams - -You can render UML diagrams using [Mermaid](https://mermaidjs.github.io/). For example, this will produce a sequence diagram: - -```mermaid -sequenceDiagram -Alice ->> Bob: Hello Bob, how are you? -Bob-->>John: How about you John? -Bob--x Alice: I am good thanks! -Bob-x John: I am good thanks! -Note right of John: Bob thinks a long
long time, so long
that the text does
not fit on a row. - -Bob-->Alice: Checking with John... -Alice->John: Yes... John, how are you? -``` - -And this will produce a flow chart: - -```mermaid -graph LR -A[Square Rect] -- Link text --> B((Circle)) -A --> C(Round Rect) -B --> D{Rhombus} -C --> D -``` - - - - - -- 2.40.1 From eaf5d4611971785ec22365071b1c860306b37105 Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 4 Jul 2023 12:13:49 +0300 Subject: [PATCH 04/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.md b/install.md index 35c69a7..cc6d166 100644 --- a/install.md +++ b/install.md @@ -24,7 +24,7 @@ Папка с необходимыми пакетами создавалась с коммандой -> yum update --downloadonly --downloaddir ~/yum/tar tar + yum update --downloadonly --downloaddir ~/yum/tar tar ### Установка Docker и docker compose В случае отсутствия пакета docker и утилиты docker compose на сервере можно воспользоваться rpm пакетами в составе комплекта системы мониторинга e-node находящимся в папке ./yum/docker-ce/ -- 2.40.1 From abf80cf78a17a2f92708fffbade049089bed5411 Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 4 Jul 2023 12:25:40 +0300 Subject: [PATCH 05/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/install.md b/install.md index cc6d166..f17c9e4 100644 --- a/install.md +++ b/install.md @@ -54,20 +54,23 @@ > [root@server]# docker compose version > Docker Compose version v2.18.1 +Папка с необходимыми пакетами создавалась с коммандой + + yum install --downloadonly --downloaddir ~/yum/docker-ce docker-ce.x86_64 + +В качестве источника использовался репозиторий https://download.docker.com/linux/centos/docker-ce.repo - - - - - - - - + + + + + + # Не актуальное ## Инструкция по установке e-node ### Установка основной базы данных (clickhouse) -- 2.40.1 From 2a6432d543ed9e90b3ab9d0f1572f0ca988e168e Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 4 Jul 2023 12:32:54 +0300 Subject: [PATCH 06/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.md b/install.md index f17c9e4..639bdb5 100644 --- a/install.md +++ b/install.md @@ -26,6 +26,8 @@ yum update --downloadonly --downloaddir ~/yum/tar tar +В качестве источника использовался официальный репозиторий rocky linux указанный в /etc/yum.repos.d/rocky.repo (https://dl.rockylinux.org/vault/rocky/9.1/) + ### Установка Docker и docker compose В случае отсутствия пакета docker и утилиты docker compose на сервере можно воспользоваться rpm пакетами в составе комплекта системы мониторинга e-node находящимся в папке ./yum/docker-ce/ -- 2.40.1 From 3b8ef961a4289470ec4fd969efbc1587fa82529d Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 4 Jul 2023 12:43:25 +0300 Subject: [PATCH 07/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) diff --git a/install.md b/install.md index 639bdb5..3b4402e 100644 --- a/install.md +++ b/install.md @@ -67,59 +67,6 @@ - - - - - - -# Не актуальное -## Инструкция по установке e-node -### Установка основной базы данных (clickhouse) - - docker run -d \ - --name=enode-clickhouse \ - --restart=unless-stopped \ - --ulimit nofile=262144:262144 \ - - --user 1000:1000 \ - --network localhost_network \ - - --publish 127.0.0.1:8123:8123 \ - --publish 127.0.0.1:9000:9000 \ - --publish 127.0.0.1:9009:9009 \ - --volume $(pwd)/ch_data:/var/lib/clickhouse/ \ - --volume $(pwd)/ch_logs:/var/log/clickhouse-server/ \ - --volume $(pwd)/ch_config:/etc/clickhouse-server/config.d/ \ - --volume $(pwd)/ch_users:/etc/clickhouse-server/users.d/ \ - clickhouse/clickhouse-server - - database: - container_name: e-database - image: clickhouse/clickhouse-server - restart: always - ulimits: - nofile: - soft: 262144 - hard: 262144 - # ports: - # - 0.0.0.0:8123:8123 - volumes: - - ${DATA_DIR}/database:/var/lib/clickhouse - - ${DATA_DIR}/logs/clickhouse:/var/log/clickhouse-server - networks: - - e_net - -### Установка in-memory key–value базы данных (redis) - - - - - - - - - -- 2.40.1 From 62feffece93164f514db6590ef9ea34c10246771 Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 4 Jul 2023 13:20:12 +0300 Subject: [PATCH 08/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 180 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 171 insertions(+), 9 deletions(-) diff --git a/install.md b/install.md index 3b4402e..f396857 100644 --- a/install.md +++ b/install.md @@ -1,3 +1,4 @@ + # Инструкция по установке ## Установка необходимых пакетов для ОС RockyLinux 9.1 Для установки системы мониторинга e-node требуется операционная система RockyLinux 9.1 с установленными набором программного обеспечения: @@ -22,12 +23,6 @@ > extent permitted by law. > Written by John Gilmore and Jay Fenlason. -Папка с необходимыми пакетами создавалась с коммандой - - yum update --downloadonly --downloaddir ~/yum/tar tar - -В качестве источника использовался официальный репозиторий rocky linux указанный в /etc/yum.repos.d/rocky.repo (https://dl.rockylinux.org/vault/rocky/9.1/) - ### Установка Docker и docker compose В случае отсутствия пакета docker и утилиты docker compose на сервере можно воспользоваться rpm пакетами в составе комплекта системы мониторинга e-node находящимся в папке ./yum/docker-ce/ @@ -56,17 +51,184 @@ > [root@server]# docker compose version > Docker Compose version v2.18.1 -Папка с необходимыми пакетами создавалась с коммандой +## Установка серверной части enode - yum install --downloadonly --downloaddir ~/yum/docker-ce docker-ce.x86_64 +```bash +./install.sh +enode app start +``` -В качестве источника использовался репозиторий https://download.docker.com/linux/centos/docker-ce.repo +``` + +# НЕ АКТУАЛЬНО +## Инструкция по установке e-node +```bash +docker network create enode_network +``` +```bash +groupadd --gid 1001 docker +groupmod -g 1001 docker +useradd -m --uid 1001 --gid 1001 docker -s /bin/bash +``` +```bash +docker images --all +docker image prune --all +``` +### Установка основной базы данных (clickhouse) +```bash +cp ../../2023.07.01_enode/build/images/clickhouse_clickhouse-server.image . +docker load --input ./clickhouse_clickhouse-server.image +docker load --input ./clickhouse-server-v23.3.7.5-lts.tar + +mkdir -p ./{data,logs,config} +chown -Rf 1001:1001 config data logs +docker run -d \ +--name=enode_clickhouse \ +--restart=unless-stopped \ +--ulimit nofile=262144:262144 \ +--network enode_network \ +--publish 127.0.0.1:8123:8123 \ +--publish 127.0.0.1:9000:9000 \ +--publish 127.0.0.1:9009:9009 \ +clickhouse/clickhouse-server:23.3.7.5 + +docker exec -it enode_clickhouse /bin/bash + +docker logs -f --tail 10000 enode_clickhouse + +curl 127.0.0.1:8123 + +docker stop enode_clickhouse && docker rm enode_clickhouse +``` + +### Установка in-memory key–value базы данных (redis) +```bash + +docker pull +cp ../../2023.07.01_enode/build/images/redis.image . +docker load --input ./redis.image + +docker run -d \ +--name=enode_redis \ +--restart=unless-stopped \ +--network enode_network \ +--publish 127.0.0.1:6379:6379 \ +--publish 127.0.0.1:8001:8001 \ +--volume ./data:/data \ +redis +``` +### Установка координации распределённых систем (zookeeper) +```bash +docker pull zookeeper:3.8 +docker save --output ./zookeeper:3.8.tar zookeeper:3.8 +docker load --input ./zookeeper:3.8.tar + +cp ../../2023.07.01_enode/build/images/bitnami_zookeeper_3_8_0.image . +docker load --input ./bitnami_zookeeper_3_8_0.image + +docker run -d \ +--name=enode_zookeeper \ +--restart=unless-stopped \ +--network enode_network \ +--user 1001:1001 \ +--publish 127.0.0.1:2181:2181 \ +--env ZOO_SERVER_ID=1 \ +--env ALLOW_ANONYMOUS_LOGIN=yes \ +--env USER_ID=1001 \ +--env GROUP_ID=1001 \ +--volume ./data:/data \ +--volume ./datalog:/datalog \ +--volume ./conf:/conf \ +zookeeper:3.8 + bitnami/zookeeper:3.8.0 +docker logs -f --tail 100 enode_zookeeper +docker stop enode_zookeeper && docker rm enode_zookeeper +``` +### Установка enode_core + +```bash +cp ../../2023.07.01_enode/build/images/registry_entcor_enode_enode_core_latest.image . +docker load --input ./registry_entcor_enode_enode_core_latest.image +docker images + registry.entcor/enode/enode_core + +docker run -d \ +--name=enode_core \ +--restart=unless-stopped \ +--network enode_network \ +--publish 127.0.0.1:4009:4009 \ +--publish 127.0.0.1:9229:9229 \ +--env CH_URL=http://enode_clickhouse:8123 \ +--env REDIS=redis://enode_redis:6379 \ +--env ZOOKEEPER=enode_zookeeper:2181 \ +--volume ./data:/host_scripts \ +registry.entcor/enode/enode_core + +docker logs -f --tail 10000 enode_core +docker stop enode_core && docker rm enode_core + +``` + +### Установка enode_ui + +```bash +cp ../../2023.07.01_enode/build/images/registry_entcor_enode_enode_ui_latest.image . +docker load --input ./registry_entcor_enode_enode_ui_latest.image +docker images + registry.entcor/enode/enode_ui + +docker run -d \ +--name=enode_ui \ +--restart=unless-stopped \ +--network enode_network \ +registry.entcor/enode/enode_ui + +docker logs -f --tail 10000 enode_ui +docker stop enode_ui && docker rm enode_ui +``` + +### Установка enode_lb + +```bash +cp ../../2023.07.01_enode/build/images/ghcr_io_entcor_nginx_load_balancer_1_0_0.image . +docker load --input ./ghcr_io_entcor_nginx_load_balancer_1_0_0.image +docker images + ghcr.io/entcor/nginx_load_balancer + +docker run -d \ +--name=enode_lb \ +--restart=unless-stopped \ +--network enode_network \ +--publish 127.0.0.1:80:80 \ +--env FRONT_1_PORT_80_TCP_ADDR=enode_ui \ +--env FRONT_REMOTE_PORT=80 \ +--env FRONT_REMOTE_PATH=/ \ +--env FRONT_PATH=/ \ +--env FRONT_EXPOSE_PROTOCOL=http \ +--env FRONT_HOSTNAME=localhost \ +--env FRONT_LOG_LEVEL=warn \ +--env API_2_PORT_4009_TCP_ADDR=enode_core \ +--env API_REMOTE_PORT=4009 \ +--env API_PATH=/api/ \ +--env API_EXPOSE_PROTOCOL=http \ +--env API_HOSTNAME=localhost \ +--env API_REWRITE='^/api/(.*) /$$1 break' \ +--env APIWS_3_PORT_4009_TCP_ADDR=enode_core \ +--env APIWS_REMOTE_PORT=4009 \ +--env APIWS_PATH=/socket.io/ \ +--env APIWS_EXPOSE_PROTOCOL=http \ +--env APIWS_HOSTNAME=localhost \ +ghcr.io/entcor/nginx_load_balancer:1.0.0 + +docker logs -f --tail 10000 enode_lb +docker stop enode_lb && docker rm enode_lb +``` -- 2.40.1 From b5e2a3acf191f4d425185f1f248fda458be3b98a Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 4 Jul 2023 13:20:59 +0300 Subject: [PATCH 09/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.md b/install.md index f396857..9a1fa74 100644 --- a/install.md +++ b/install.md @@ -58,9 +58,8 @@ enode app start ``` -``` - # НЕ АКТУАЛЬНО + ## Инструкция по установке e-node ```bash docker network create enode_network -- 2.40.1 From 3eaa65e000b0d5924abd82063eb53bff622f1baf Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 4 Jul 2023 13:29:15 +0300 Subject: [PATCH 10/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 174 ----------------------------------------------------- 1 file changed, 174 deletions(-) diff --git a/install.md b/install.md index 9a1fa74..edb76c2 100644 --- a/install.md +++ b/install.md @@ -57,177 +57,3 @@ ./install.sh enode app start ``` - -# НЕ АКТУАЛЬНО - -## Инструкция по установке e-node -```bash -docker network create enode_network -``` -```bash -groupadd --gid 1001 docker -groupmod -g 1001 docker -useradd -m --uid 1001 --gid 1001 docker -s /bin/bash -``` -```bash -docker images --all -docker image prune --all -``` - - -### Установка основной базы данных (clickhouse) -```bash -cp ../../2023.07.01_enode/build/images/clickhouse_clickhouse-server.image . -docker load --input ./clickhouse_clickhouse-server.image -docker load --input ./clickhouse-server-v23.3.7.5-lts.tar - -mkdir -p ./{data,logs,config} -chown -Rf 1001:1001 config data logs - - -docker run -d \ ---name=enode_clickhouse \ ---restart=unless-stopped \ ---ulimit nofile=262144:262144 \ ---network enode_network \ ---publish 127.0.0.1:8123:8123 \ ---publish 127.0.0.1:9000:9000 \ ---publish 127.0.0.1:9009:9009 \ -clickhouse/clickhouse-server:23.3.7.5 - -docker exec -it enode_clickhouse /bin/bash - -docker logs -f --tail 10000 enode_clickhouse - -curl 127.0.0.1:8123 - -docker stop enode_clickhouse && docker rm enode_clickhouse -``` - -### Установка in-memory key–value базы данных (redis) -```bash - -docker pull -cp ../../2023.07.01_enode/build/images/redis.image . -docker load --input ./redis.image - -docker run -d \ ---name=enode_redis \ ---restart=unless-stopped \ ---network enode_network \ ---publish 127.0.0.1:6379:6379 \ ---publish 127.0.0.1:8001:8001 \ ---volume ./data:/data \ -redis -``` -### Установка координации распределённых систем (zookeeper) -```bash -docker pull zookeeper:3.8 -docker save --output ./zookeeper:3.8.tar zookeeper:3.8 -docker load --input ./zookeeper:3.8.tar - -cp ../../2023.07.01_enode/build/images/bitnami_zookeeper_3_8_0.image . -docker load --input ./bitnami_zookeeper_3_8_0.image - -docker run -d \ ---name=enode_zookeeper \ ---restart=unless-stopped \ ---network enode_network \ ---user 1001:1001 \ ---publish 127.0.0.1:2181:2181 \ ---env ZOO_SERVER_ID=1 \ ---env ALLOW_ANONYMOUS_LOGIN=yes \ ---env USER_ID=1001 \ ---env GROUP_ID=1001 \ ---volume ./data:/data \ ---volume ./datalog:/datalog \ ---volume ./conf:/conf \ -zookeeper:3.8 - bitnami/zookeeper:3.8.0 - - -docker logs -f --tail 100 enode_zookeeper - -docker stop enode_zookeeper && docker rm enode_zookeeper -``` - -### Установка enode_core - -```bash -cp ../../2023.07.01_enode/build/images/registry_entcor_enode_enode_core_latest.image . -docker load --input ./registry_entcor_enode_enode_core_latest.image -docker images - registry.entcor/enode/enode_core - -docker run -d \ ---name=enode_core \ ---restart=unless-stopped \ ---network enode_network \ ---publish 127.0.0.1:4009:4009 \ ---publish 127.0.0.1:9229:9229 \ ---env CH_URL=http://enode_clickhouse:8123 \ ---env REDIS=redis://enode_redis:6379 \ ---env ZOOKEEPER=enode_zookeeper:2181 \ ---volume ./data:/host_scripts \ -registry.entcor/enode/enode_core - -docker logs -f --tail 10000 enode_core -docker stop enode_core && docker rm enode_core - -``` - -### Установка enode_ui - -```bash -cp ../../2023.07.01_enode/build/images/registry_entcor_enode_enode_ui_latest.image . -docker load --input ./registry_entcor_enode_enode_ui_latest.image -docker images - registry.entcor/enode/enode_ui - -docker run -d \ ---name=enode_ui \ ---restart=unless-stopped \ ---network enode_network \ -registry.entcor/enode/enode_ui - -docker logs -f --tail 10000 enode_ui -docker stop enode_ui && docker rm enode_ui -``` - -### Установка enode_lb - -```bash -cp ../../2023.07.01_enode/build/images/ghcr_io_entcor_nginx_load_balancer_1_0_0.image . -docker load --input ./ghcr_io_entcor_nginx_load_balancer_1_0_0.image -docker images - ghcr.io/entcor/nginx_load_balancer - -docker run -d \ ---name=enode_lb \ ---restart=unless-stopped \ ---network enode_network \ ---publish 127.0.0.1:80:80 \ ---env FRONT_1_PORT_80_TCP_ADDR=enode_ui \ ---env FRONT_REMOTE_PORT=80 \ ---env FRONT_REMOTE_PATH=/ \ ---env FRONT_PATH=/ \ ---env FRONT_EXPOSE_PROTOCOL=http \ ---env FRONT_HOSTNAME=localhost \ ---env FRONT_LOG_LEVEL=warn \ ---env API_2_PORT_4009_TCP_ADDR=enode_core \ ---env API_REMOTE_PORT=4009 \ ---env API_PATH=/api/ \ ---env API_EXPOSE_PROTOCOL=http \ ---env API_HOSTNAME=localhost \ ---env API_REWRITE='^/api/(.*) /$$1 break' \ ---env APIWS_3_PORT_4009_TCP_ADDR=enode_core \ ---env APIWS_REMOTE_PORT=4009 \ ---env APIWS_PATH=/socket.io/ \ ---env APIWS_EXPOSE_PROTOCOL=http \ ---env APIWS_HOSTNAME=localhost \ -ghcr.io/entcor/nginx_load_balancer:1.0.0 - -docker logs -f --tail 10000 enode_lb -docker stop enode_lb && docker rm enode_lb -``` - -- 2.40.1 From 270db85d3d3a39e68d7b2cc190324f866e7e593b Mon Sep 17 00:00:00 2001 From: varyhin Date: Tue, 18 Jul 2023 12:02:48 +0300 Subject: [PATCH 11/11] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D0=BD=D0=B0=20'install.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.md b/install.md index edb76c2..f57821a 100644 --- a/install.md +++ b/install.md @@ -6,6 +6,15 @@ - Контейнеризатор приложений Docker - Служба настройки и запуска многоконтейнерных приложений Docker +``` +yum install -y tar +yum config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo +yum install -y docker-ce.x86_64 +systemctl start docker +systemctl enable docker + +``` + ### Установка Tar В случае отсутствия пакета tar на сервере можно воспользоваться rpm пакетом в составе комплекта системы мониторинга e-node находящимся в папке ./yum/tar/ @@ -53,6 +62,7 @@ ## Установка серверной части enode + ```bash ./install.sh enode app start -- 2.40.1