Compare commits

..

No commits in common. "34b8a98454d3273272ac7b904d4d19b05aa518a6" and "78f4dfc79c74822f4895553dbb50ed970b3d90ba" have entirely different histories.

2 changed files with 1 additions and 5 deletions

View File

@ -274,7 +274,7 @@
- `nl` - как `cat`, но еще выводит номера строк
- `ctrl L` - `clear`
- `reset` - используется для сброса настроек терминала и очистки экрана
- `systemctl list-dependencies`
---
- `cd` - вернуться в домашнюю директорию
@ -307,7 +307,6 @@
---
- `useradd -r -s /usr/sbin/nologin system-user` - создать системного пользователя
- `chmod u+s` - устанавливает бит setuid на файл
- `cat /etc/passwd` - список пользователей
- `cat /etc/group` - список групп

View File

@ -34,7 +34,6 @@ scrape_configs:
- targets:
- 89.22.241.241:9100
```
- `useradd -rs /bin/false prometheus` - создаём системного пользователя для работы с prometheus
- `chown prometheus:prometheus /usr/local/bin/prometheus`
- `chown -R prometheus:prometheus /etc/prometheus`
@ -58,7 +57,6 @@ ExecStart=/usr/local/bin/prometheus \
[Install]
WantedBy=multi-user.target
```
- `sudo systemctl daemon-reload` - обновить systemd
- `sudo systemctl start prometheus`
- `sudo systemctl enable prometheus`
@ -80,7 +78,6 @@ ExecStart=/usr/local/bin/prometheus \
!!! tip "Если на сервере нет Nginx"
`certbot certonly --standalone -d prometheus.mcarov.pro`
- Добавить Серт и Ключ в `web-config.yml`
```
tls_server_config: