1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Update installation.md

This commit is contained in:
Ginger Collison 2019-05-29 08:23:30 -05:00 committed by GitHub
parent cf86aca039
commit d1da1914f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ NATS philosophy is simplicity. Installation is just decompressing a zip file and
### Installing via Docker ### Installing via Docker
With docker you can install the server easily without scattering binaries and other artifacts on your system. Only pre-requisite is to [install docker](https://docs.docker.com/install). With docker you can install the server easily without scattering binaries and other artifacts on your system. The only pre-requisite is to [install docker](https://docs.docker.com/install).
``` ```
> docker pull nats:latest > docker pull nats:latest
@ -21,7 +21,7 @@ Status: Image is up to date for nats:latest
docker.io/library/nats:latest docker.io/library/nats:latest
``` ```
To run nats on docker: To run NATS on Docker:
``` ```
> docker run -p 4222:4222 -ti nats:latest > docker run -p 4222:4222 -ti nats:latest
@ -38,8 +38,8 @@ More information on [containerized NATS is available here](/nats_docker/README.m
### Installing on Kubernetes with NATS Operator ### Installing on Kubernetes with NATS Operator
Installation via the NATS operator is beyond this tutorial. You can read about the [NATS Installation via the NATS Operator is beyond this tutorial. You can read about the [NATS
operator](https://github.com/nats-io/nats-operator) here. Operator](https://github.com/nats-io/nats-operator) here.
### Installing via a Package Manager ### Installing via a Package Manager
@ -69,7 +69,7 @@ To test your installation (provided the executable is visible to your shell):
You can find the latest release of nats-server [here](https://github.com/nats-io/nats-server/releases/latest). You can find the latest release of nats-server [here](https://github.com/nats-io/nats-server/releases/latest).
Download the zip file matching your systems architecture, and unzip. For this example, assuming version 2.0.0 of the server, and a Linux AMD64: Download the zip file matching your systems architecture, and unzip. For this example, assuming version 2.0.0 of the server and a Linux AMD64:
``` ```
> curl -L https://github.com/nats-io/nats-server/releases/download/v2.0.0/nats-server-v2.0.0-linux-amd64.zip -o nats-server.zip > curl -L https://github.com/nats-io/nats-server/releases/download/v2.0.0/nats-server-v2.0.0-linux-amd64.zip -o nats-server.zip
@ -87,13 +87,13 @@ Archive: nats-server.zip
### Installing from the source ### Installing from the source
If you have go installed, installing the binary is easy: If you have Go installed, installing the binary is easy:
``` ```
> go get github.com/nats-io/nats-server > go get github.com/nats-io/nats-server
``` ```
This mechanism will install a build of [master](https://github.com/nats-io/nats-server), which almost certainly will not be a released version. If you are a developer and want to play with the latest, this is the easiest way of obtaining it. This mechanism will install a build of [master](https://github.com/nats-io/nats-server), which almost certainly will not be a released version. If you are a developer and want to play with the latest, this is the easiest way.
To test your installation (provided the $GOPATH/bin is set): To test your installation (provided the $GOPATH/bin is set):