Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/283.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel 建立流浪者/宅基地_Laravel_Vagrant_Homestead - Fatal编程技术网

Laravel 建立流浪者/宅基地

Laravel 建立流浪者/宅基地,laravel,vagrant,homestead,Laravel,Vagrant,Homestead,我正在Ubuntu 16.04上设置流浪者/家园 我已经安装了VirtualBox、Vagrant、Composer和PHP 我从git存储库下载了Homestead 吉特克隆家园酒店 我将cd放入宅地目录 跑 bash init.sh 收到消息Homestead已初始化 但当我导航到cd.homestad时,我会收到一条错误消息,上面写着 bash:cd:.homestad:没有这样的文件或目录 我还尝试了cd~/。homestead仍然收到bash:cd:.homestead:没有这样的文件

我正在Ubuntu 16.04上设置流浪者/家园

我已经安装了VirtualBox、Vagrant、Composer和PHP

我从git存储库下载了Homestead

吉特克隆家园酒店

我将cd放入宅地目录

bash init.sh

收到消息Homestead已初始化

但当我导航到cd.homestad时,我会收到一条错误消息,上面写着

bash:cd:.homestad:没有这样的文件或目录

我还尝试了cd~/。homestead仍然收到bash:cd:.homestead:没有这样的文件或目录

我该怎么解决这个问题呢?我提供了终端命令和每个命令的结果

font@font-Linux:~$ cd web
font@font-Linux:~/web$ cd ..
font@font-Linux:~$ vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
    box: URL:removed the url for posting purposes
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.

1) hyperv
2) parallels
3) virtualbox
4) vmware_desktop

Enter your choice: 3
==> box: Adding box 'laravel/homestead' (v2.1.0) for provider: virtualbox
    box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/2.1.0/providers/virtualbox.box
==> box: Successfully added box 'laravel/homestead' (v2.1.0) for 'virtualbox'!
font@font-Linux:~$ cd web
font@font-Linux:~/web$ git clone command removed the link for posting purposes //github.com/laravel/homestead.git Homestead
Cloning into 'Homestead'...
remote: Counting objects: 2184, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 2184 (delta 0), reused 0 (delta 0), pack-reused 2180
Receiving objects: 100% (2184/2184), 383.40 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1266/1266), done.
Checking connectivity... done.
font@font-Linux:~/web$ cd Homestead
font@font-Linux:~/web/Homestead$ bash init.sh
Homestead initialized!
font@font-Linux:~/web/Homestead$ cd ..
font@font-Linux:~/web$ cd ..
font@font-Linux:~$ cd .homestead
bash: cd: .homestead: No such file or directory
font@font-Linux:~$ cd ~/Homestead
bash: cd: /home/font/Homestead: No such file or directory

现在,Homestead版本已创建Homestead(H大写)文件夹,您需要
cd~/Homestead
vagrant up

Homestead的最新版本要求Homestead.yaml位于克隆回购协议时创建的~/Homestead目录中。 你不需要“.homestad”文件夹

在您的例子中,您在~/web/homestad中创建了它。
于是,cd变成了~/web/homestad和流浪汉。

errr。。你什么<代码>git克隆。。?否,明确说明您将需要几个软件。请注意,Vagrant是一种用于在单个工作流中构建和管理虚拟机环境的工具。Vagrant具有易于使用的工作流程并注重自动化,它缩短了开发环境的设置时间,增加了生产奇偶性,并使“在我的机器上工作”的借口成为过去的遗迹。如介绍页所述,我更新了我的问题。我已经安装了我已经安装了VirtualBox、Vagrant、Composer和PHP。我也尝试使用大写字母H,但仍然没有成功。提供了我的终端命令。你现在能上去吗?是的。非常感谢。