数据库
安装软件包
#yum install mariadb mariadb-server python2-PyMySQL -y
修改配置文件
#vim /etc/my.cnf.d/openstack.cnf
[mysqld] bind-address = 192.168.100.147
default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
完成安装启动服务
#systemctl restart mariadb.service
#systemctl enable mariadb.service
初始化数据库
#mysql_secure_installation
Enter current password for root (enter for none): 回车
Set root password? [Y/n] y
New password: 000000
Re-enter new password:
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
消息队列 Rabbitmq
安装软件包
#yum install rabbitmq-server -y
启动消息队列服务并将其配置为在系统引导时启动:
#systemctl enable rabbitmq-server.service
#systemctl restart rabbitmq-server.service
#systemctl status rabbitmq-server.service
添加用户:openstack
#rabbitmqctl add_user openstack 000000
允许用户的配置、写入和读取访问权限:openstack
#rabbitmqctl set_permissions openstack ".*" ".*" ".*"
查看rebbitmq的监听端口:5672
#yum install net‐tools -y
#netstat -antp | grep 5672
缓存服务(Memcached)
安装软件包
#yum install memcached python-memcached -y
修改配置文件
#vim **/etc/sysconfig/memcached**
OPTIONS=”-l 127.0.0.1,::1,controller”
设置开机自启
#systemctl restart memcached.service
#systemctl enable memcached.service
#systemctl status memcached.service
Etcd 服务
安装软件包
#yum install etcd -y
修改配置文件
#vim /etc/etcd/etcd.conf
#[Member]
ETCD_DATA_DIR=”/var/lib/etcd/default.etcd”
ETCD_LISTEN_PEER_URLS=”http://192.168.100.147:2380“
ETCD_LISTEN_CLIENT_URLS=”http://192.168.100.147:2379“
ETCD_NAME=”controller”
#[Clustering]
ETCD_INITIAL_ADVERTISE_PEER_URLS=”http://192.168.100.147:2380” ETCD_ADVERTISE_CLIENT_URLS=”http://192.168.100.147:2379” ETCD_INITIAL_CLUSTER=”controller=http://192.168.100.147:2380″
ETCD_INITIAL_CLUSTER_TOKEN=”etcd-cluster-01″
ETCD_INITIAL_CLUSTER_STATE=”new”
完成安装设置开机自启
#systemctl enable etcd
#systemctl restart etcd
#systemctl status etcd
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/279628.html