OpenStack O版配置以及使用(二)
2019-06-25 21:50
1716 查看
部署mysql,memcache,RabbitMQ
每个节点上安装并配置yum源(需删除epel源)
[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服务
安装mariadb
[root@linux-host4 ~]# yum install -y mariadb-server
修改mariadb配置文件
[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
启动服务
[root@linux-host4 ~]# systemctl start mariadb [root@linux-host4 ~]# systemctl enable mariadb
安全加固
[root@linux-host4 ~]# mysql_secure_installation
配置memcache服务
安装memcache
[root@linux-host4 ~]# yum -y install memcached
更改配置文件
[root@linux-host4 ~]# vim /etc/sysconfig/memcached #监听端口 PORT="11211" USER="memcached" #最大使用内存 MAXCONN="1024" CACHESIZE="1024" OPTIONS="-l 0.0.0.0,::1"
启动服务
[root@linux-host4 ~]# systemctl start memcached.service [root@linux-host4 ~]# systemctl enable memcached.service
配置RabbitMQ服务
配置主机名解析
[root@linux-host4 ~]# vim /etc/hosts 192.168.8.203 master
安装RabbitMQ
[root@linux-host4 ~]# yum -y install rabbitmq-server
启动服务
[root@linux-host4 ~]# systemctl enable rabbitmq-server.service [root@linux-host4 ~]# systemctl start rabbitmq-server.service
添加 rabbitMQ 客户端用户并设置密码
[root@linux-host4 ~]# rabbitmqctl add_user openstack 123
赋予 openstack 用户读写权限
[root@linux-host4 ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*"
打开 rabbitMQ 的 web 插件
[root@linux-host4 ~]# rabbitmq-plugins enable rabbitmq_management
查看插件
[root@linux-host4 ~]# rabbitmq-plugins list
用浏览器访问
http:192.168.8.230:15672
相关文章推荐
- 使用Log4j为项目配置日志输出应用详解以及示例演示的实现分析
- JBOSS配置以及初步使用
- VLC详细的使用说明以及配置说明综合示范实例精通VLC开发
- svn简单配置以及使用
- spring.net泛型的配置以及使用方法
- ISAPI_Rewrite的安装配置以及加载未知的原因/和无法使用的原因
- log4j的配置以及使用
- Quartz.net官方开发指南 第十课: 配置、资源使用以及SchedulerFactory
- 代理自动配置文件-pac文件格式以及使用方式
- hibernate3使用集成log4j的配置以及实现
- VSS6.0的安装及使用以及在Myeclipse配置
- Linux下Android NDK r7 环境配置以及配合eclipsex使用NDK
- CKEditor 的使用方法以及参数配置
- spring aop的使用(注解方式以及基于xml配置方式)
- mdev的使用以及mdev.conf的规则配置--busybox
- Quartz.net官方开发指南 第十课: 配置、资源使用以及SchedulerFactory
- FCKeditor是使用非常广泛的HTML编辑器,本文从 ASP.NET 的使用场景对 FCKeditor 与 FCKeditor.NET 的配置、功能扩展(如自定义文件上传子目录、自定义文件名、上传图片的后期处理等)、以及安全性进行初步的阐述。
- 使用 cacti 批量监控服务器以及其 PHP 运作环境配置
- 使用Eclipse3.2(MyEclipse)+ abator自动生成iBatis代码以及配置文件的方法
- Qt简介以及如何配置Qt使用VS2010进行开发