mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Updates to help including --routes
This commit is contained in:
20
README.md
20
README.md
@@ -1,7 +1,7 @@
|
||||
# gnatsd
|
||||
[](http://opensource.org/licenses/MIT)
|
||||
[](http://travis-ci.org/nats-io/gnatsd)
|
||||
[](https://github.com/nats-io/gnatsd/releases/tag/v0.6.2)
|
||||
[](https://github.com/nats-io/gnatsd/releases/tag/v0.6.4)
|
||||
[](https://coveralls.io/r/nats-io/gnatsd?branch=master)
|
||||
|
||||
A High Performance [NATS](https://nats.io) Server written in [Go.](http://golang.org)
|
||||
@@ -13,30 +13,32 @@ command line arguments will override those items in the configuration file.
|
||||
|
||||
|
||||
```
|
||||
|
||||
Server options:
|
||||
Server Options:
|
||||
-a, --addr HOST Bind to HOST address (default: 0.0.0.0)
|
||||
-p, --port PORT Use PORT (default: 4222)
|
||||
-p, --port PORT Use PORT for clients (default: 4222)
|
||||
-P, --pid FILE File to store PID
|
||||
-m, --http_port PORT Use HTTP PORT
|
||||
-m, --http_port PORT Use HTTP PORT for monitoring
|
||||
-c, --config FILE Configuration File
|
||||
|
||||
Logging options:
|
||||
Logging Options:
|
||||
-l, --log FILE File to redirect log output
|
||||
-T, --logtime Timestamp log entries (default: true)
|
||||
-s, --syslog Enable syslog as log method.
|
||||
-r, --remote_syslog Syslog server addr (udp://localhost:514).
|
||||
-D, --debug Enable debugging output
|
||||
-V, --trace Trace the raw protocol
|
||||
-DV Debug and Trace
|
||||
|
||||
Authorization options:
|
||||
Authorization Options:
|
||||
--user user User required for connections
|
||||
--pass password Password required for connections
|
||||
|
||||
Common options:
|
||||
Cluster Options:
|
||||
--routes [rurl-1, rurl-2] Routes to solicit and connect
|
||||
|
||||
Common Options:
|
||||
-h, --help Show this message
|
||||
-v, --version Show version
|
||||
|
||||
```
|
||||
|
||||
## Sample Configuration
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
const (
|
||||
// VERSION is the current version for the server.
|
||||
VERSION = "0.6.2"
|
||||
VERSION = "0.6.4"
|
||||
|
||||
// DEFAULT_PORT is the deault port for client connections.
|
||||
DEFAULT_PORT = 4222
|
||||
|
||||
@@ -8,26 +8,30 @@ import (
|
||||
)
|
||||
|
||||
var usageStr = `
|
||||
Server options:
|
||||
Server Options:
|
||||
-a, --addr HOST Bind to HOST address (default: 0.0.0.0)
|
||||
-p, --port PORT Use PORT (default: 4222)
|
||||
-p, --port PORT Use PORT for clients (default: 4222)
|
||||
-P, --pid FILE File to store PID
|
||||
-m, --http_port PORT Use HTTP PORT
|
||||
-m, --http_port PORT Use HTTP PORT for monitoring
|
||||
-c, --config FILE Configuration File
|
||||
|
||||
Logging options:
|
||||
Logging Options:
|
||||
-l, --log FILE File to redirect log output
|
||||
-T, --logtime Timestamp log entries (default: true)
|
||||
-s, --syslog Enable syslog as log method.
|
||||
-r, --remote_syslog Syslog server addr (udp://localhost:514).
|
||||
-D, --debug Enable debugging output
|
||||
-V, --trace Trace the raw protocol
|
||||
-DV Debug and Trace
|
||||
|
||||
Authorization options:
|
||||
Authorization Options:
|
||||
--user user User required for connections
|
||||
--pass password Password required for connections
|
||||
|
||||
Common options:
|
||||
Cluster Options:
|
||||
--routes [rurl-1, rurl-2] Routes to solicit and connect
|
||||
|
||||
Common Options:
|
||||
-h, --help Show this message
|
||||
-v, --version Show version
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user