OpenStack O版配置以及使用
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OpenStack O版配置以及使用相关的知识,希望对你有一定的参考价值。
部署mysql,memcache,RabbitMQ每个节点上安装并配置yum源(需删除epel源)
[[email protected] ~]# mv /etc/yum.repo.d/* /tmp/
[[email protected] ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[[email protected] ~]# yum -y install centos-release-openstack-ocata
[[email protected] ~]# yum install python-openstackclient openstack-selinux
配置mysql服务
安装mariadb
[[email protected] ~]# yum install -y mariadb-server
修改mariadb配置文件
[[email protected] ~]# vim /etc/my.cnf
[client-server]
[mysqld]
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
innodb_file_per_table=1
server_id=1
skip_name_resolve
[client]
port=3306
socket=/var/lib/mysql/mysql.sock
!includedir /etc/my.cnf.d
[[email protected] ~]# vim /etc/my.cnf.d/openstack.cnf
[mysqld]
bind-address = 0.0.0.0 #监听在本机的所有IP地址上
default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
启动服务
[[email protected] ~]# systemctl start mariadb
[[email protected] ~]# systemctl enable mariadb
安全加固
[[email protected] ~]# mysql_secure_installation
配置memcache服务
安装memcache
[[email protected] ~]# yum -y install memcached
更改配置文件
[[email protected] ~]# vim /etc/sysconfig/memcached
#监听端口
PORT="11211"
USER="memcached"
#最大使用内存
MAXCONN="1024"
CACHESIZE="1024"
OPTIONS="-l 0.0.0.0,::1"
启动服务
[[email protected] ~]# systemctl start memcached.service
[[email protected] ~]# systemctl enable memcached.service
配置RabbitMQ服务
配置主机名解析
[[email protected] ~]# vim /etc/hosts
192.168.8.203 master
安装RabbitMQ
[[email protected] ~]# yum -y install rabbitmq-server
启动服务
[[email protected] ~]# systemctl enable rabbitmq-server.service
[[email protected] ~]# systemctl start rabbitmq-server.service
添加 rabbitMQ 客户端用户并设置密码
[[email protected] ~]# rabbitmqctl add_user openstack 123
赋予 openstack 用户读写权限
[[email protected] ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*"
打开 rabbitMQ 的 web 插件
[[email protected] ~]# rabbitmq-plugins enable rabbitmq_management
查看插件
[[email protected] ~]# rabbitmq-plugins list
用浏览器访问
http:192.168.8.230:15672
以上是关于OpenStack O版配置以及使用的主要内容,如果未能解决你的问题,请参考以下文章