vagrant

Very slow laravel homestead/vagrant/virtualbox on Mac OSX

跟風遠走 提交于 2021-02-18 21:12:23
问题 I am using Homestead + Vagrant + Virtualbox on a Mac . Problem While I found lots of threads/answers how to fix slow response times (e.g. TTFB) none of them worked. My response times vary between 25 - 32 seconds, which of obviously is not acceptable for local development. Suggested Solutions I have tried a lot of suggested solutions from here: https://github.com/laravel/homestead/issues/901 And have also read and tried many suggestions from these threads: Very Slow Responses On Homestead

Very slow laravel homestead/vagrant/virtualbox on Mac OSX

走远了吗. 提交于 2021-02-18 21:12:20
问题 I am using Homestead + Vagrant + Virtualbox on a Mac . Problem While I found lots of threads/answers how to fix slow response times (e.g. TTFB) none of them worked. My response times vary between 25 - 32 seconds, which of obviously is not acceptable for local development. Suggested Solutions I have tried a lot of suggested solutions from here: https://github.com/laravel/homestead/issues/901 And have also read and tried many suggestions from these threads: Very Slow Responses On Homestead

Vagrant 填坑

a 夏天 提交于 2021-02-16 13:09:19
Virtualbox Guest Additions Version不匹配问题的解决 # 方法1 # 运行vboxguest-5.1.8 setup -- 未测试 # 方法2 # 重新编译vboxguest -- 未测试 # 方法3 # 使用Centos GUI界面,运行vboxguest -- 未测试 # 方法4 安装插件,命令如下(外国人写的插件 专门解决不匹配问题) $ vagrant plugin install vagrant-vbguest 资源清单 # CentOS 官方资源 https://cloud.centos.org/centos/7/vagrant/x86_64/images/ 基础命令 # vagrant常用命令 $ vagrant init # 初始化 $ vagrant up # 启动虚拟机 $ vagrant halt # 关闭虚拟机 $ vagrant reload # 重启虚拟机 $ vagrant ssh # ssh至虚拟机 $ vagrant suspend # 挂起虚拟机 $ vagrant resume # 唤醒虚拟机 $ vagrant status # 查看虚拟机运行状态 $ vagrant destroy # 销毁当前虚拟机 # box管理命令 $ vagrant box list # 查看本地box列表 $ vagrant box

NPM 常见错误

夙愿已清 提交于 2021-02-16 12:24:58
找不到兼容版本 你有一个过时的npm。 请更新到最新稳定的npm 。 权限错误 npm ERR! code EPERM npm ERR! code EACCES 修复缓存的权限 sudo chown -R $(whoami) "$HOME/.npm" 。 再试一次 sudo 。 例如 sudo npm install express -g 。 (之后您可能需要修复缓存权限,如上所述)。 重新安装节点,因此它不需要sudo 。 使用0.8的Travis项目无法升级到npm 2 在你的 .travis.yml 替换中: before_install : - npm install -g npm @ latest 有了这个: before_install : - ' [“$ {TRAVIS_NODE_VERSION}”!=“0.8”] || npm install -g npm@1.4.28 ' - npm install -g npm @ latest 这个建议是基于 这个特拉维斯问题 ,来自 @simondean 礼貌 。 Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm' 在Windows 7上 这是 joyent / node#8141的结果 ,并且是Windows的Node安装程序的问题。 解决方法是确保 C:

Vagrant: Passing docker run arguments to multiple containers using vagrant

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-11 04:34:25
问题 I'm using vagrant to deploy a multiple VM environment, for research purposes, and it was great so far. But now i need to pin each docker container to a specific CPU core, but i don't know how to do that using vagrant. I know i can use the "args" clause on the Vagrantfile to pass the "--cpuset" parameter to the docker run command, but i don't know how to use it in a loop, since i'm launching multiple containers and i need to pin each container to a different CPU core (eg. node1 pins to core #0

Vagrant: Getting connecting clients real ip

别说谁变了你拦得住时间么 提交于 2021-02-10 20:17:38
问题 I have a simple Apache+Flask website running inside a basic Vagrant+VirtualBox environment. I can access my site fine at 127.0.0.1:8080. The question & problem is, how do I configure Vagrant to pass the real clients IP address to Apache+Flask? request.remote_addr always returns 10.0.2.2 no matter what client is connecting from within my LAN. For example the machine running Vagrants IP is 192.168.1.5. From a client i.e. another laptop on my LAN with IP of 192.168.1.7, would hit the site @ 192

How do I use reCaptcha in a vagrant development environment?

时光毁灭记忆、已成空白 提交于 2021-02-10 19:53:34
问题 I am developing using vagrant. I'd like to use reCapcha how ever I get an error when when I'm developing on local machine which is at a subdomain on the vagrant configured private network 192.168.100.100: ERROR for site owner: Invalid domain for site key The recaptcha works on the production site fine. How can I setup my development environment to work with recaptcha? In the vagrant bootstrap are the following: <Directory "/var/www/"> AllowOverride All </Directory> <VirtualHost *:80>

Ansible: How to create empty inventory group in playbook?

你。 提交于 2021-02-10 14:59:43
问题 I use some roles with playbooks which setting up a dozen services across a cluster and use inventory groups to specify hosts for roles. According to the environment I need to extract an inventory from ENV in playbook. In the common case most of the services aren't necessary, so there is no hosts to add to a corresponding group, but a group must exist. In case of a static inventory it's pretty easy. But how to define an empty group in a playbook? 回答1: I couldn't find how to create an empty

Creating docker containers on Windows

主宰稳场 提交于 2021-02-10 14:19:16
问题 So getting boot2docker up and running, and pulling containers from the Docker Hub are non-issue on a windows environment. But if I wish to create a container and run it, how do I go about doing this? I've read about using fig, but is fig installed via Windows or from the container? I've attempted to do it from the container, but it often results in a permissions error, and even CHOWNing the folder doesn't solve the issue of not being able to call fig in the container. Is it even possible to

vagrant error the version of powershell on this host is less than required

萝らか妹 提交于 2021-02-08 01:28:43
问题 I have a problem with vagrant. 1) I have Windows 7. 2) Run script in Windows PowerShell 3) Code that i execute: PS D:\vagrants> vagrant --debug 4) my windows Path entry: C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\UCRT\;C:\Program Files\Intel\UCRT\;C:\Program Files (x86)\Intel