集群一般由三个节点组建而成,安装nomad需要分别在集群的节点上执行以下安装步骤:
wget https://releases.hashicorp.com/nomad/0.11.2/nomad_0.11.2_linux_amd64.zip
unzip nomad_0.11.2_linux_amd64.zip
mv -f nomad /usr/local/bin/
mkdir -p /etc/nomad.d/
mv -f nomad.hcl /etc/nomad.d/
mv -f nomad.service /usr/lib/systemd/system/
systemctl enable nomad
systemctl start nomad
systemctl status nomad
启动成功后访问http://x.x.x.x:4646
访问nomad web管理页面
部署集群时,需检查集群节点间端口访问是否通畅
nomad server members
nomad run [${project}.nomad]
nomad job stop ${job_name}