CentOS7.2怎么部署OpenStack环境-创新互联
这篇文章主要讲解了“CentOS7.2怎么部署OpenStack环境”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“CentOS7.2怎么部署OpenStack环境”吧!
创新互联专业为企业提供哈巴河网站建设、哈巴河做网站、哈巴河网站设计、哈巴河网站制作等企业网站建设、网页设计与制作、哈巴河企业网站模板建站服务,10年哈巴河做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。1、系统环境
# uname -r
3.10.0-327.el7.x86_64
# cat /etc/redhat-release
centos linux release 7.2.1511 (core)
2、服务器部署
3、基础环境准备
3.1、配置hosts
# cat /etc/hosts 192.168.56.108 controller 192.168.56.109 compute
3.2、配置时间同步
[root@controller ~]# yum install -y ntp [root@controller ~]# vim /etc/ntp.conf 15 restrict -6 ::1 16 restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap 27 restrict 0.centos.pool.ntp.org nomodify notrap noquery 28 restrict 1.centos.pool.ntp.org nomodify notrap noquery 29 restrict 2.centos.pool.ntp.org nomodify notrap noquery 30 restrict 3.centos.pool.ntp.org nomodify notrap noquery 31 server 127.127.1.0 32 fudge 127.127.1.0 stratum 10 [root@controller ~]# systemctl enable ntpd [root@controller ~]# systemctl start ntpd
在控制节点和计算节点配置定时任务
[root@compute ~]# crontab -l */5 * * * * /usr/sbin/ntpdate 192.168.56.108 >/dev/null 2>&1
3.3、关闭防火墙
# systemctl stop firewalld
3.4、关闭selinux
# selinux=disabled /etc/selinux/config //需要重启
3.5、安装基础包
[root@controller ~]# yum install -yhttp://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm [root@controller ~]# yum install -y centos-release-openstack-liberty [root@controller ~]# yum install -y python-openstackclient
3.6、安装mysql
[root@controller ~]# yum install -y mariadb mariadb-server mysql-python [root@controller ~]# vim /etc/my.cnf
在mysqld模块添加如下几行:
default-storage-engine = innodb innodb_file_per_table collation-server = utf8_general_ci init-connect = 'set names utf8' character-set-server = utf8 [root@controller ~]# systemctl enable mariadb.service [root@controller ~]# systemctl start mariadb.service [root@controller ~]# mysql_secure_installation
3.7、安装rabbitmq
[root@controller ~]# yum install -y rabbitmq-server [root@controller ~]# systemctl enable rabbitmq-server.service [root@controller ~]# systemctl start rabbitmq-server.service [root@controller ~]# rabbitmqctl add_user openstack openstack creating user "openstack" ... ...done. [root@controller ~]# rabbitmqctl set_permissions openstack '.*' '.*' '.*' setting permissions for user "openstack" in vhost "/"... ...done. [root@controller ~]# rabbitmqctl set_user_tags openstack administrator [root@controller ~]# rabbitmq-plugins enable rabbitmq_management [root@controller ~]# systemctl restart rabbitmq-server.service
在浏览器中输入http://192.168.56.108:15672,默认账户和密码为guest
登录后将前面创建的openstack用户加入到admin中,结果如下图:
感谢各位的阅读,以上就是“CentOS7.2怎么部署OpenStack环境”的内容了,经过本文的学习后,相信大家对CentOS7.2怎么部署OpenStack环境这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联网站建设公司,,小编将为大家推送更多相关知识点的文章,欢迎关注!
网页题目:CentOS7.2怎么部署OpenStack环境-创新互联
文章来源:http://pwwzsj.com/article/dsppos.html