vagrant

vagrant up报错 Warning: Authentication failure. Retrying...解决方案

我是研究僧i 提交于 2020-02-08 09:35:38
vagrant使用小结 最近公司用了vagrant的虚拟镜像服务,感觉挺不错的.在此仅记录使用方法. 优点:我们可以通过 Vagrant 封装一个 Linux 的开发环境,分发给团队成员。成员可以在自己喜欢的桌面系统(Mac/Windows/Linux)上开发程序,代码却能统一在封装好的环境里运行,非常霸气. 主要是看重它可以让开发人员在同样开发环境下开发,这样避免每个开发人员因为开发环境不一样导致最后代码上线的一些问题. 缺点:需要提前配置好一个满足开发条件的一些环境.(这个过程其实玩liunx的人,都会,对于不会的人来说,这就是缺点咯.) 本文后面提到的centos-6.5-x86_64-base.box,是centos-6.5的系统,在里面我已经预装了php apache nginx nodejs等等满足程序运行的环境。 下面使用步骤: 1、下载vagrant和VirtualBox vagrant 下载地址: http://www.vagrantup.com/downloads.html VirtualBox下载地址: https://www.virtualbox.org/wiki/Downloads box镜像文件,本文举例子的box文件(centos-6.5-x86_64-base.box,因为源文件太大,就不传了) 2、安装Vagrant 和 VirtualBox 3

Vagrant安装centos7并配置网络

社会主义新天地 提交于 2020-02-08 02:38:06
文章目录 Vagrant安装配置 Vagrant网络配置 什么是Vagrant Vagrant安装配置 首先需要先下载VirtualBox的稳定版本, 下载链接🔗 。 接着下载Vagrant, 下载链接🔗 ,下载成功后,在命令行里输入 vagrant 命令即可查看是否安装成功。 接下来,我们使用 vagrant 命令安装centos7虚拟机。 由于直接使用 vagrant init centos/7 来使用国外下载链接很慢,首先需要下载centos7的box。 这里可以在 清华源上下载🔗 或者通过【中科大源下载🔗](http://mirrors.ustc.edu.cn/) 使用命令,可以直接在命令行里下载。 vagrant box add \ https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/bionic/current/bionic-server-cloudimg-amd64-vagrant.box \ --name ubuntu/bionic 也可以先下载.box文件,这里给出centos7的 百度链接🔗 , 密码:5vxz。 然后使用下面的命令来添加。 > vagrant box add Vagrant-CentOS-7.box --name centos/7 添加完成后,初始化: > vagrant init

How to remote control Vagrant installed on Windows, within Linux Subsystem?

北城以北 提交于 2020-02-07 05:24:09
问题 According to the documentation of Vagrant, the topic WSL and Vagrant is advanced. You need to install Vagrant on Linux, because: While the vagrant.exe executable provided by the Vagrant Windows installation is accessible from within the WSL, it will not function as expected. But I don't want to run Vagrant primarily in Linux. I would like to use Virtual Box, installed on my Windows 10 host. But I don't want to leave Linux bash, just to start Vagrant. Is there a way to remote control Vagrant

构建docker镜像

∥☆過路亽.° 提交于 2020-02-06 21:56:34
一、基于容器生成镜像 基于容器生成镜像,实际上就是在某一个容器中添加一些功能,然后再生成新的镜像,例如下面这是linux上已经存在的镜像: [vagrant@localhost ~]$ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE centos latest 470671670cac 10 days ago 237MB hello-world latest fce289e99eb9 13 months ago 1.84kB 现在,在centos镜像的容器中添加vim功能然后生成新的镜像: 1、运行centos镜像 需要使用交互式的运行命令: [vagrant@localhost ~]$ docker run -it centos [root@68804cc4767f /]# 2、安装vim 注意此时已经进入到容器内部,在容器内安装vim: [root@68804cc4767f /]# yum install -y vim 3、查看容器 这样完成vim的安装,退出该容器,并且查看刚刚创建的容器: [vagrant@localhost ~]$ docker container ls -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 68804cc4767f

Ansible and Playbook. How to convert shell commands into yaml syntax?

蓝咒 提交于 2020-02-03 06:43:24
问题 I'm a newbie in Ansible and I don't understand how all people easily write shell commands in the Ansible/YAML syntax. May be I've missed a page from the documentation where it is explained well. For example: What do I need to write in my playbook.yml if I want to perform these commands in my remote machines: sudo apt-get install software-properties-common sudo apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://mariadb.biz.net

Azure management certificate error in vagrant

≯℡__Kan透↙ 提交于 2020-02-02 16:19:09
问题 I am trying to spin up a VM in Azure using Vagrant. Following this tutorial : http://blogs.msdn.com/b/tconte/archive/2014/06/19/building-your-ubuntu-php-development-box-on-azure-using-vagrant.aspx?CommentPosted=true#commentmessage But I got stuck in this line azure.mgmt_certificate = 'C:\Dev\management_cert.pfx' The error I got is following λ vagrant up --provider=azure C:/Users/hoss329549/.vagrant.d/gems/gems/azure-0.6.4/lib/azure/base_management/base_management_service.rb:48:in `rescue in

git教程(二)

谁都会走 提交于 2020-02-01 17:26:17
:-} 一开始,我的git(大概)流程 git status git branch git add . git commit -m "myProject_machuang" git push origin machuang 一开始工作的时候,可能轮不到你合并,这些命令已经满足基本版本控制需求了 :-) 查看远程分支 git branch -a 拉取已经提交的分支 root@vagrant-ubuntu-trusty-64:/vagrant/operate# git fetch remote: Counting objects: 101, done. remote: Compressing objects: 100% (60/60), done. remote: Total 101 (delta 76), reused 61 (delta 40) Receiving objects: 100% (101/101), 21.86 KiB | 0 bytes/s, done. Resolving deltas: 100% (76/76), completed with 25 local objects. From git.4000669696.com:myProject 64f7dcf..8059f6b sunjiankui -> origin/sunjiankui * [new

