Openstack Ocata 公共服务端
mysql 安装:
yum install mariadb mariadb-server
mysql 安装过程省略
rabbit-server 安装包:
# rabbit-server 安装包:
yum install rabbitmq-server -y
# 启动消息队列服务并将其配置为随系统启动:
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service
# 开启管理插件(web监听端口15672):
rabbitmq-plugins list
rabbitmq-plugins enable rabbitmq_management
# 添加 openstack 用户:
rabbitmqctl add_user openstack 123456
Creating user "openstack" ...
*** 用合适的密码替换 RABBIT_DBPASS。
# 设置管理员账号(admin | 123456 根据需要自行修改):
*** 不设置admin用户也可以, 默认guest:guest 也是管理员用户.
rabbitmqctl add_user admin 123456
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
rabbitmqctl set_user_tags admin administrator
# 给``openstack``用户配置写和读权限:
rabbitmqctl set_permissions openstack ".*" ".*" ".*"
Setting permissions for user "openstack" in vhost "/" ...
# 日志存放:
tail -f /var/log/rabbitmq/rabbit@db1.log
# 访问rabbitmq管理页面(实验虚拟机可以访问内网接口,物理环境访问公网IP地址,还有防火墙问题):
http://10.10.5.150:15672/
Memcached 安装:
# 安装软件包:
yum install memcached python-memcached -y
# 修改配置文件:
vim /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="65535"
CACHESIZE="128"
OPTIONS="-l 0.0.0.0,::1"
*** options这行可以加入控制节点IP.
# 启动Memcached服务,并且配置它随机启动。
systemctl enable memcached.service
systemctl start memcached.service
systemctl status memcached.service