Greifen Sie auf die Dagu-Web-Benutzeroberfläche zu
- Öffnen Sie Ihren Browser und besuchen Sie:
http://<SERVER_IP>:8080/login(HTTP) - Melden Sie sich mit den Anmeldeinformationen an, die gespeichert sind in:
/root/.dagu-credentials
Häfen
- Web-Benutzeroberfläche:
8080 - gRPC-Koordinator:
50055(intern)
Wichtige Pfade
Systemkonfiguration:
/usr/local/bin/dagu # Binary
/etc/dagu/ # Env directory
/etc/systemd/system/dagu.service # Systemd service
Servicemodus (Systemebene):
/var/lib/dagu/
├── dags/ # Workflows
├── logs/ # Execution logs
├── data/ # History
├── suspend/ # Pause flags
└── base.yaml # Shared config
CLI-Modus (Benutzerebene):
~/.config/dagu/
├── dags/ # Workflows
├── config.yaml # Configuration
└── base.yaml # Shared config
~/.local/share/dagu/
├── logs/ # Execution logs
├── data/ # History
└── suspend/ # Pause flags
Service-Management
# Check service status
systemctl status dagu
# Start the service
systemctl start dagu
# Stop the service
systemctl stop dagu
# Restart the service
systemctl restart dagu
Grundlegende CLI-Nutzung
# Show help / available commands
dagu --help
# Show installed version
dagu version
# Install Dagu skills (auto-detect supported tools)
dagu ai install
# Install non-interactively (auto-confirm all prompts)
dagu ai install --yes
# Install to a specific skills directory
dagu ai install --skills-dir ~/.agents/skills
# Start a DAG workflow from a file or named workflow
dagu start my-workflow.yaml
# Pass parameters to a DAG (after --)
dagu start my-workflow.yaml -- param1=value1 param2=value2
# Execute a command directly as a DAG step
dagu exec -- python script.py
# Example with arguments
dagu exec -- python script.py --input data.csv
Erstelle Ihren ersten Workflow (CLI-Modus)
Erstelle das DAGs-Verzeichnis:
mkdir -p ~/.config/dagu/dags
Erstelle eine Datei mit dem Namen hello.yaml (/root/.config/dagu/dags/hello.yaml):
steps:
- name: hello
command: echo "Hello from Dagu"
Führen Sie den Workflow aus:
dagu start hello
Erstelle Ihren ersten Workflow (Webmodus)
Erstelle die Workflow-Datei:
vim /var/lib/dagu/dags/hello.yaml
Fügen Sie den folgenden Inhalt hinzu:
steps:
- name: hello
command: echo "Hello from Dagu"
Der Workflow wird vom laufenden Dienst automatisch erkannt.
du kannst es über die Web-Benutzeroberfläche auslösen.