Docker深入浅出系列 | 容器初体验

左心房为你撑大大i 提交于 2020-01-28 05:10:27
Docker深入浅出系列 | 容器初体验 教程目标 Docker已经上市很多年,不是什么新鲜事物了,很多企业或者开发同学以前也不多不少有所接触,但是有实操经验的人不多,本系列教程主要偏重实战,尽量讲干货,会根据本人理解去做阐述,具体官方概念可以查阅官方文档,本章目标如下: 了解什么是Docker 了解Docker解决了什么 了解什么是镜像和容器 了解容器与虚拟机的区别 了解Vagrant与Docker的区别 了解Docker引擎和架构 了解Docker的镜像分层 了解VirturalBox和Docker如何搭配使用 了解主体机器如何与客体机器上的容器进行通信 了解Vagrant、VirtualBox、Docker搭建与基本操作 *** 预备工作 因为我是Mac用户,所以这里VirturalBox和vagrant使用的是Mac版本,大家自己到官网下载对应的系统版本即可,强烈建议使用迅雷下载! VirtualBox-6.0.14-133895-OSX.dmg Vagrant_2.2.6_x86_64.dmg Centos7镜像 *** 容器与虚拟化技术 什么是Docker 简单来说Docker是一款可以将应用程序与基础设施分离、代码及其所有依赖项打包,使应用程序能够从一个计算环境快速可靠地运行到另一个计算环境,达到快速交付、测试、部署的容器化技术

Windows上使用Vagrant打造Laravel Homestead可协同跨平台开发环境

余生长醉 提交于 2020-01-26 19:38:58
1、简介 Laravel 致力于让整个 PHP 开发过程变得让人愉悦,包括本地开发环境,为此官方为我们提供了一整套本地开发环境 —— Laravel Homestead 。 Laravel Homestead 是一个打包好各种 Laravel 开发所需要的工具及环境的 Vagrant 盒子( Vagrant 提供了一个便捷的方式来管理和设置 虚拟机 ),该盒子为我们提供了优秀的开发环境,有了它,我们不再需要在本地环境 安装 PHP、HHVM、Web服务器以及其它工具软件,我们也完全不用再担心误操作搞乱操作系统 —— 因为 Vagrant 盒子是一次性的,如果出现错误,可以在数分钟内销毁并重新创建该 Vagrant 盒子! Homestead可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了Nginx、PHP7.0、MySQL、Postgres、Redis、Memcached、Node以及很多其它开发 Laravel 应用所需要的东西。 注:如果你使用的是Windows,需要开启系统的硬件虚拟化(VT-x),这通常可以通过BIOS来开启。 预装软件 Ubuntu 14.04 Git PHP 7.0 HHVM Xdebug Nginx MySQL SQLite 3 Postgres Composer Node(With PM2, Bower, Grunt,

Hyperledger fabric1.4.0搭建环境

旧街凉风 提交于 2020-01-26 14:10:00
Hyperledger fabric1.4.0搭建环境 原创牧竹子 最后发布于2019-05-11 21:10:20 阅读数 630 收藏 展开 Hyperledger fabric1.4.0搭建环境 版本 在Ubuntu 18.04上搭建Hyperledger fabric1.4.0环境 https://www.jianshu.com/p/4f58e0fcb9f9 https://blog.csdn.net/javaexploreroooo/article/details/71157902 https://blog.csdn.net/zgljl2012/article/details/52896372 https://blog.csdn.net/songfadan/article/details/80827446 环境和工具 操作系统 ubuntu14 go 1.11.1 docker 17.06.2-ce docker-compose 1.23.1 curl组件for windows 常用的几个vagrant命令 $ vagrant init # 初始化 $ vagrant up # 启动虚拟机 $ vagrant halt # 关闭虚拟机 $ vagrant reload # 重启虚拟机 $ vagrant ssh # SSH 至虚拟机 $ vagrant suspend #