Dagu 웹 UI 접속
- 브라우저를 열고 방문하세요:
http://<SERVER_IP>:8080/login(HTTP) - 다음에 저장된 자격 증명을 사용하여 로그인:
/root/.dagu-credentials
포트
- 웹 UI:
8080 - gRPC 코디네이터:
50055(내부)
중요한 경로
시스템 구성:
/usr/local/bin/dagu # Binary
/etc/dagu/ # Env directory
/etc/systemd/system/dagu.service # Systemd service
서비스 모드(시스템 수준):
/var/lib/dagu/
├── dags/ # Workflows
├── logs/ # Execution logs
├── data/ # History
├── suspend/ # Pause flags
└── base.yaml # Shared config
CLI 모드(사용자 수준):
~/.config/dagu/
├── dags/ # Workflows
├── config.yaml # Configuration
└── base.yaml # Shared config
~/.local/share/dagu/
├── logs/ # Execution logs
├── data/ # History
└── suspend/ # Pause flags
서비스 관리
# Check service status
systemctl status dagu
# Start the service
systemctl start dagu
# Stop the service
systemctl stop dagu
# Restart the service
systemctl restart dagu
기본 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
첫 번째 워크플로 만들기(CLI 모드)
DAG 디렉터리를 만듭니다.
mkdir -p ~/.config/dagu/dags
라는 이름의 파일을 생성합니다. hello.yaml (/root/.config/dagu/dags/hello.yaml):
steps:
- name: hello
command: echo "Hello from Dagu"
워크플로를 실행합니다.
dagu start hello
첫 번째 워크플로 만들기(웹 모드)
워크플로 파일을 만듭니다.
vim /var/lib/dagu/dags/hello.yaml
다음 콘텐츠를 추가합니다.
steps:
- name: hello
command: echo "Hello from Dagu"
워크플로는 실행 중인 서비스에 의해 자동으로 감지됩니다.
웹 UI에서 트리거할 수 있습니다.