\
\
"install nomad with systemd"
NOMAD_VERSION=0.5.6
ARCH=amd64
apt-get install unzip -y
wget https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_${ARCH}.zip -O /tmp/nomad.zip
cd /usr/bin
unzip -o /tmp/nomad.zip
chmod +x /usr/bin/nomad
rm /tmp/nomad.zip
wget https://raw.githubusercontent.com/hashicorp/nomad/master/dist/systemd/nomad.service -O /etc/systemd/system/nomad.service
systemctl enable nomad
for arm change ARCH to arm
ARCH=arm
put you config file to /etc/nomad and start the service
cat > /etc/nomad <<'EOF'
bind_addr = "0.0.0.0"
log_level = "DEBUG"
data_dir = "/var/lib/nomad"
client {
enabled = true
servers = ["nomad.home:4647"]
options {
"driver.raw_exec.enable" = "1"
}
}
server {
enabled = true
bootstrap_expect = 1
}
EOF
service nomad start
[me@blog]$
_