欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

openstack简单安装--环境准备 博客分类: openstack,openstack安装 openstack 

程序员文章站 2024-03-13 19:24:03
...
两台机器controller节点mcon   compute节点mcom
两台机器都配置:

vim /etc/hosts
192.168.139.251 mcon
192.168.139.252 mcom


vim /etc/sysconfig/network-scripts/ifcfg-eth0

NAME="eth0"
DEVICE="eth0"
ONBOOT="yes"
NM_CONTROLLED=yes
BOOTPROTO=none
BRIDGE=br0



vim /etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0
TYPE=Bridge
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=192.168.139.252  //本机IP
NETMASK=255.255.240.0
GATEWAY=192.168.128.1
DNS1=114.114.114.114


关闭防火墙服务
systemctl stop firewalld.service
systemctl disable firewalld.service



vim /etc/hostname
controller(compute)//本机域名


关闭selinux
vim /etc/selinux/config
SELINUX=disabled



yum install centos-release-openstack-mitaka -y
yum install https://rdoproject.org/repos/rdo-release.rpm -y
yum upgrade -y
yum install python-openstackclient -y
yum install openstack-selinux -y
yum install mariadb mariadb-server python2-PyMySQL -y



以下只在controller节点配置

配置数据库
vim /etc/my.cnf.d/mariadb-server.cnf
bind-address = 192.168.139.251
default-storage-engine = innodb
innodb_file_per_table
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8

systemctl enable mariadb.service
systemctl start mariadb.service


yum install mongodb-server mongodb -y

vim /etc/mongod.conf
bind_ip = 192.168.139.251
smallfiles = true

systemctl enable mongod.service
systemctl start mongod.service


yum install rabbitmq-server -y
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service
rabbitmqctl add_user openstack zouhuiying
rabbitmqctl set_permissions openstack ".*" ".*" ".*"


yum install memcached python-memcached -y
systemctl enable memcached.service
systemctl start memcached.service

相关标签: openstack