mirror of https://github.com/status-im/consul.git
updating cli formatting for intro docs
This commit is contained in:
parent
3193507d9a
commit
865e9ea5c3
|
@ -78,9 +78,9 @@ All together, these settings yield a
|
||||||
[`consul agent`](/docs/commands/agent.html) command like this:
|
[`consul agent`](/docs/commands/agent.html) command like this:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
vagrant@n1:~$ consul agent -server -bootstrap-expect 1 \
|
vagrant@n1:~$ consul agent -server -bootstrap-expect=1 \
|
||||||
-data-dir /tmp/consul -node=agent-one -bind=172.20.20.10 \
|
-data-dir=/tmp/consul -node=agent-one -bind=172.20.20.10 \
|
||||||
-config-dir /etc/consul.d
|
-config-dir=/etc/consul.d
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -100,8 +100,8 @@ All together, these settings yield a
|
||||||
[`consul agent`](/docs/commands/agent.html) command like this:
|
[`consul agent`](/docs/commands/agent.html) command like this:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
vagrant@n2:~$ consul agent -data-dir /tmp/consul -node=agent-two \
|
vagrant@n2:~$ consul agent -data-dir=/tmp/consul -node=agent-two \
|
||||||
-bind=172.20.20.11 -config-dir /etc/consul.d
|
-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:
|
Now, restart the agent, providing the configuration directory:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ consul agent -dev -config-dir /etc/consul.d
|
$ consul agent -dev -config-dir=/etc/consul.d
|
||||||
==> Starting Consul agent...
|
==> Starting Consul agent...
|
||||||
...
|
...
|
||||||
[INFO] agent: Synced service 'web'
|
[INFO] agent: Synced service 'web'
|
||||||
|
|
Loading…
Reference in New Issue