2. Basic environment configuration

网卡设置:

Controller Node

# The loopback network interface

auto lo

iface lo inet loopback

# The primary network interface

auto eth0

iface eth0 inet static

address 192.168.0.5

gateway 192.168.0.254

netmask 255.255.255.0

dns-nameservers 114.114.114.114

# The external network interface

auto eth1

iface eth1 inet manual

up ip link set dev $IFACE up

down ip link set dev $IFACE down

Compute Node

# The loopback network interface

auto lo

iface lo inet loopback

# The primary network interface

auto eth0

iface eth0 inet static

address 192.168.0.7

gateway 192.168.0.254

netmask 255.255.255.0

dns-nameservers 114.114.114.114

# The external network interface

auto eth1

iface eth1 inet manual

up ip link set dev $IFACE up

down ip link set dev $IFACE down

# The bridge

# 没有br100是因为在后面的设置中系统会自动创建,Bridge中包含eth1,即flat_interface

数据库设置:

Compute Node:

1. sudo apt-get install python-mysqldb mysql-server

2. sudo vi /etc/mysql/my.cnf

[mysqld]

...

bind-address = 10.0.0.11

[mysqld]

...

default-storage-engine = innodb

innodb_file_per_table

collation-server = utf8_general_ci

init-connect = ‘SET NAMES utf8‘

character-set-server = utf8

3. sudo service mysql restart

4. mysql_secure_installation

Other Node:

1. sudo apt-get install python-mysqldb

消息服务器设置:

Compute Node:

1. sudo apt-get install rabbitmq-server

2. sudo rabbitmqctl change_password guest RABBIT_PASS

时间: 2024-10-13 03:23:08

2. Basic environment configuration的相关文章

Mybatis 源码分析--Configuration.xml配置文件加载到内存

(补充知识点: 1 byte(字节)=8 bit(位) 通常一个标准英文字母占一个字节位置,一个标准汉字占两个字节位置:字符的例子有:字母.数字系统或标点符号) 1.创建SqlSessionFactory ①Reader reader = Resources.getResourceAsReader("mybatis-config.xml");                       //获取mybatis配置文件的字符 注解:Resources类是在mybatis中定义的一个类:g

DNS Configuration for the SCAN used with Oracle RAC Database 11g Release 2

This article provides the basic DNS configuration steps necessary to use the Single Client Access Name (SCAN) introduced in Oracle 11g Release 2 RAC. Please consider the following caveats before following the instructions here: I'm not an network guy

Sping Environment为Null的原因和解决方法

参考:https://github.com/spring-projects/spring-boot/issues/4711 这个issue提出不到20天给我搜出来了,还是相信google的强大 问题: 在spring的Configuration使用@Bean注册一个BeanFactoryPostProcessor Bean,发现使用@PropertySource,并注入@Resource private Environment env;发现env为null.我调试的大概一个过程,BeanFact

openstack-ansible Chapter 4. Deployment configuration

Initial environment configuration Copy the contents of the /opt/openstack-ansible/etc/openstack_deploy directory to the/etc/openstack_deploy directory. Change to the /etc/openstack_deploy directory. Copy the openstack_user_config.yml.example file to/

mybatis源码-解析配置文件(三)之配置文件Configuration解析(超详细, 值得收藏)

1. 简介 1.1 系列内容 本系列文章讲解的是mybatis解析配置文件内部的逻辑, 即 Reader reader = Resources.getResourceAsReader("mybatis-config.xml"); SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(reader); 其背后的逻辑. 1.2 适合对象 了解如何使用 mybatis 来访问数据库.可参看<

我被面试官给虐懵了,竟然是因为我不懂Spring中的@Configuration

现在大部分的Spring项目都采用了基于注解的配置,采用了@Configuration 替换标签的做法.一行简单的注解就可以解决很多事情.但是,其实每一个注解背后都有很多值得学习和思考的内容.这些思考的点也是很多大厂面试官喜欢问的内容. 在一次关于Spring注解的面试中,可能会经历面试官的一段夺命连环问: @Configuration有什么用?br/>@Configuration和XML有什么区别?哪种好?Spring是如何基于来获取Bean的定义的?@Autowired . @Inject.

Begin using git

Installation and configuration First thing first, you can easily install git in all 3 mainstream OS, Windows, Linux, OSX. Get windows installer on https://git-for-windows.github.io/. Note that in Windows, the official git tool was called "git for win

Document Object Model (DOM) Level 3 Events Specification

Document Object Model (DOM) Level 3 Events Specification W3C Working Draft 25 September 2014 This version: http://www.w3.org/TR/2014/WD-DOM-Level-3-Events-20140925/ Latest published version: http://www.w3.org/TR/DOM-Level-3-Events/ Latest editor's dr

Building microservices with ASP.NET Core (without MVC)(转)

There are several reasons why it makes sense to build super-lightweight HTTP services (or, despite all the baggage the word brings, “microservices”). I do not need to go into all the operational or architectural benefits of such approach to system de