Acceda a la interfaz de usuario web de Dagu
- Abre tu navegador y visita:
http://<SERVER_IP>:8080/login(HTTP) - Inicie sesión utilizando las credenciales almacenadas en:
/root/.dagu-credentials
Puertos
- Interfaz de usuario web:
8080 - Coordinador del GRPC:
50055(interno)
Rutas importantes
Configuración del sistema:
/usr/local/bin/dagu # Binary
/etc/dagu/ # Env directory
/etc/systemd/system/dagu.service # Systemd service
Modo de servicio (nivel de sistema):
/var/lib/dagu/
├── dags/ # Workflows
├── logs/ # Execution logs
├── data/ # History
├── suspend/ # Pause flags
└── base.yaml # Shared config
Modo CLI (nivel de usuario):
~/.config/dagu/
├── dags/ # Workflows
├── config.yaml # Configuration
└── base.yaml # Shared config
~/.local/share/dagu/
├── logs/ # Execution logs
├── data/ # History
└── suspend/ # Pause flags
Gestión de servicios
# Check service status
systemctl status dagu
# Start the service
systemctl start dagu
# Stop the service
systemctl stop dagu
# Restart the service
systemctl restart dagu
Uso básico de CLI
# 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
Cree su primer flujo de trabajo (modo CLI)
Cree el directorio DAG:
mkdir -p ~/.config/dagu/dags
Crea un archivo llamado hello.yaml (/root/.config/dagu/dags/hello.yaml):
steps:
- name: hello
command: echo "Hello from Dagu"
Ejecute el flujo de trabajo:
dagu start hello
Cree su primer flujo de trabajo (modo web)
Cree el archivo de flujo de trabajo:
vim /var/lib/dagu/dags/hello.yaml
Añade el siguiente contenido:
steps:
- name: hello
command: echo "Hello from Dagu"
El flujo de trabajo será detectado automáticamente por el servicio en ejecución.
Puede activarlo desde la interfaz de usuario web.