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
### Stable
```sh
$ docker pull minio/minio
$ docker run -p 9000:9000 minio/minio server /export
docker pull minio/minio
docker run -p 9000:9000 minio/minio server /export
```
### Edge
```sh
$ docker pull minio/minio:edge
$ docker run -p 9000:9000 minio/minio:edge server /export
docker pull minio/minio:edge
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)
@ -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/)
```sh
$ brew install minio
$ minio server ~/Photos
brew install minio
minio server ~/Photos
```
### 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|
```sh
$ chmod 755 minio
$ ./minio server ~/Photos
chmod 755 minio
./minio server ~/Photos
```
## GNU/Linux
@ -44,8 +44,8 @@ $ ./minio server ~/Photos
||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|
```sh
$ chmod +x minio
$ ./minio server ~/Photos
chmod +x minio
./minio server ~/Photos
```
## Microsoft Windows
@ -55,7 +55,7 @@ $ ./minio server ~/Photos
|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|
```sh
C:\Users\Username\Downloads> minio.exe server D:\Photos
minio.exe server D:\Photos
```
## 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|
```sh
$ chmod 755 minio
$ ./minio server ~/Photos
chmod 755 minio
./minio server ~/Photos
```
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
$ go get -u github.com/minio/minio
go get -u github.com/minio/minio
```

@ -18,13 +18,13 @@ Start ZFS service
```sh
# service zfs start
service zfs start
```
```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
# mdconfig -a -t vnode -f /zfs
mdconfig -a -t vnode -f /zfs
```
@ -40,13 +40,13 @@ Create zfs pool
```sh
# zpool create minio-example /dev/md0
zpool create minio-example /dev/md0
```
```sh
# df /minio-example
df /minio-example
Filesystem 512-blocks Used Avail Capacity Mounted on
minio-example 7872440 38 7872402 0% /minio-example
@ -56,8 +56,8 @@ Verify if it is writable
```sh
# touch /minio-example/testfile
# ls -l /minio-example/testfile
touch /minio-example/testfile
ls -l /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
# zfs create minio-example/compressed-objects
# zfs set compression=lz4 minio-example/compressed-objects
zfs create minio-example/compressed-objects
zfs set compression=lz4 minio-example/compressed-objects
```
@ -78,7 +78,7 @@ To keep monitoring your pool use
```sh
# zpool status
zpool status
pool: minio-example
state: ONLINE
scan: none requested
@ -98,7 +98,7 @@ Now start minio server on the ``/minio-example/compressed-objects``, change the
```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
$ curl https://dl.minio.io/server/minio/release/freebsd-amd64/minio > minio
$ chmod 755 minio
$ ./minio server /minio-example/compressed-objects
curl https://dl.minio.io/server/minio/release/freebsd-amd64/minio > minio
chmod 755 minio
./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:
```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:

@ -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.
```shell
$ export MINIO_ACCESS_KEY=<ACCESS_KEY>
$ export MINIO_SECRET_KEY=<SECRET_KEY>
$ minio server http://192.168.1.11/export1 http://192.168.1.12/export2 \
export MINIO_ACCESS_KEY=<ACCESS_KEY>
export MINIO_SECRET_KEY=<SECRET_KEY>
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.15/export5 http://192.168.1.16/export6 \
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.
```shell
$ export MINIO_ACCESS_KEY=<ACCESS_KEY>
$ export MINIO_SECRET_KEY=<SECRET_KEY>
$ minio server http://192.168.1.11/export1 http://192.168.1.11/export2 \
export MINIO_ACCESS_KEY=<ACCESS_KEY>
export MINIO_SECRET_KEY=<SECRET_KEY>
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.12/export1 http://192.168.1.12/export2 \
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
$ 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