Linux command
nomad 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start development agent
nomad agent -dev
Run a job
nomad job run [job.nomad]
Show job status
nomad job status [job_name]
Stop a job
nomad job stop [job_name]
List running jobs
nomad job status
Show node status
nomad node status
View allocation logs
nomad alloc logs [alloc_id]
说明
nomad is a workload orchestrator by HashiCorp. It deploys and manages applications across a cluster, supporting containers, VMs, and standalone executables. The tool provides scheduling, service discovery, and rolling updates. It integrates with Consul and Vault for service mesh and secrets management.
参数
- agent
- Run Nomad agent.
- job run _file_
- Submit a job.
- job plan _file_
- Dry-run a job and show scheduling impact.
- job status _job_
- Job status.
- job stop _job_
- Stop a job.
- node status
- Node information.
- alloc status _id_
- Allocation details.
- alloc logs _id_
- Allocation logs.
- server members
- Server cluster info.
- -dev
- Development mode.
- -address _addr_
- Nomad API address (default: http://127.0.0.1:4646).
- -region _region_
- Region to query.
- -namespace _ns_
- Target namespace.
- -token _token_
- ACL token to use.
FAQ
What is the nomad command used for?
nomad is a workload orchestrator by HashiCorp. It deploys and manages applications across a cluster, supporting containers, VMs, and standalone executables. The tool provides scheduling, service discovery, and rolling updates. It integrates with Consul and Vault for service mesh and secrets management.
How do I run a basic nomad example?
Run `nomad agent -dev` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does agent do in nomad?
Run Nomad agent.