官术网_书友最值得收藏!

What you need for this book

As you proceed with this book, you will see a lot of features, solutions, and practical exercises that require technical tests. It's not often easy to test everything in the correct environment.

Many feel that preparing an environment is a waste of time, and they are right! To avoid it and concentrate on the content of the book, we'll use virtual machines. To make it fast and simple, we're going to use VirtualBox and Vagrant. If you are not acquainted with these tools, don't worry, we will show you how to use them here.

These tools will help you test everything very quickly (a few seconds/minutes). The advantages of both tools are:

  • They are free
  • They can run on Linux, Mac OS X, and Windows
  • Fast instance provisioning

To install them, go to the official websites and download and install them on your current infrastructure:

In this book, every exercise will run on Debian GNU/Linux Wheezy amd64 version on a VirtualBox. That's why, after installing both the latest versions of those tools, I suggest you work in a separate folder/box per exercise:

  1. Create a folder named MariaDB that will contain all the exercises of this book.
  2. Inside that folder, create a subfolder named Chapter X, where X is the chapter number.
  3. Inside the Chapter X subfolder, create another subfolder named Exercise X, where X is the name of the section.
  4. Place the appropriate content of the Vagrantfile in the Exercise X folder.
  5. Inside that folder, power up machines (you absolutely need to be in to perform actions on the virtual machines):
    vagrant up
    
  6. And access them in the following manner:
    vagrant ssh (for a single machine)
    vagrant ssh machine-name (for multiple machines)
    

You're now ready for the exercises. When the exercises finish and you want to get your disk space back, you can stop and remove them with the following command:

vagrant halt
vagrant destroy

Then, you can remove the current folder.

主站蜘蛛池模板: 克什克腾旗| 怀化市| 枣庄市| 黄龙县| 云林县| 饶阳县| 石柱| 乐业县| 禹城市| 双柏县| 上思县| 岗巴县| 南漳县| 新和县| 大荔县| 施秉县| 上犹县| 仙桃市| 牡丹江市| 碌曲县| 屏东县| 宝坻区| 神池县| 阿尔山市| 阳信县| 云梦县| 刚察县| 鄢陵县| 蚌埠市| 禄劝| 个旧市| 渝中区| 荥阳市| 北碚区| 嫩江县| 麟游县| 象州县| 巴林右旗| 若羌县| 西乌| 金堂县|