当前位置:网站首页>Vagrant box cluster processing
Vagrant box cluster processing
2022-07-29 07:13:00 【PHP code】
vagrant box colony Handle
VAGRANTFILE_API_VERSION = "2" # Define the version
BOX_NAME = "centos/7" # Define virtual machine image
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |v|
v.memory = 1024 # Set memory (MB)
v.cpus = 4 # Set up cpu Number
end
config.vm.define "node1" do |node1| # Defining virtual machines
node1.vm.box = BOX_NAME # Use centos-7 System image
node1.vm.host_name = "node1" # Set up hostname
node1.vm.network "public_network"
node1.vm.synced_folder "D:/vagrant/data", "/vagrant_data" # The settings are hung in the directory
end
config.vm.define "node2" do |node2| # Define virtual machine second virtual machine
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
边栏推荐
- [C language brush leetcode] 1054. Bar code with equal distance (m)
- Idea cannot find a database solution
- Guess the number / / generate a random number for the first time
- ECCV 2022 lightweight model frame Parc net press apple mobilevit code and paper Download
- 20-40K| 梅卡曼德3D视觉算法/软件/产品经理招聘
- dba
- gin 服务退出
- Unity sends a post request to the golang server for parsing and returning
- WPF嵌套布局案例
- Operator3-设计一个operator
猜你喜欢

MySQL 有这一篇就够(呕心狂敲37k字,只为博君一点赞!!!)

网上传说软件测试培训真的那么黑心吗?都是骗局?

spark学习笔记(七)——sparkcore核心编程-RDD序列化/依赖关系/持久化/分区器/累加器/广播变量

Basic knowledge of MySQL (high frequency interview questions)

Idea cannot find a database solution

数组的子集能否累加出K

ETL为什么经常变成ELT甚至LET?

外包干了3年,跳槽后转自动化测试工资是原来的2倍,秘诀原来是......

Leetcode 879. profit plan

dba
随机推荐
Simulation volume leetcode [normal] 061. rotating linked list
vim文本编辑器的一些使用小技巧
我的创业邻居们
Flink real-time warehouse DWD layer (order placing multiple tables to realize join operation) template code
After 4 years of development and 13K, if you want to change to automated testing, can your salary still rise···
基于C语言设计的学生成绩排名系统
MySQL 高级(进阶) SQL 语句 (一)
npm install 时,卡住不动,五种解决方法
Simulation volume leetcode [general] 150. evaluation of inverse Polish expression
gin 服务退出
ETL为什么经常变成ELT甚至LET?
330. 按要求补齐数组
MVFuseNet:Improving End-to-End Object Detection and Motion Forecasting through Multi-View Fusion of
个人博客系统(附源码)
Vmware16 create virtual machine: cannot create a new virtual machine, do not have permission to perform this operation
Can MySQL export tables regularly?
OCR光学字符识别方法汇总
HJ37 统计每个月兔子的总数 斐波那契数列
Win11 system error: code execution cannot continue because ierutil.dll cannot be found. Reinstalling the program may fix this problem
Excel文件读写(创建与解析)