共享服务部署

前期准备
第一步:下载
yum install ntp -y
所以机器做个时间同步
vim /etc/ntp.conf
都删除然后编辑
server 127.127.1.0
restrict 127.0.0.1 查看cat /etc/hosts
restrict 192.168.126.6 mask 255.255.255.0
第四步:重启
systemctl restart ntpd
共享端
第一步:下载
yum install ntpdate -y
第二步 :同步时间
ntpdate 192.168.126.6
第三步:查看
date

编写计划任务
crontab -e
*/5 * * * * /usr/sbin/ntpdate 192.168.126.6

域名解析
  vim /etc/resolv.conf

 
(3)zxw6:添加一个openstack的用户,并设密码为admin。并设置权限和成为管理员

node1:
rabbitmqctl add_user openstack admin
rabbitmqctl set_permissions openstack ".*" ".*" ".*"
rabbitmqctl set_user_tags openstack administrator
(1)条件:准备3台linux系统,确保配置好源,及epel源
 
(2)三台机器能够静态解析彼此
cat /etc/hosts
192.168.126.6 zxw6
192.168.126.7 zxw7
192.168.126.8 zxw8
192.168.126.9 zxw9


(3)设置可以无密钥登陆到所有主机
ssh-keygen
ssh-copy-id 192.168.126.7


第一步:下载安装openstack的客户端
[root@zxw6 ~]# yum install python-openstackclient -y

第二步:下载openstack的安全软件
[root@zxw6 ~]# yum install openstack-selinux -y

第三步:安装数据库
[root@zxw6 ~]# yum install mariadb mariadb-server python2-PyMySQL -y

第四步:添加openstack的配置文件到数据库
[root@zxw6 ~]# vim /etc/my.cnf.d/openstack.cnf

[mysqld]
bind-address = 192.168.126.6 监听地址

default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096 最大的链接数
collation-server = utf8_general_ci
character-set-server = utf8
~

第五步:启动数据库并写入开机自启
[root@zxw6 ~]# systemctl start mariadb.service
[root@zxw6 ~]# systemctl enable mariadb.service

第六步:初始化并给与密码
[root@zxw6 ~]# mysql_secure_installation


第七步:下载rabbitmq
[root@zxw6 ~]# yum install rabbitmq-server -y

第八步:启动消息队列服务并给与开机自启
[root@zxw6 ~]# systemctl start rabbitmq-server.service
[root@zxw6 ~]# systemctl enable rabbitmq-server.service


第九步:在rabbitmq创建openstack的用户
[root@zxw6 ~]# rabbitmqctl add_user openstack zxw6


第十步:给与openstack的所有权限
[root@zxw6 ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*"


第十一步:把openstack设置为管理员
[root@zxw6 ~]# rabbitmqctl set_user_tags openstack administrator


第十二步:下载memcached
[root@zxw6 ~]# yum install memcached python-memcached -y


第十三步:修改memcached配置文件
[root@zxw6 ~]# vim /etc/sysconfig/memcached

PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-l 127.0.0.1,::1,zxw6" 解析地址


第十四步:启动memcached并设置为开机自启
[root@zxw6 ~]# systemctl start memcached.service
[root@zxw6 ~]# systemctl enable memcached.service

 

 

猜你喜欢

转载自www.cnblogs.com/itzhao/p/11330667.html
今日推荐