Медицина/Сервер: различия между версиями
Admin (обсуждение | вклад) Нет описания правки |
Admin (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
<syntaxhighlight> | == Пути проекта == | ||
==== Конфигурационные файлы проекта ==== | |||
<syntaxhighlight lang="bash"> | |||
/root/medicine-config | |||
</syntaxhighlight> | |||
==== Кофигурационные файлы МИС Медицина ==== | |||
<syntaxhighlight lang="bash"> | |||
/root/medicine-config/medicine | |||
</syntaxhighlight> | |||
==== Кофигурационные файлы Postgres и Redis ==== | |||
<syntaxhighlight lang="bash"> | |||
/root/medicine-config/medicine-stack | |||
</syntaxhighlight> | |||
== Команды linux == | |||
==== Посмотреть использование диска ==== | |||
<syntaxhighlight lang="bash"> | |||
df -h | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
Filesystem Size Used Avail Use% Mounted on | |||
udev 1.9G 0 1.9G 0% /dev | |||
tmpfs 383M 40M 343M 11% /run | |||
/dev/md0 220G 38G 171G 19% / | |||
tmpfs 1.9G 0 1.9G 0% /dev/shm | |||
... | |||
</syntaxhighlight> | |||
==== Статус Docker контейнеров ==== | |||
Все контейнеры должны быть в статусе '''Up''' | |||
<syntaxhighlight lang="bash"> | |||
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.RunningFor}}" | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
NAMES STATUS CREATED | |||
medicine-nginx Up 13 minutes 24 minutes ago | |||
medicine-tasks Up 13 minutes 24 minutes ago | |||
medicine-app Up 13 minutes 24 minutes ago | |||
tfoms-patient Up 3 months 3 months ago | |||
medicine-timetable Up 3 months 2 years ago | |||
thirdparty-pgadmin Up 3 months 2 years ago | |||
thirdparty-flower Up 3 months 2 years ago | |||
thirdparty-filebrowser Up 3 months 2 years ago | |||
medicine-stack-postgres Up 3 months 2 years ago | |||
medicine-stack-redis Up 3 months 2 years ago | |||
</syntaxhighlight> | |||
== Возможные ошибки == | |||
==== Не хватает объема диска ==== | |||
<syntaxhighlight lang="bash"> | |||
2023-01-27 08:12:59.776 UTC [1] LOG: database system is shut down | 2023-01-27 08:12:59.776 UTC [1] LOG: database system is shut down | ||
medicine-stack-postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization | medicine-stack-postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization | ||
medicine-stack-postgres | 2023-01-27 08:13:00.359 UTC [1] FATAL: could not write lock file "postmaster.pid": No space left on device | medicine-stack-postgres | 2023-01-27 08:13:00.359 UTC [1] FATAL: could not write lock file "postmaster.pid": No space left on device | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Версия от 11:26, 29 января 2023
Пути проекта
Конфигурационные файлы проекта
/root/medicine-config
Кофигурационные файлы МИС Медицина
/root/medicine-config/medicine
Кофигурационные файлы Postgres и Redis
/root/medicine-config/medicine-stack
Команды linux
Посмотреть использование диска
df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 383M 40M 343M 11% /run
/dev/md0 220G 38G 171G 19% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
...
Статус Docker контейнеров
Все контейнеры должны быть в статусе Up
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.RunningFor}}"
NAMES STATUS CREATED
medicine-nginx Up 13 minutes 24 minutes ago
medicine-tasks Up 13 minutes 24 minutes ago
medicine-app Up 13 minutes 24 minutes ago
tfoms-patient Up 3 months 3 months ago
medicine-timetable Up 3 months 2 years ago
thirdparty-pgadmin Up 3 months 2 years ago
thirdparty-flower Up 3 months 2 years ago
thirdparty-filebrowser Up 3 months 2 years ago
medicine-stack-postgres Up 3 months 2 years ago
medicine-stack-redis Up 3 months 2 years ago
Возможные ошибки
Не хватает объема диска
2023-01-27 08:12:59.776 UTC [1] LOG: database system is shut down
medicine-stack-postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
medicine-stack-postgres | 2023-01-27 08:13:00.359 UTC [1] FATAL: could not write lock file "postmaster.pid": No space left on device