当前位置:网站首页>vagrant box 集群 处理
vagrant box 集群 处理
2022-07-29 06:27:00 【PHP代码】
vagrant box 集群 处理
VAGRANTFILE_API_VERSION = "2" #定义版本
BOX_NAME = "centos/7" #定义虚拟机镜像
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |v|
v.memory = 1024 #设置内存 (MB)
v.cpus = 4 #设置cpu数量
end
config.vm.define "node1" do |node1| #定义虚拟机
node1.vm.box = BOX_NAME #使用centos-7系统镜像
node1.vm.host_name = "node1" #设置hostname
node1.vm.network "public_network"
node1.vm.synced_folder "D:/vagrant/data", "/vagrant_data" #设置挂在目录
end
config.vm.define "node2" do |node2| #定义虚拟机第二台虚拟机
node2.vm.box = BOX_NAME
node2.vm.host_name = "node2"
node2.vm.network "public_network"
node2.vm.synced_folder "D:/vagrant/data", "/vagrant_data"
end
end
边栏推荐
- 建木持续集成平台v2.5.2发布
- Simulation volume leetcode [ordinary] 172. Zero after factorial
- Hj37 statistics of the total number of rabbits per month Fibonacci series
- Basic knowledge of MySQL (high frequency interview questions)
- Teacher Wu Enda's machine learning course notes 04 multiple linear regression
- Is online legend software testing training really so black hearted? Are they all scams?
- Federal learning backdoor attack summary (2019-2022)
- ECCV 2022丨轻量级模型架ParC-Net 力压苹果MobileViT代码和论文下载
- Teacher Wu Enda's machine learning course notes 02 univariate linear regression
- 数据库系统概述
猜你喜欢

Sword finger offer II 115: reconstruction sequence

10 frequently asked JVM questions in interviews

Implementation of book borrowing management system based on C language

城市花样精~侬好!DESIGN#可视化电台即将开播

【flask入门系列】Flask-SQLAlchemy的安装与配置

Is online legend software testing training really so black hearted? Are they all scams?

数组的子集不能累加出的最小正数

MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of

Vscode remote debugging PHP solution through remotessh and Xdebug

IDEA中实现Mapper接口到映射文件xml的跳转
随机推荐
buck电路boot电容短路和断路实测波形
要不要满足客户所有的需求
我的创业邻居们
Teacher wangshuyao's notes on operations research 02 fundamentals of advanced mathematics
Simulation volume leetcode [normal] 061. rotating linked list
上采样之反卷积操作
Not so simple singleton mode
Overview of database system
【C语言刷LeetCode】2332. 坐上公交的最晚时间(M)
Flink实时仓库-DWD层(流量域)模板代码
Junda technology | applicable to "riyueyuan" brand ups wechat cloud monitoring card
模拟卷Leetcode【普通】081. 搜索旋转排序数组 II
DM数据守护集群搭建
Hj37 statistics of the total number of rabbits per month Fibonacci series
MutationObserver文档学习
后缀自动机(SAM)讲解 + Luogu p3804【模板】后缀自动机 (SAM)
ECCV 2022丨轻量级模型架ParC-Net 力压苹果MobileViT代码和论文下载
WPF简单登录页面的完成案例
基于C语言设计的学生成绩排名系统
Thread synchronization - producers and consumers, tortoise and rabbit race, dual thread printing