updating cli formatting for intro docs
This commit is contained in:
parent
1f304c3624
commit
0f181fd0b5
|
@ -78,9 +78,9 @@ All together, these settings yield a
|
|||
[`consul agent`](/docs/commands/agent.html) command like this:
|
||||
|
||||
```text
|
||||
vagrant@n1:~$ consul agent -server -bootstrap-expect 1 \
|
||||
-data-dir /tmp/consul -node=agent-one -bind=172.20.20.10 \
|
||||
-config-dir /etc/consul.d
|
||||
vagrant@n1:~$ consul agent -server -bootstrap-expect=1 \
|
||||
-data-dir=/tmp/consul -node=agent-one -bind=172.20.20.10 \
|
||||
-config-dir=/etc/consul.d
|
||||
...
|
||||
```
|
||||
|
||||
|
@ -100,8 +100,8 @@ All together, these settings yield a
|
|||
[`consul agent`](/docs/commands/agent.html) command like this:
|
||||
|
||||
```text
|
||||
vagrant@n2:~$ consul agent -data-dir /tmp/consul -node=agent-two \
|
||||
-bind=172.20.20.11 -config-dir /etc/consul.d
|
||||
vagrant@n2:~$ consul agent -data-dir=/tmp/consul -node=agent-two \
|
||||
-bind=172.20.20.11 -config-dir=/etc/consul.d
|
||||
...
|
||||
```
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ $ echo '{"service": {"name": "web", "tags": ["rails"], "port": 80}}' \
|
|||
Now, restart the agent, providing the configuration directory:
|
||||
|
||||
```text
|
||||
$ consul agent -dev -config-dir /etc/consul.d
|
||||
$ consul agent -dev -config-dir=/etc/consul.d
|
||||
==> Starting Consul agent...
|
||||
...
|
||||
[INFO] agent: Synced service 'web'
|
||||
|
|
Loading…
Reference in New Issue