码迷,mamicode.com
首页 > 其他好文 > 详细

2. Basic environment configuration

时间:2015-05-09 10:04:58      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:

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

2. Basic environment configuration

标签:

原文地址:http://www.cnblogs.com/IvanChen/p/4489384.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!