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

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.

主站蜘蛛池模板: 昌都县| 攀枝花市| 深州市| 英吉沙县| 砚山县| 诸暨市| 江门市| 牙克石市| 花垣县| 怀仁县| 新津县| 营口市| 宁化县| 贞丰县| 景谷| 宜黄县| 绵竹市| 龙州县| 天门市| 紫金县| 湘潭市| 长沙县| 霍城县| 香港 | 故城县| 凤冈县| 甘洛县| 攀枝花市| 婺源县| 绥中县| 华蓥市| 高青县| 朝阳区| 龙里县| 阿拉善左旗| 东明县| 且末县| 汤原县| 枣阳市| 泽库县| 同江市|