homestead

Can't install Vagrant box Laravel Homestead

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to install Laravel Homestead on Mac OS X following the official documentation instructions on here . I installed VirtualBox and Vagrant. Now I'm trying to add the Homestead box with the command vagrant box add laravel/homestead . After a while the download stops and I get an error. It doesn't let me restore the download so I have to delete the partial download file and start from zero. I've tried it many times. I think my Internet connection has something to do since it's kinda slow and it's a large file. Here's the

Is there a default password to connect to vagrant when using `homestead ssh` for the first time?

不问归期 提交于 2019-12-03 01:06:44
问题 I'm trying to connect to vagrant via homestead ssh : vagrant@127.0.0.1's password: But my public key password doesn't work. My Homestead.yaml looks like this: authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa I'm using "Laravel Homestead version 2.0.14" with "Vagrant 1.7.2". 回答1: After trying a lot of passwords and becoming totally confused why my public key password is not working I found out that I have to use vagrant as password. Maybe this info helps someone else too - that's because I

Homestead error: The SSH command responded with a non-zero exit status

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get an error when I do homestead up --provision on my homestead machine: ...[success logs here]... ==> default: Running provisioner: shell... default: Running: /var/folders/9j/bsvhbzdn2dx8hjwgnl7nrj7w0000gn/T/vagrant- shell20170127-4343-1dyyzgz.sh ==> default: mysql: ==> default: [Warning] Using a password on the command line interface can be insecure. ==> default: Please use --connect-expired-password option or invoke mysql in interactive mode. The SSH command responded with a non-zero exit status. Vagrant assumes that this means the

Mac 迪士尼平台搭建安装 Homestead本地安装

匿名 (未验证) 提交于 2019-12-03 00:40:02
Homestead Mac迪士尼平台搭建论坛:haozbbs.com Q1446595067 在线安装 Homestead Vagrant Box,这样安装下载会非常慢,可以使用本地文件安装方式 vagrant box add laravel/homestead 1 然后把你的box盒子拖拽到iterm里面 路径会自动补全如下 vagrant box add laravel/homestead /Users/guobao/solf/homestead.box 1 这里写图片描述 查看安装的box 镜像储存的位置:以我电脑为例执行 ls -a 查看隐藏文件 ~/.vagrant.d/boxes 这里就是盒子的安装位置 这里写图片描述 安装 Homestead 管理脚本 #clone管理脚本 git clone https://github.com/laravel/homestead.git ~/Homestead cd Homestead #因为master不稳定所以切到稳定tag git checkout v7.3.0 #创建 Homestead.yaml 配置文件 bash init.sh 1 2 3 4 5 6 7 8 9 如果是windows 执行 ./init.bat 如果是本地安装的 homestead.box 版本为0,所以需要修改下面步骤生成的配置文件 /Users

window安装Homestead

匿名 (未验证) 提交于 2019-12-03 00:38:01
学习laravel,推荐使用Homestead网站运行环境,然后安装这个运行环境,还是挺麻烦的,记录下 1.先要安装virtual box,或者VMware 2.安装 vagrant 3.然后将vagrant命令添加到path 4.然后是vagrant box add laravel/homestead,它会去下载box,如果下载速度很慢,可以将下载链接复制下来,用下载工具下载,网址如下: https://app.vagrantup.com/laravel/boxes/homestead/versions/6.0.0/providers/virtualbox.box https://vagrantcloud.com/laravel/boxes/homestead/versions/6.0.0/providers/virtualbox.box 修改相应的版本号 5.具体可以看下 这个介绍 是看了 这个博客 解决的问题 ,在vagrant up的运行过程中来操作,最后就启动起来了。 7.你可以到virtual box中打开这个虚拟机,用户名和密码都是登录名,也可以用vagrant ssh来免密登陆 文章来源: window安装Homestead

Centos7 安装Homestead环境

匿名 (未验证) 提交于 2019-12-02 23:49:02
问题1, ==> homestead-7: Waiting for machine to boot. This may take a few minutes... homestead-7: SSH address: 127.0.0.1:2222 homestead-7: SSH username: vagrant homestead-7: SSH auth method: private key 1 Timed out while waiting for the machine to boot. This means that 2 Vagrant was unable to communicate with the guest machine within 3 the configured ("config.vm.boot_timeout" value) time period. 4 5 If you look above, you should be able to see the error(s) that 6 Vagrant had when attempting to connect to the machine. These errors 7 are usually good hints as to what may be wrong. 8 9 If you're

Homestead中PHP扩展无phpize难以安装redis扩展的问题及解决办法

匿名 (未验证) 提交于 2019-12-02 22:11:45
这真是一个非常深的坑。 homestead中自带很多版本的php。然而扩展中缺没有phpize,这个东西是php添加扩展需要的东西 本人在laravel中需要用到Redis扩展。这个和laravel的predis是存在区别的。predis相当于一个类包。 而我需要的是PHP的extension。。然后就开始了我的采坑之旅! 废话不说了,上解决方法。 首先: 第一步 我是homestead的Ubuntu系统。 首先重新装下php的环境包,这是为了让phpize出来!因为不知道为什么现在homestead自带的没有 sudo apt install php7.2-dev 1 如果你用的不是php7.2,而是7.1那你就改成sudo apt install php7.1-dev 然后可能会下载不到资源,因为资源本身在国外。你需要修改下载源为国内的镜像源。 点我看怎么修改 安装的时候遇到提示都选择替换。 安装完毕检查/usr/bin会发现这时phpize和它对应的版本。 第二步 安装redis为php添加上redis扩展。 如果权限不够产生问题请自己加上代码sudo! 如:sudo git clone https://github.com/phpredis/phpredis.git $ git clone https://github.com/phpredis/phpredis.git $

homestead切换php版本

匿名 (未验证) 提交于 2019-12-02 22:11:45
Homestead中切换版本,在homestead.json中配置: sites: - map: homestead.test to: /home/vagrant/code/Laravel/public php: "5.6" 在 vagratnt up 启动虚拟机, vagrant ssh 进入虚拟机执行: update-alternatives --display php 查看所有 php 版本和当前版本 update-alternatives --config php 执行后,会列出当前 php 所有版本和编号,输入编号,切换到执行的版本 可以看到刚开始默认最高版本,输入版本编号进行切换 参考文章: https://laravel-china.org/articles/16881 文章来源: homestead切换php版本

Laravel Homestead, npm install --no-bin-links error

我们两清 提交于 2019-12-02 22:03:12
问题 I am using fresh Homestead (box version 0.5) for a fresh Laravel 5.3 app. Host OS is Windows 10. I get this error when running npm install --no-bin-links npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to

homestead 跑 thinkphp5项目 一直重复加载问题 多入口设置

元气小坏坏 提交于 2019-12-02 18:31:29
在 Homestead/scripts 目录下新建文件 serve-tp5.sh 内容如下 #!/usr/bin/env bash declare -A params=$6 # Create an associative array paramsTXT="" if [ -n "$6" ]; then for element in "${!params[@]}" do paramsTXT="${paramsTXT} fastcgi_param ${element} ${params[$element]};" done fi block="server { listen ${3:-80}; listen ${4:-443} ssl http2; server_name .$1; root \"$2\"; index index.html index.htm index.php; charset utf-8; location / { #try_files \$uri \$uri/ /index.php?\$query_string; if (!-e \$request_filename) { rewrite /admin.php(.*)$ /admin.php?s=/\$1 last; #存在admin.php 多入口设置 rewrite /index.php(.*)$ /index