(前回からの続き)
Vagrant boxの起動
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
$ pwd /c/Users/84kure/Homestead $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'laravel/homestead'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'laravel/homestead' is up to date... ==> default: Setting the name of the VM: homestead ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly ==> default: Forwarding ports... default: 80 => 8000 (adapter 1) default: 443 => 44300 (adapter 1) default: 3306 => 33060 (adapter 1) default: 5432 => 54320 (adapter 1) default: 22 => 2222 (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection timeout. Retrying... default: default: Vagrant insecure key detected. Vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if its present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! GuestAdditions versions on your host (4.3.30) and guest (4.3.14) do not match. Reading package lists... (省略) ==> default: Checking for guest additions in VM... ==> default: Setting hostname... ==> default: Configuring and enabling network interfaces... ==> default: Mounting shared folders... default: /vagrant => C:/Users/84kure/Homestead default: /home/vagrant/Code => C:/Users/84kure/Code ==> default: Running provisioner: file... ==> default: Running provisioner: shell... default: Running: inline script ==> default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxXNy90JrRQQF3cJ6VSmTIm3GUcal 8Z8m1roJxiasERr66kml06LleWu9k+JnYceQLn7Vy8NZsR4KaL9C0i/UaXFHsvVJRuN015YiBbSgTH2H Q2K119rheAESZh/hcSvhnaxAERG7mWmI2TyGO2jn6qK6tWIy3mCy92N6+V4rjVeVv0t4EUqRTiKNF32h 4TImV0ZcSA8UgrPpPYj2mITXlCCdcL5PAUp1gIhEYAdRtH4RMK7yZ3d+KI81VVbI5+ExRHerJfpV6fGy z/1/spyQEdzacgf93brLnQKOAOWVeFWM2os3+4Z1JzaEqfPi+xK7B0yx3XwwhQv5F7B4eDIkx you@ho mestead ==> default: Running provisioner: shell... default: Running: inline script ==> default: Running provisioner: shell... default: Running: C:/Users/84kure/AppData/Local/Temp/vagrant-shell20150911-6856-1057k0u.sh ==> default: Running provisioner: shell... default: Running: C:/Users/84kure/AppData/Local/Temp/vagrant-shell20150911-6856-1o6olg0.sh ==> default: nginx stop/waiting ==> default: nginx start/running, process 5209 ==> default: php5-fpm stop/waiting ==> default: php5-fpm start/running, process 5224 ==> default: Running provisioner: shell... default: Running: C:/Users/84kure/AppData/Local/Temp/vagrant-shell20150911-6856-1kfohg8.sh ==> default: Warning: Using a password on the command line interface can be insecure. ==> default: Running provisioner: shell... default: Running: C:/Users/84kure/AppData/Local/Temp/vagrant-shell20150911-6856-18tj1zh.sh ==> default: createdb: database creation failed: ERROR: database "homestead" already exists ==> default: Running provisioner: shell... default: Running: C:/Users/84kure/AppData/Local/Temp/vagrant-shell20150911-6856-9lxudc.sh ==> default: Running provisioner: shell... default: Running: inline script ==> default: Running provisioner: shell... default: Running: inline script ==> default: Running provisioner: shell... default: Running: inline script ==> default: php5-fpm stop/waiting ==> default: php5-fpm start/running, process 5314 ==> default: Running provisioner: shell... default: Running: inline script ==> default: Updating to version 9f6fdfd703f433bd0777fd89fb4684908a6c4f06. ==> default: Downloading: Connecting... ==> default: ==> default: Downloading: 100% ==> default: ==> default: ==> default: Use composer self-update --rollback to return to version c43a39f7334ae3df968cd36a6eff0436bea0da75 ==> default: Running provisioner: shell... default: Running: C:/Users/84kure/AppData/Local/Temp/vagrant-shell20150911-6856-1w0iwkf.sh $ |
ブラウザからアクセスしてみる。
http://homestead.app/
1 |
No input file specified. |
表示されるページが無いので、Nginxのホームにテスト用のファイルを置いてみる。
1 2 3 |
<html> <body><?php phpinfo(); ?></body> </html> |
再びブラウザからアクセスすると表示された。
これでHomesteadのセットアップ完了。