OpenStack安装指南_Mitaka
http://down.51cto.com/data/2331199
Openstack管理手册-Newton版-CentOS7.2
http://down.51cto.com/data/2331201
[root@controller ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.137.145 controller
192.168.137.146 compute
192.168.137.149 storage
#Install ALL Packages and Configure Evironment
yum install centos-release-openstack-pike -y
yum install python-openstackclient -y
yum install openstack-selinux -y
yum install mariadb mariadb-server python2-PyMysqL -y
yum install rabbitmq-server -y
yum install memcached python-memcached -y
yum install etcd -y
yum install openstack-keystone httpd mod_wsgi -y
yum install openstack-glance -y
yum install -y openstack-nova-api openstack-nova-conductor \
openstack-nova-console openstack-nova-novncproxy \
openstack-nova-scheduler openstack-nova-placement-api
yum install -y openstack-neutron openstack-neutron-ml2 \
openstack-neutron-linuxbridge ebtables
#Configure RabbitMQ
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service
systemctl status rabbitmq-server.service
rabbitmqctl add_user openstack passwd123
rabbitmqctl set_permissions openstack "." "." ".*"
#Configure Memcached
vim /etc/sysconfig/memcached
OPTIONS="-l 127.0.0.1,::1,controller"
systemctl enable memcached.service
systemctl start memcached.service
OpenStack服务可以使用户可靠,分布式键值存储的分布式密钥锁定,存储配置,跟踪服务活性等情况。
#Configure Etcd
vim /etc/etcd/etcd.conf
[root@controller ~]# vim /etc/etcd/etcd.conf
#[Member]
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_PEER_URLS="http://192.168.137.145:2380"
ETCD_LISTEN_CLIENT_URLS="http://192.168.137.145:2379"
ETCD_NAME="controller"
#[Clustering]
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.137.145:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://192.168.137.145:2379"
ETCD_INITIAL_CLUSTER="controller=http://192.168.137.145:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER_STATE="new"
systemctl enable etcdsystemctl start etcdsystemctl status etcd
原文链接:https://www.f2er.com/centos/374742.html