Created
January 1, 2016 19:26
-
-
Save arraytools/71ec85fd516b8cd5e5b4 to your computer and use it in GitHub Desktop.
Running nginx using vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brb@brb-P45T-A:/mnt/bigdisk/mytestbox$ cat > Vagrantfile | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.define "web", primary: true do |web| | |
| web.vm.box = "ubuntu/trusty64" | |
| web.vm.network "forwarded_port", guest:80, host:8888 | |
| web.vm.provision "shell", inline: "apt-get install -y nginx" | |
| end | |
| end | |
| brb@brb-P45T-A:/mnt/bigdisk/mytestbox$ vagrant up | |
| Bringing machine 'web' up with 'virtualbox' provider... | |
| ==> web: Importing base box 'ubuntu/trusty64'... | |
| ==> web: Matching MAC address for NAT networking... | |
| ==> web: Checking if box 'ubuntu/trusty64' is up to date... | |
| ==> web: Setting the name of the VM: mytestbox_web_1451676116932_75 | |
| ==> web: Clearing any previously set forwarded ports... | |
| ==> web: Clearing any previously set network interfaces... | |
| ==> web: Preparing network interfaces based on configuration... | |
| web: Adapter 1: nat | |
| ==> web: Forwarding ports... | |
| web: 80 (guest) => 8888 (host) (adapter 1) | |
| web: 22 (guest) => 2222 (host) (adapter 1) | |
| ==> web: Booting VM... | |
| ==> web: Waiting for machine to boot. This may take a few minutes... | |
| web: SSH address: 127.0.0.1:2222 | |
| web: SSH username: vagrant | |
| web: SSH auth method: private key | |
| web: Warning: Remote connection disconnect. Retrying... | |
| web: Warning: Remote connection disconnect. Retrying... | |
| web: | |
| web: Vagrant insecure key detected. Vagrant will automatically replace | |
| web: this with a newly generated keypair for better security. | |
| web: | |
| web: Inserting generated public key within guest... | |
| web: Removing insecure key from the guest if it's present... | |
| web: Key inserted! Disconnecting and reconnecting using new SSH key... | |
| ==> web: Machine booted and ready! | |
| ==> web: Checking for guest additions in VM... | |
| ==> web: Mounting shared folders... | |
| web: /vagrant => /mnt/bigdisk/mytestbox | |
| ==> web: Running provisioner: shell... | |
| web: Running: inline script | |
| ==> web: stdin: is not a tty | |
| ==> web: Reading package lists... | |
| ==> web: Building dependency tree... | |
| ==> web: Reading state information... | |
| ==> web: The following extra packages will be installed: | |
| ==> web: libxslt1.1 nginx-common nginx-core | |
| ==> web: Suggested packages: | |
| ==> web: fcgiwrap nginx-doc | |
| ==> web: The following NEW packages will be installed: | |
| ==> web: libxslt1.1 nginx nginx-common nginx-core | |
| ==> web: 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. | |
| ==> web: Need to get 493 kB of archives. | |
| ==> web: After this operation, 1,795 kB of additional disk space will be used. | |
| ==> web: Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libxslt1.1 amd64 1.1.28-2build1 [145 kB] | |
| ==> web: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx-common all 1.4.6-1ubuntu3.3 [18.1 kB] | |
| ==> web: Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx-core amd64 1.4.6-1ubuntu3.3 [324 kB] | |
| ==> web: Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx all 1.4.6-1ubuntu3.3 [5,452 B] | |
| ==> web: dpkg-preconfigure: unable to re-open stdin: No such file or directory | |
| ==> web: Fetched 493 kB in 0s (1,190 kB/s) | |
| ==> web: Selecting previously unselected package libxslt1.1:amd64. | |
| ==> web: (Reading database ... 62972 files and directories currently installed.) | |
| ==> web: Preparing to unpack .../libxslt1.1_1.1.28-2build1_amd64.deb ... | |
| ==> web: Unpacking libxslt1.1:amd64 (1.1.28-2build1) ... | |
| ==> web: Selecting previously unselected package nginx-common. | |
| ==> web: Preparing to unpack .../nginx-common_1.4.6-1ubuntu3.3_all.deb ... | |
| ==> web: Unpacking nginx-common (1.4.6-1ubuntu3.3) ... | |
| ==> web: Selecting previously unselected package nginx-core. | |
| ==> web: Preparing to unpack .../nginx-core_1.4.6-1ubuntu3.3_amd64.deb ... | |
| ==> web: Unpacking nginx-core (1.4.6-1ubuntu3.3) ... | |
| ==> web: Selecting previously unselected package nginx. | |
| ==> web: Preparing to unpack .../nginx_1.4.6-1ubuntu3.3_all.deb ... | |
| ==> web: Unpacking nginx (1.4.6-1ubuntu3.3) ... | |
| ==> web: Processing triggers for ufw (0.34~rc-0ubuntu2) ... | |
| ==> web: Processing triggers for ureadahead (0.100.0-16) ... | |
| ==> web: Processing triggers for man-db (2.6.7.1-1ubuntu1) ... | |
| ==> web: Setting up libxslt1.1:amd64 (1.1.28-2build1) ... | |
| ==> web: Setting up nginx-common (1.4.6-1ubuntu3.3) ... | |
| ==> web: Processing triggers for ufw (0.34~rc-0ubuntu2) ... | |
| ==> web: Processing triggers for ureadahead (0.100.0-16) ... | |
| ==> web: Setting up nginx-core (1.4.6-1ubuntu3.3) ... | |
| ==> web: Setting up nginx (1.4.6-1ubuntu3.3) ... | |
| ==> web: Processing triggers for libc-bin (2.19-0ubuntu6.6) ... | |
| brb@brb-P45T-A:/mnt/bigdisk/mytestbox$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment