Медицина/Сервер: различия между версиями
Admin (обсуждение | вклад) |
Admin (обсуждение | вклад) Нет описания правки |
||
| (не показаны 3 промежуточные версии этого же участника) | |||
| Строка 26: | Строка 26: | ||
/dev/md0 220G 38G 171G 19% / | /dev/md0 220G 38G 171G 19% / | ||
tmpfs 1.9G 0 1.9G 0% /dev/shm | tmpfs 1.9G 0 1.9G 0% /dev/shm | ||
... | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
du -chd1 /root | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
41G /root/docker-registry | |||
20K /root/.ssh | |||
184K /root/medlogic-controller | |||
</syntaxhighlight> | |||
==== Посмотреть IP адрес ==== | |||
<syntaxhighlight lang="bash"> | |||
ip -br a | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
lo UNKNOWN 127.0.0.1/8 ::1/128 | |||
eth0 UP 10.77.17.12/24 metric 100 fe80::215:5dff:fe00:a712/64 | |||
br-609c824ad617 UP 172.18.0.1/16 fe80::42:fff:fe42:4ceb/64 | |||
... | ... | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Строка 64: | Строка 85: | ||
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 lang="bash"> | |||
cat > readme.txt << EOF | |||
This is an input stream literal | |||
EOF | |||
</syntaxhighlight> | |||
== Временный DNS == | |||
<syntaxhighlight lang="bash"> | |||
echo 'nameserver 8.8.8.8' >> /etc/resolv.conf | |||
echo 'nameserver 8.8.4.4' >> /etc/resolv.conf | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Текущая версия от 07:24, 29 сентября 2025
Пути проекта
Конфигурационные файлы проекта
/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
...
du -chd1 /root
41G /root/docker-registry
20K /root/.ssh
184K /root/medlogic-controller
Посмотреть IP адрес
ip -br a
lo UNKNOWN 127.0.0.1/8 ::1/128
eth0 UP 10.77.17.12/24 metric 100 fe80::215:5dff:fe00:a712/64
br-609c824ad617 UP 172.18.0.1/16 fe80::42:fff:fe42:4ceb/64
...
Статус 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
Разное
cat > readme.txt << EOF
This is an input stream literal
EOF
Временный DNS
echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
echo 'nameserver 8.8.4.4' >> /etc/resolv.conf