Медицина/Сервер
Пути проекта
Конфигурационные файлы проекта
/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
Перезапуск Docker
service docker restart
Целевое имя хоста или IP-адрес
hostname -I
Возможные ошибки
Не хватает объема диска
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