Centos7 安装kilo-2 controller(ntp mariadb rabbitmq)
2015-09-08 14:49
609 查看
系统配置
hostnamehostnamectl --static set-hostname controller
hosts
cat >> /etc/hosts << OFF # controller 10.0.0.11 controller # network 10.0.0.21 network # compute1 10.0.0.31 compute1 OFF
安装软件源
yum -y install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm yum -y install http://rdo.fedorapeople.org/openstack-kilo/rdo-release-kilo.rpm[/code]
升级系统软件包(升级完重启查看系统配置)yum upgrade reboot #hostname controller cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core)
安装openstack-selinuxyum -y install openstack-selinuxntp-server
安装软件包yum -y install ntp
修改配置文件sed -i 's/server 0.centos.pool.ntp.org iburst/#server 0.centos.pool.ntp.org iburst/g' /etc/ntp.conf sed -i 's/server 1.centos.pool.ntp.org iburst/#server 1.centos.pool.ntp.org iburst/g' /etc/ntp.conf sed -i 's/server 2.centos.pool.ntp.org iburst/#server 2.centos.pool.ntp.org iburst/g' /etc/ntp.conf sed -i 's/server 3.centos.pool.ntp.org iburst/#server 3.centos.pool.ntp.org iburst/g' /etc/ntp.conf echo "server 127.127.1.0" >>/etc/ntp.conf echo "fudge 127.127.1.0 stratum 10" >>/etc/ntp.conf
启动ntp并设置开机启动systemctl enable ntpd.service systemctl restart ntpd.servicemariadb
安装软件包yum -y install mariadb mariadb-server MySQL-python
修改配置文件sed -i "/\[mysqld\]$/a character-set-server = utf8" /etc/my.cnf sed -i "/\[mysqld\]$/a init-connect = 'SET NAMES utf8'" /etc/my.cnf sed -i "/\[mysqld\]$/a collation-server = utf8_general_ci" /etc/my.cnf sed -i "/\[mysqld\]$/a innodb_file_per_table" /etc/my.cnf sed -i "/\[mysqld\]$/a default-storage-engine = innodb" /etc/my.cnf sed -i "/\[mysqld\]$/a bind-address = 10.0.0.11" /etc/my.cnf sed -i "/\[mysqld\]$/a max_connections = 1000" /etc/my.cnf
启动mariadb并设置开机启动systemctl enable mariadb.service systemctl restart mariadb.service
配置mariadb(安全配置)mysql_secure_installationrabbitmq-server
安装软件包yum -y install rabbitmq-server
启动rabbitmq-server并设置开机启动systemctl enable rabbitmq-server.service systemctl restart rabbitmq-server.service
创建openstack用户rabbitmqctl add_user openstack RABBIT_PASS
给openstack用户设置权限rabbitmqctl set_permissions openstack ".*" ".*" ".*"
相关文章推荐
- HHvm建站环境搭建方法:Nginx,Mariadb,hhvm及lnmp/lamp安装部署 | 免费资源部落
- MariaDB 5.5.44 for CentOS7 简单安装
- MariaDB 10 Slave Crash-Safe需转为GTID复制模式
- MariaDB 10 Slave Crash-Safe需转为GTID复制模式
- mariadb源码编译
- 中文注释 MariaDB my.cnf 大型服务器配置模板
- mariadb安装与使用
- centos7环境下mariadb的主从复制
- 源码安装gcc-5.10和MariaDB-10.0.21
- mariadb安装手顺
- mariadb数据库
- CentOS 7.0安装配置LAMP服务器(Apache+PHP+MariaDB)
- centos7安装mariadb10.0.19
- Linux有问必答:如何检查MariaDB服务端版本
- MySQL和mariadb的区别
- Mariadb 在centos 7下的安装配置
- Error: Cannot retrieve repository metadata (repomd.xml) for repository: mariadb. Please verify its p
- mariadb 设置root密码
- MySQL/MariaDB数据库主从复制
- Centos6.4 yum安装MariaDB5.5.45