网卡设置:
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