리눅스
[리눅스] nomad 설치(install nomad)
변군이글루
2023. 1. 27. 12:41
반응형
nomad 설치(install nomad)
- install nomad server on ubuntu
sudo apt-get update && sudo apt-get install -y wget gpg coreutils
wget -q -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update && sudo apt-get install -y nomad
nomad --version
$ nomad --version
Nomad v1.4.3 (f464aca721d222ae9c1f3df643b3c3aaa20e2da7)
nomad.hcl 설정
vim /etc/nomad.d/nomad.hcl
# Full configuration options can be found at https://www.nomadproject.io/docs/configuration
data_dir = "/opt/nomad/data"
bind_addr = "0.0.0.0"
server {
# license_path is required as of Nomad v1.1.1+
#license_path = "/opt/nomad/license.hclic"
enabled = true
bootstrap_expect = 1
}
client {
enabled = true
servers = ["127.0.0.1"]
}
systemctl --now enable nomad.service
systemctl status nomad --no-pager
netstat -nlpt | grep nomad | sort -k 4
$ netstat -nlpt | grep nomad | sort -k 4
tcp6 0 0 :::4646 :::* LISTEN 5961/nomad
tcp6 0 0 :::4647 :::* LISTEN 5961/nomad
tcp6 0 0 :::4648 :::* LISTEN 5961/nomad
- install nomad server on centos
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
sudo yum install -y nomad
nomad --version
$ nomad --version
Nomad v1.4.3 (f464aca721d222ae9c1f3df643b3c3aaa20e2da7)
nomad.hcl 설정
vim /etc/nomad.d/nomad.hcl
# Full configuration options can be found at https://www.nomadproject.io/docs/configuration
data_dir = "/opt/nomad/data"
bind_addr = "0.0.0.0"
server {
# license_path is required as of Nomad v1.1.1+
#license_path = "/opt/nomad/license.hclic"
enabled = true
bootstrap_expect = 1
}
client {
enabled = true
servers = ["127.0.0.1"]
}
systemctl --now enable nomad.service
systemctl status nomad --no-pager
netstat -nlpt | grep nomad | sort -k 4
$ netstat -nlpt | grep nomad | sort -k 4
tcp6 0 0 :::4646 :::* LISTEN 17074/nomad
tcp6 0 0 :::4647 :::* LISTEN 17074/nomad
tcp6 0 0 :::4648 :::* LISTEN 17074/nomad
참고URL
- Install nomad: https://developer.hashicorp.com/nomad/tutorials/get-started/get-started-install
728x90
반응형