lab-development-imb/web/06/labor/deinstallation.md

102 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

## Ergänzung für macOS: Vollständige Deinstallation von Nginx und Apache
### Nginx vollständig entfernen
1. Dienst stoppen:
```bash
brew services stop nginx
```
2. Nginx deinstallieren:
```bash
brew uninstall nginx
```
3. Konfigurationsdateien und Logs löschen:
Je nach Mac-Chip:
- Intel-Mac:
```bash
sudo rm -rf /usr/local/etc/nginx /usr/local/var/log/nginx
```
- Apple Silicon:
```bash
sudo rm -rf /opt/homebrew/etc/nginx /opt/homebrew/var/log/nginx
```
4. Benutzerverzeichnis löschen (falls verwendet):
```bash
rm -rf ~/meine-website
```
---
### Apache vollständig entfernen
1. Dienst stoppen:
```bash
brew services stop httpd
```
2. Apache deinstallieren:
```bash
brew uninstall httpd
```
3. Konfigurationsdateien und Logs löschen:
- Intel-Mac:
```bash
sudo rm -rf /usr/local/etc/httpd /usr/local/var/log/httpd
```
- Apple Silicon:
```bash
sudo rm -rf /opt/homebrew/etc/httpd /opt/homebrew/var/log/httpd
```
4. Benutzerverzeichnis löschen:
```bash
rm -rf ~/meine-website
```
---
## Ergänzung für Windows: Vollständige Deinstallation von Nginx und Apache
### Nginx vollständig entfernen
1. Dienst stoppen (falls aktiv):
Öffnen Sie die Eingabeaufforderung als Administrator:
```cmd
nginx -s stop
```
2. Nginx-Verzeichnis löschen:
```cmd
rmdir /S /Q C:\nginx
```
3. Temporäre Dateien und Logs entfernen (falls vorhanden):
- Prüfen Sie z.B. `C:\nginx\logs` oder andere benutzerdefinierte Pfade.
---
### Apache vollständig entfernen
1. Dienst stoppen (falls aktiv):
```cmd
httpd -k stop
```
2. Apache-Verzeichnis löschen:
```cmd
rmdir /S /Q C:\Apache24
```
3. Benutzerverzeichnis löschen:
```cmd
rmdir /S /Q C:\Apache24\htdocs\meine-website
```