Files
nomad/website/source/docs/commands/server/join.html.md.erb
Charlie Voiselle 0c359d1a21 Fixup for command section of website
* changed list indicator from * -> -
* moved in-text links to reference links
* made commands `plaintext`
* made command examples `console`
* rewrapped text
2019-10-22 17:42:08 -04:00

40 lines
1.0 KiB
Plaintext

---
layout: "docs"
page_title: "Commands: server join"
sidebar_current: "docs-commands-server-join"
description: >
The server join command is used to join the local server to one or more Nomad
servers.
---
# Command: server join
The `server join` command joins the local server to one or more Nomad servers.
Joining is only required for server nodes, and only needs to succeed against
one or more of the provided addresses. Once joined, the gossip layer will
handle discovery of the other server nodes in the cluster.
## Usage
```plaintext
nomad server join [options] <addr> [<addr>...]
```
One or more server addresses are required. If multiple server addresses are
specified, then an attempt will be made to join each one. If one or more nodes
are joined successfully, the exit code will be 0. Otherwise, the exit code will
be 1.
## General Options
<%= partial "docs/commands/_general_options" %>
## Examples
Join the local server to a remote server:
```shell
$ nomad server join 10.0.0.8:4648
Joined 1 servers successfully
```