Windows 7 で vaygrant(CentOS 6.5)にRails4.1 + Nginx + Unicorn + Postgres 9.3 を起動する

Virtual Box インストール Download 本家 Virtualbox より、 Virtual Box ダウンロード インストール Vagrant インストール Download 本家 Vagrant より、 Vagrantダウンロード インストール 再起動が必要 仮想マシン(BOX(テンプレート))取得・追加 CnetOS 6.5 用 URL 取得 Vagrantbox.es より、Virtual Box用、CentOS 6.5 x86_64 URLをコピーする Box add cd c:\HashiCorp\Vagrant\ mkdir myhost cd myhost c:\HashiCorp\Vagrant\myhost> vagrant box add centos65 https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box ==> box: Adding box 'centos65' (v0) for provider: box: Downloading: https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box box: Progress: 100% (Rate: 3348k/s, Estimated time remaining: --:--:--) ==> box: Successfully added box 'centos65' (v0) for 'virtualbox'! 仮想マシン初期化 c:\HashiCorp\Vagrant\myhost> vagrant init centos65 ブリッジ設定 c:\HashiCorp\Vagrant\myhost\vagrantfile を編集する config.vm.network "public_network" # ←アンコメントする 仮想マシン起動 仮想マシン起動 c:\HashiCorp\Vagrant\myhost> vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'centos65'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: myhost_default_1421716347228_35069 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 => 2222 (adapter 1) ==> 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! ==> default: Checking for guest additions in VM... ==> default: Mounting shared folders... default: /vagrant => C:/HashiCorp/Vagrant/myhost SSH 接続(TeraTerm で確認) アドレス: 127.0.0.1 ポート: 2222 ユーザ: vagrant パスワード: vagrant 仮想マシン停止 状態確認 ...

2015-01-29 ·  2015-01-29 · 6 分 · 1256 文字