云计算之openstack-newton版搭建
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了云计算之openstack-newton版搭建相关的知识,希望对你有一定的参考价值。
安装数据库
[[email protected] ~]# yum install mariadb mariadb-server python2-Pymysql -y
2.配置数据库
[[email protected] ~]# vim /etc/my.cnf.d/openstack.cnf [mysqld] bind-address = 192.168.23.98 #本服务器的ip default-storage-engine = innodb innodb_file_per_table max_connections = 4096 collation-server = utf8_general_ci character-set-server = utf8
4.启动数据库
[[email protected] ~]# systemctl enable mariadb.service [[email protected] ~]# systemctl start mariadb.service
5.初始化数据库
[[email protected] ~]# mysql_secure_installation 数据库密码为123456
6.验证数据库
[[email protected] ~]# mysql -uroot -p123456 能进入数据库表示成功
7.消息队列
openstack使用一个消息队列的服务之间进行协调的操作和状态的信息。消息队列服务通常在控制器节点上运行。OpenStack的支持多种消息队列服务,包括RabbitMQ的, Qpid和ZeroMQ。
8.安装rabbitmq
[[email protected] ~]# yum install rabbitmq-server -y
9.启动rabbitmq服务
[[email protected] ~]# systemctl enable rabbitmq-server.service [[email protected] ~]# systemctl start rabbitmq-server.service
8.创建openstack用户这里使用RABBIT_PASS做openstack用户的密码
[[email protected] ~]# rabbitmqctl add_user openstack RABBIT_PASS Creating user "openstack" ...
9.允许openstack用户的配置,写入和读取的访问
[[email protected] ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*" Setting permissions for user "openstack" in vhost "/" ...
10.安装Memcached
[[email protected] ~]# yum install memcached python-memcached -y
11.启动服务
[[email protected] ~]# systemctl enable memcached.service [[email protected] ~]# systemctl start memcached.service
本文出自 “linux运维” 博客,请务必保留此出处http://lijiawang.blog.51cto.com/10156897/1890710
以上是关于云计算之openstack-newton版搭建的主要内容,如果未能解决你的问题,请参考以下文章