- cd ~/
- mkdir http
- cd http
- nano index.html
Code: Alles auswählen
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Einfache Webseite</title>
</head>
<body>
<!-- Sichtbarer Dokumentinhalt im body -->
Hallo dieser Text wird von RPiZ generiert
</body>
</html>
und den Webserver im Ordner "http" starten
- python -m http.server --cgi 8000
- <ip-von RPiZ>:8000/cgi-bin/hello.py