2016-08-01 10 views
0

これを今すぐ4時間稼働させようとしており、苦労しています。Laravel Homestead Vagrant - サイトのインストールに関する問題が表示されません

私は自分のホームステッドを稼働させようとしています。 https://laravel.com/docs/5.2/homestead

私はいくつか質問があります:私はここインストールガイド続い私はgithubのレポをクローニングすることにより、家産をインストールすると

1.) - 私はそのインストールで、そのsrcフォルダ内srcフォルダを取得するIこれは:src/stubs/Homestead.yamlです。私が指示に従ったときに、インストールのルートの内側にbash init.shを実行し、after.shaliasesHomestead.ymlファイルの3つのファイルを持つ/.homesteadフォルダを作成しました。私の理解から、私の環境を反映するようにHomestead.ymlを修正することです。問題はどちらですか?隠された.homesteadフォルダーにあるものか、ホームステッドをインストールした場所にあるものはありますか?

2.)ブラウザでhttp://site1.local:8000/にアクセスすると、サイトにアクセスできなくなるというエラーが表示されます。接続を拒否しました。 http://localhost:8000/に行くと、入力ファイルが指定されていません。

3.)コマンドラインからのホームステッドコマンドは、内部コマンドまたは外部コマンドとして認識されません。私は同様の問題を持つ人々がコマンドを実行する必要があります読むhomestead upまだそれは私のために認識されません。私は私のhostsファイルを更新した

# Copyright (c) 1993-2009 Microsoft Corp. 
# 
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows. 
# 
# This file contains the mappings of IP addresses to host names. Each 
# entry should be kept on an individual line. The IP address should 
# be placed in the first column followed by the corresponding host name. 
# The IP address and the host name should be separated by at least one 
# space. 
# 
# Additionally, comments (such as these) may be inserted on individual 
# lines or following the machine name denoted by a '#' symbol. 
# 
# For example: 
# 
#  102.54.94.97  rhino.acme.com   # source server 
#  38.25.63.10  x.acme.com    # x client host 

# localhost name resolution is handled within DNS itself. 
# 127.0.0.1  localhost 
# ::1    localhost 


#laravel project 1 
192.168.10.10 site1.local 

--- 
ip: "192.168.10.10" 
memory: 2048 
cpus: 1 
provider: virtualbox 

authorize: ~/.ssh/id_rsa.pub 

keys: 
    - ~/.ssh/id_rsa 

folders: 
    - map: ~/LaravelProjects/projects 
     to: /home/vagrant/Code 

sites: 
    - map: site1.local 
     to: /home/vagrant/Code/Laravel/public 

databases: 
    - homestead 

# blackfire: 
#  - id: foo 
#  token: bar 
#  client-id: foo 
#  client-token: bar 

# ports: 
#  - send: 50000 
#  to: 5000 
#  - send: 7777 
#  to: 777 
#  protocol: udp 

はここに私のホストファイルです:

は、ここに私のHomestead.ymlファイルです。私はvagrant reload --provisionvagrant destroyと他の迷惑行為のコマンドを運を使わずに実行しようとしました。助言がありますか?ここで

vagrant reload --provision

==> default: Attempting graceful shutdown of VM... 
==> default: Checking if box 'laravel/homestead' is up to date... 
==> default: Clearing any previously set forwarded ports... 
==> 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 (guest) => 8000 (host) (adapter 1) 
    default: 443 (guest) => 44300 (host) (adapter 1) 
    default: 3306 (guest) => 33060 (host) (adapter 1) 
    default: 5432 (guest) => 54320 (host) (adapter 1) 
    default: 22 (guest) => 2222 (host) (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: Remote connection disconnect. Retrying... 
==> default: Machine booted and ready! 
==> default: Checking for guest additions in VM... 
    default: The guest additions on this VM do not match the installed version of 
    default: VirtualBox! In most cases this is fine, but in rare cases it can 
    default: prevent things such as shared folders from working properly. If you see 
    default: shared folder errors, please make sure the guest additions within the 
    default: virtual machine match the version of VirtualBox you have installed on 
    default: your host and reload your VM. 
    default: 
    default: Guest Additions Version: 5.0.20 
    default: VirtualBox Version: 5.1 
==> default: Setting hostname... 
==> default: Configuring and enabling network interfaces... 
==> default: Mounting shared folders... 
    default: /vagrant => C:/Users/Radley.Anaya/LaravelProjects/Homestead 
    default: /home/vagrant/Code => C:/Users/Radley.Anaya/LaravelProjects/projects 
==> default: Running provisioner: file... 
==> default: Running provisioner: shell... 
    default: Running: inline script 
==> default: Running provisioner: shell... 
    default: Running: inline script 
==> default: Running provisioner: shell... 
    default: Running: C:/Users/RADLEY~1.ANA/AppData/Local/Temp/vagrant-shell20160801-10000-y9i8nr.sh 
==> default: Running provisioner: shell... 
    default: Running: script: Creating Site: site1.local 
==> default: Running provisioner: shell... 
    default: Running: script: Restarting Nginx 
==> default: Running provisioner: shell... 
    default: Running: script: Creating MySQL Database 
==> default: Running provisioner: shell... 
    default: Running: script: Creating Postgres Database 
==> default: Running provisioner: shell... 
    default: Running: script: Clear Variables 
==> default: Running provisioner: shell... 
    default: Running: inline script 
==> default: You are already using composer version 1.2.0 (stable channel). 
==> default: Running provisioner: shell... 
    default: Running: C:/Users/RADLEY~1.ANA/AppData/Local/Temp/vagrant-shell20160801-10000-i2qk4o.sh 

更新

を実行しているのダンプである私は、VMにssh'dと私のフォルダ構造は次のようになります。Code/first/index.phpどのように私はそれを更新しますか?

私のHomestead.ymlファイルのディレクトリ構造が異なっています。問題が発生する可能性が高いと思います。これをどうやって解決するのですか?

私の理解から、.ymlファイルは仮想マシンのフォルダ構造を指示していますか?これは事実ではありませんか?

+0

ホストファイルと "vagrant reload --provision"の出力を貼り付けることができます。あなたはバグのIP "nmap 192.168.10.10"にnmapを作って出力を貼り付けることができますか? –

+0

@JesúsAmieiroどのようにしてnmapをVagrant IPにするのですか? – Radmation

+1

nmapをインストールする必要があります(インストール方法はホストマシンによって異なります)。https://nmap.org/download.htmlを実行し、nmap 192.168.10.10を実行する必要があります。このコマンドは、あなたのVagrant VMの開いているポートを表示します。 –

答えて

0

解決

私のマッピングを台無しにされました。私はvmにsshを使って私の.yamlファイルを確認して更新し、その後vmをプロビジョニングしてすべてが動いています。また、私は自分のURLからポートを削除する必要がありました。

関連する問題