docs: Removed $/# from code block to make code copy easier. (#3448)

master
koolhead17 8 years ago committed by Dee Koder
parent b28ff50126
commit d9fd6f9a96
  1. 28
      README.md
  2. 30
      docs/FreeBSD.md
  3. 12
      docs/distributed/README.md
  4. 2
      docs/erasure/README.md

@ -7,14 +7,14 @@ Minio server is light enough to be bundled with the application stack, similar t
## Docker Container ## Docker Container
### Stable ### Stable
```sh ```sh
$ docker pull minio/minio docker pull minio/minio
$ docker run -p 9000:9000 minio/minio server /export docker run -p 9000:9000 minio/minio server /export
``` ```
### Edge ### Edge
```sh ```sh
$ docker pull minio/minio:edge docker pull minio/minio:edge
$ docker run -p 9000:9000 minio/minio:edge server /export docker run -p 9000:9000 minio/minio:edge server /export
``` ```
Please visit Minio Docker quickstart guide for more [here](https://docs.minio.io/docs/minio-docker-quickstart-guide) Please visit Minio Docker quickstart guide for more [here](https://docs.minio.io/docs/minio-docker-quickstart-guide)
@ -23,8 +23,8 @@ Please visit Minio Docker quickstart guide for more [here](https://docs.minio.io
Install minio packages using [Homebrew](http://brew.sh/) Install minio packages using [Homebrew](http://brew.sh/)
```sh ```sh
$ brew install minio brew install minio
$ minio server ~/Photos minio server ~/Photos
``` ```
### Binary Download ### Binary Download
@ -32,8 +32,8 @@ $ minio server ~/Photos
| ----------| -------- | ------| | ----------| -------- | ------|
|Apple OS X|64-bit Intel|https://dl.minio.io/server/minio/release/darwin-amd64/minio| |Apple OS X|64-bit Intel|https://dl.minio.io/server/minio/release/darwin-amd64/minio|
```sh ```sh
$ chmod 755 minio chmod 755 minio
$ ./minio server ~/Photos ./minio server ~/Photos
``` ```
## GNU/Linux ## GNU/Linux
@ -44,8 +44,8 @@ $ ./minio server ~/Photos
||32-bit Intel|https://dl.minio.io/server/minio/release/linux-386/minio| ||32-bit Intel|https://dl.minio.io/server/minio/release/linux-386/minio|
||32-bit ARM|https://dl.minio.io/server/minio/release/linux-arm/minio| ||32-bit ARM|https://dl.minio.io/server/minio/release/linux-arm/minio|
```sh ```sh
$ chmod +x minio chmod +x minio
$ ./minio server ~/Photos ./minio server ~/Photos
``` ```
## Microsoft Windows ## Microsoft Windows
@ -55,7 +55,7 @@ $ ./minio server ~/Photos
|Microsoft Windows|64-bit|https://dl.minio.io/server/minio/release/windows-amd64/minio.exe| |Microsoft Windows|64-bit|https://dl.minio.io/server/minio/release/windows-amd64/minio.exe|
||32-bit|https://dl.minio.io/server/minio/release/windows-386/minio.exe| ||32-bit|https://dl.minio.io/server/minio/release/windows-386/minio.exe|
```sh ```sh
C:\Users\Username\Downloads> minio.exe server D:\Photos minio.exe server D:\Photos
``` ```
## FreeBSD ## FreeBSD
@ -64,8 +64,8 @@ C:\Users\Username\Downloads> minio.exe server D:\Photos
| ----------| -------- | ------| | ----------| -------- | ------|
|FreeBSD|64-bit|https://dl.minio.io/server/minio/release/freebsd-amd64/minio| |FreeBSD|64-bit|https://dl.minio.io/server/minio/release/freebsd-amd64/minio|
```sh ```sh
$ chmod 755 minio chmod 755 minio
$ ./minio server ~/Photos ./minio server ~/Photos
``` ```
Please visit official zfs FreeBSD guide for more details [here](https://www.freebsd.org/doc/handbook/zfs-quickstart.html) Please visit official zfs FreeBSD guide for more details [here](https://www.freebsd.org/doc/handbook/zfs-quickstart.html)
@ -75,7 +75,7 @@ Source installation is only intended for developers and advanced users. If you d
```sh ```sh
$ go get -u github.com/minio/minio go get -u github.com/minio/minio
``` ```

@ -18,13 +18,13 @@ Start ZFS service
```sh ```sh
# service zfs start service zfs start
``` ```
```sh ```sh
# dd if=/dev/zero of=/zfs bs=1M count=4000 dd if=/dev/zero of=/zfs bs=1M count=4000
``` ```
@ -32,7 +32,7 @@ Configure a loopback device on the `/zfs` file.
```sh ```sh
# mdconfig -a -t vnode -f /zfs mdconfig -a -t vnode -f /zfs
``` ```
@ -40,13 +40,13 @@ Create zfs pool
```sh ```sh
# zpool create minio-example /dev/md0 zpool create minio-example /dev/md0
``` ```
```sh ```sh
# df /minio-example df /minio-example
Filesystem 512-blocks Used Avail Capacity Mounted on Filesystem 512-blocks Used Avail Capacity Mounted on
minio-example 7872440 38 7872402 0% /minio-example minio-example 7872440 38 7872402 0% /minio-example
@ -56,8 +56,8 @@ Verify if it is writable
```sh ```sh
# touch /minio-example/testfile touch /minio-example/testfile
# ls -l /minio-example/testfile ls -l /minio-example/testfile
-rw-r--r-- 1 root wheel 0 Apr 26 00:51 /minio-example/testfile -rw-r--r-- 1 root wheel 0 Apr 26 00:51 /minio-example/testfile
``` ```
@ -69,8 +69,8 @@ However, this pool is not taking advantage of any ZFS features, so let's create
```sh ```sh
# zfs create minio-example/compressed-objects zfs create minio-example/compressed-objects
# zfs set compression=lz4 minio-example/compressed-objects zfs set compression=lz4 minio-example/compressed-objects
``` ```
@ -78,7 +78,7 @@ To keep monitoring your pool use
```sh ```sh
# zpool status zpool status
pool: minio-example pool: minio-example
state: ONLINE state: ONLINE
scan: none requested scan: none requested
@ -98,7 +98,7 @@ Now start minio server on the ``/minio-example/compressed-objects``, change the
```sh ```sh
# chown -R minio-user:minio-user /minio-example/compressed-objects chown -R minio-user:minio-user /minio-example/compressed-objects
``` ```
@ -106,9 +106,9 @@ Now login as ``minio-user`` and start minio server.
```sh ```sh
$ curl https://dl.minio.io/server/minio/release/freebsd-amd64/minio > minio curl https://dl.minio.io/server/minio/release/freebsd-amd64/minio > minio
$ chmod 755 minio chmod 755 minio
$ ./minio server /minio-example/compressed-objects ./minio server /minio-example/compressed-objects
``` ```
@ -126,7 +126,7 @@ It is possible to build the minio server from source on FreeBSD. To do this we
We will need to install golang and GNU make: We will need to install golang and GNU make:
```sh ```sh
$ sudo pkg install go gmake sudo pkg install go gmake
``` ```
Now we can proceed with the normal build process of minio server as found [here](https://github.com/minio/minio/blob/master/CONTRIBUTING.md). The only caveat is we need to specify gmake (GNU make) when building minio server as the current Makefile is not BSD make compatible: Now we can proceed with the normal build process of minio server as found [here](https://github.com/minio/minio/blob/master/CONTRIBUTING.md). The only caveat is we need to specify gmake (GNU make) when building minio server as the current Makefile is not BSD make compatible:

@ -41,9 +41,9 @@ Below examples will clarify further:
Example 1: Start distributed Minio instance with 1 drive each on 8 nodes, by running this command on all the 8 nodes. Example 1: Start distributed Minio instance with 1 drive each on 8 nodes, by running this command on all the 8 nodes.
```shell ```shell
$ export MINIO_ACCESS_KEY=<ACCESS_KEY> export MINIO_ACCESS_KEY=<ACCESS_KEY>
$ export MINIO_SECRET_KEY=<SECRET_KEY> export MINIO_SECRET_KEY=<SECRET_KEY>
$ minio server http://192.168.1.11/export1 http://192.168.1.12/export2 \ minio server http://192.168.1.11/export1 http://192.168.1.12/export2 \
http://192.168.1.13/export3 http://192.168.1.14/export4 \ http://192.168.1.13/export3 http://192.168.1.14/export4 \
http://192.168.1.15/export5 http://192.168.1.16/export6 \ http://192.168.1.15/export5 http://192.168.1.16/export6 \
http://192.168.1.17/export7 http://192.168.1.18/export8 http://192.168.1.17/export7 http://192.168.1.18/export8
@ -54,9 +54,9 @@ $ minio server http://192.168.1.11/export1 http://192.168.1.12/export2 \
Example 2: Start distributed Minio instance with 4 drives each on 4 nodes, by running this command on all the 4 nodes. Example 2: Start distributed Minio instance with 4 drives each on 4 nodes, by running this command on all the 4 nodes.
```shell ```shell
$ export MINIO_ACCESS_KEY=<ACCESS_KEY> export MINIO_ACCESS_KEY=<ACCESS_KEY>
$ export MINIO_SECRET_KEY=<SECRET_KEY> export MINIO_SECRET_KEY=<SECRET_KEY>
$ minio server http://192.168.1.11/export1 http://192.168.1.11/export2 \ minio server http://192.168.1.11/export1 http://192.168.1.11/export2 \
http://192.168.1.11/export3 http://192.168.1.11/export4 \ http://192.168.1.11/export3 http://192.168.1.11/export4 \
http://192.168.1.12/export1 http://192.168.1.12/export2 \ http://192.168.1.12/export1 http://192.168.1.12/export2 \
http://192.168.1.12/export3 http://192.168.1.12/export4 \ http://192.168.1.12/export3 http://192.168.1.12/export4 \

@ -49,7 +49,7 @@ Example: Start Minio server in a 12 drives setup.
```sh ```sh
$ minio server /mnt/export1/backend /mnt/export2/backend /mnt/export3/backend /mnt/export4/backend /mnt/export5/backend /mnt/export6/backend /mnt/export7/backend /mnt/export8/backend /mnt/export9/backend /mnt/export10/backend /mnt/export11/backend /mnt/export12/backend minio server /mnt/export1/backend /mnt/export2/backend /mnt/export3/backend /mnt/export4/backend /mnt/export5/backend /mnt/export6/backend /mnt/export7/backend /mnt/export8/backend /mnt/export9/backend /mnt/export10/backend /mnt/export11/backend /mnt/export12/backend
``` ```

Loading…
Cancel
Save