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

Centos0S7手动安装OpenStack Pike版--(一)

时间:2018-02-05 21:36:51      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:one   etc   sysconfig   token   init   put   用户   yum   iss   

[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 etcd
systemctl start etcd
systemctl status etcd

Centos0S7手动安装OpenStack Pike版--(一)

标签:one   etc   sysconfig   token   init   put   用户   yum   iss   

原文地址:http://blog.51cto.com/andyliu/2069162

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