vagrant 默认 配置

# -*- mode: ruby -*-
# vi: set ft=ruby :# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|# The most common configuration options are documented and commented below.# For a complete reference, please see the online documentation at# https://docs.vagrantup.com.# Every Vagrant development environment requires a box. You can search for# boxes at https://vagrantcloud.com/search.config.vm.box = "generic/ubuntu2010"# Disable automatic box update checking. If you disable this, then# boxes will only be checked for updates when the user runs# `vagrant box outdated`. This is not recommended.# config.vm.box_check_update = false# Create a forwarded port mapping which allows access to a specific port# within the machine from a port on the host machine. In the example below,# accessing "localhost:8080" will access port 80 on the guest machine.# NOTE: This will enable public access to the opened port# config.vm.network "forwarded_port", guest: 80, host: 8080# Create a forwarded port mapping which allows access to a specific port# within the machine from a port on the host machine and only allow access# via 127.0.0.1 to disable public access# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"# Create a private network, which allows host-only access to the machine# using a specific IP.# config.vm.network "private_network", ip: "192.168.1.201"# Create a public network, which generally matched to bridged network.# Bridged networks make the machine appear as another physical device on# your network.config.vm.network "public_network", ip: "192.168.1.201"# Share an additional folder to the guest VM. The first argument is# the path on the host to the actual folder. The second argument is# the path on the guest to mount the folder. And the optional third# argument is a set of non-required options.config.vm.synced_folder "D:/\/vagrant/\/code", "/code"# Provider-specific configuration so you can fine-tune various# backing providers for Vagrant. These expose provider-specific options.# Example for VirtualBox:#config.vm.provider "virtualbox" do |vb|# Display the VirtualBox GUI when booting the machinevb.gui = truevb.name = "myOs"# Customize the amount of memory on the VM:vb.memory = "512"end## View the documentation for the provider you are using for more# information on available options.# Enable provisioning with a shell script. Additional provisioners such as# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the# documentation for more information about their specific syntax and use.# config.vm.provision "shell", inline: <<-SHELL#   apt-get update#   apt-get install -y apache2# SHELL
end

vagrant 默认 配置相关推荐

  1. vagrant 环境配置

    vagrant是简便虚拟机操作的一个软件,而使用虚拟机有几个好处: 1.为了开发环境与生产环境一致(很多开发环境为windows而生产环境为linux),不至于出现在开发环境正常而移步到正式生产环境时 ...

  2. Redis 5.0.3默认配置启动报错解决方法

    Redis 5.0.3默认配置启动报错解决方法 参考文章: (1)Redis 5.0.3默认配置启动报错解决方法 (2)https://www.cnblogs.com/miclesvic/p/1031 ...

  3. [转载]hadoop集群默认配置和常用配置

    转载自 http://www.cnblogs.com/ggjucheng/archive/2012/04/17/2454590.html, 向原作者致谢. 我基于最新版hadoop, 稍作了修改. 获 ...

  4. SpringBoot 2.0 编程方式配置,不使用默认配置方式

    SpringBoot的一般配置是直接使用application.properties或者application.yml,因为SpringBoot会读取.perperties和yml文件来覆盖默认配置: ...

  5. xampp默认配置拿shell

    xampp默认配置拿shell 首先我们先来科普一下xampp(Apache+MySQL+PHP+PERL)是一个功能强大的建 XAMPP 软件站集成软件包 是一个易于安装且包含 MySQL.PHP ...

  6. SpringMVC自动配置||如何修改SpringBoot的默认配置

    SpringMVC自动配置 1. Spring MVC auto-configuration Spring Boot 自动配置好了SpringMVC 以下是SpringBoot对SpringMVC的默 ...

  7. hikaripool连接保持_springboot2的hikari数据库连接池默认配置

    序 Spring-Boot-2.0.0-M1版本将默认的数据库连接池从tomcat jdbc pool改为了hikari,这里主要研究下hikari的默认配置 spring-configuration ...

  8. hadoop配置文件默认配置

    原文地址:http://www.linuxqq.net/archives/964.html 获取默认配置 配置hadoop,主要是配置core-site.xml,hdfs-site.xml,mapre ...

  9. vue中webpack默认配置_Vue-cli 中 Webpack 配置优化(一)

    一.前言 最近一段时间在学习 Webpack 方面的知识.在学习的过程中主要配置的是 webpack.config.js 文件. 但是在 Vue-cli 3.x 下,已经对 Webpack 做了深度的 ...

最新文章

  1. linux命令行终端的翻屏滚屏,linux命令行终端的翻屏滚屏more/less/head/tail
  2. 浅谈摄像头有关的安全问题
  3. Kotlin学习-基础知识点
  4. linux 文件大小_linux系统中查看目录大小的du命令常
  5. RabbitMQ 主题(Topic)
  6. 真正掌握vuex的使用方法(六)
  7. 自己帮别人写的网站可以公开源码吗_专注爬虫:20个精心总结爬虫项目,爬虫技术这里强(附源码)...
  8. (一)Rational Rose 2007 下载安装
  9. delete操作字符串会报错吗?
  10. 多层感知机和神经网络的区别_1.3 多层感知机
  11. nginx一些重要配置说明
  12. slam特征点深度 svd_【干货】视觉SLAM面试题汇总(第二部分)
  13. 去除ios手机端input输入框上方有阴影
  14. python是一种什么类型的高级语言_python介绍 编程语言分类及对比 python解释器安装(多版本共存) 变量 数据类型(三种)...
  15. html页面书签,利用CSS实现书签效果实例源码
  16. 源代码加密程序:.NET Reactor使用教程
  17. Oracle日期型函数详解
  18. Matlab语音信号去噪程序,使用低通巴特沃斯滤波器
  19. 高低温磁场型霍尔效应测试仪的设计方案
  20. “喜茶Go”微信小程序新零售商业实战案例经验分享-概述

热门文章

  1. 精品软件 推荐 BurnAware Free 刻录工具
  2. Java—抽象类和接口
  3. tomcat优化——并发和Tomcat线程数
  4. 修改U盘显示图标,制定个性化服务
  5. 折腾树莓派的一些总结
  6. Opera 浏览器各版本下载地址大全
  7. 英语口语221之每日十句口语
  8. linux内核中根据inode获取文件的完整路径
  9. WordPress主题模板主题巴巴博客X无限制版
  10. 故宫博物馆网页制作与设计