Обновить Настройка Mqtt local - bridge - global Mqtt
parent
2da99a237e
commit
74701c0bf7
|
|
@ -293,12 +293,11 @@ sudo ss -lntp | grep 1883
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 6) Как всё удалить (полная очистка перед переустановкой)
|
## 6) Как всё удалить (полная очистка )
|
||||||
|
|
||||||
Одна команда (останавливает сервисы, удаляет конфиги/инструменты/env/db/логи):
|
Одна команда (останавливает сервисы, удаляет конфиги/инструменты/env/db/логи):
|
||||||
|
|
||||||
```bash
|
```sudo bash -lc 'set -euo pipefail; systemctl stop mosquitto 2>/dev/null || true; systemctl disable mosquitto 2>/dev/null || true; apt-get purge -y mosquitto mosquitto-clients; rm -rf /etc/mosquitto /var/lib/mosquitto /var/log/mosquitto; systemctl daemon-reload; echo "OK: mosquitto fully removed."'
|
||||||
sudo bash -lc 'set -euo pipefail; systemctl stop mosquitto 2>/dev/null || true; systemctl stop iomatex-mqtt-bridge.path iomatex-mqtt-health.timer 2>/dev/null || true; rm -f /etc/mosquitto/conf.d/00-iomatex-local.conf /etc/mosquitto/conf.d/01-iomatex-main-listener.conf /etc/mosquitto/conf.d/50-iomatex-bridge.conf /etc/mosquitto/conf.d/99-iomatex-debug.conf 2>/dev/null || true; rm -f /etc/iomatex/mqtt_bridge.env /usr/local/sbin/iomatex-mqtt-apply /usr/local/sbin/iomatex-mqtt-remote-set /usr/local/sbin/iomatex-mqtt-health.sh 2>/dev/null || true; rm -f /var/lib/mosquitto/mosquitto.db /var/lib/mosquitto/*.db 2>/dev/null || true; rm -f /run/iomatex-mqtt-apply.sha 2>/dev/null || true; rm -f /var/log/mosquitto/mosquitto.log /var/log/iomatex-stage1-mqtt.log 2>/dev/null || true; systemctl daemon-reload; echo "OK: cleaned mosquitto configs, iomatex tools/env, mosquitto DB, and logs. Ready for reinstall."'
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue