OpenStack O configuration version and using (ii)

Deployment mysql, memcache, RabbitMQ

Install and configure each node yum source (source epel be deleted)

[root@linux-host1 ~]# mv /etc/yum.repo.d/* /tmp/
[root@linux-host1 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@linux-host1 ~]# yum -y install centos-release-openstack-ocata
[root@linux-host1 ~]# yum install python-openstackclient openstack-selinux

Mysql configuration services

Installation mariadb

[root@linux-host4 ~]# yum install -y mariadb-server

Mariadb modify configuration files

[root@linux-host4 ~]# 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

[root@linux-host4 ~]# 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

Start Service

[root@linux-host4 ~]# systemctl start mariadb
[root@linux-host4 ~]# systemctl enable mariadb

Security Hardening

[root@linux-host4 ~]# mysql_secure_installation

Configuring memcache service

Install memcache

[root@linux-host4 ~]# yum -y install memcached

Change profile

[root@linux-host4 ~]# vim /etc/sysconfig/memcached
#监听端口
PORT="11211"
USER="memcached"
#最大使用内存
MAXCONN="1024"
CACHESIZE="1024"
OPTIONS="-l 0.0.0.0,::1"

Start Service

[root@linux-host4 ~]# systemctl start memcached.service
[root@linux-host4 ~]# systemctl enable memcached.service

RabbitMQ service configuration

Configure host name resolution

[root@linux-host4 ~]# vim /etc/hosts
192.168.8.203 master

RabbitMQ installation

[root@linux-host4 ~]# yum -y install rabbitmq-server

Start Service

[root@linux-host4 ~]# systemctl enable rabbitmq-server.service
[root@linux-host4 ~]# systemctl start rabbitmq-server.service

Add rabbitMQ client user and password

[root@linux-host4 ~]# rabbitmqctl add_user openstack 123

Openstack gives users read and write permissions

[root@linux-host4 ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*"

Open a web plug-in rabbitMQ

[root@linux-host4 ~]# rabbitmq-plugins enable rabbitmq_management

View plug-in

[root@linux-host4 ~]# rabbitmq-plugins list

Access browser

http:192.168.8.230:15672

OpenStack O configuration version and using (ii)
OpenStack O configuration version and using (ii)

Guess you like

Origin blog.51cto.com/14163901/2413524