环境:
系统版本:CentOS-7.0
控制节点:192.168.100.120
计算节点:192.168.100.121
1.同步时间
[[email protected] ~]# hostnamectl set-hostname openstack [[email protected] ~]# su - [[email protected] ~]# ntpdate pool.ntp.org
2.添加mitaka源
[[email protected] ~]# wget http://repos.fedorapeople.org/repos/openstack/openstack-mitaka/rdo-release-mitaka-3.noarch.rpm [[email protected] ~]# yum install -y centos-release-openstack-mitaka [[email protected] ~]# yum install -y rdo-release-mitaka-3.noarch.rpm [[email protected] ~]# yum upgrade -y
2.添加hosts解析
[[email protected] ~]# echo -e "192.168.100.120\t$(uname -n)" >> /etc/hosts [[email protected] ~]# tail -n 1 /etc/hosts 192.168.254.140 openstack [[email protected] ~]# ping -c 2 openstack PING openstack (192.168.100.120) 56(84) bytes of data. 64 bytes from openstack (192.168.100.120): icmp_seq=1 ttl=64 time=0.035 ms 64 bytes from openstack (192.168.100.120): icmp_seq=2 ttl=64 time=0.052 ms --- openstack ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.035/0.043/0.052/0.010 ms
3.安装openstack client
[[email protected]~]# yum install python-openstackclient openstack-selinux
4.安装MariaDB
[[email protected] ~]# yum -y install mariadb-devel mariadb mariadb-server python2-PyMySQL [[email protected] ~]# cp /usr/share/mariadb/my-medium.cnf /etc/my.cnf [[email protected] ~]# vim /etc/my.cnf [client] default-character-set=utf8 [mysqld] default-storage-engine = innodb innodb_file_per_table collation-server = utf8_general_ci character-set-server = utf8 [[email protected] ~]# systemctl enable mariadb.service [[email protected] ~]# systemctl start mariadb.service [[email protected] ~]# systemctl status mariadb.service
6.安装rabbitmq
[[email protected] ~]# yum -y install http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.5/rabbitmq-server-3.5.5-3.noarch.rpm [[email protected] ~]# cp /usr/share/doc/rabbitmq-server-3.5.5/rabbitmq.config.example /etc/rabbitmq/rabbitmq.config [[email protected] ~]# vim /etc/rabbitmq/rabbitmq.config 17: {tcp_listeners, [5672]}, 22: {tcp_listeners, [{"0.0.0.0", 5672}]} [[email protected] ~]# systemctl enable rabbitmq-server.service [[email protected] ~]# systemctl start rabbitmq-server.service [[email protected] ~]# systemctl status rabbitmq-server.service [[email protected] ~]# netstat -antup|egrep ‘15672|25672‘|grep LISTEN tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 17111/beam tcp 0 0 0.0.0.0:15672 0.0.0.0:* LISTEN 17111/beam [[email protected] ~]# rabbitmq-plugins enable rabbitmq_management The following plugins have been enabled: mochiweb webmachine rabbitmq_web_dispatch amqp_client rabbitmq_management_agent rabbitmq_management Applying plugin configuration to [email protected] started 6 plugins. [[email protected] ~]# rabbitmqctl add_user openstack 11111111 Creating user "openstack" ... [[email protected] ~]# rabbitmqctl set_user_tags openstack administrator Setting tags for user "openstack" to [administrator] ... [[email protected] ~]# rabbitmqctl set_permissions -p / openstack ".*" ".*" ".*" Setting permissions for user "openstack" in vhost "/" ...
7.安装memcached
[[email protected] ~]# yum -y install memcached python-memcached [[email protected] ~]# systemctl enable memcached.service [[email protected] ~]# systemctl start memcached.service [[email protected] ~]# systemctl status memcached.service [[email protected] ~]# netstat -antup|grep ‘11211‘|grep LISTEN tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 4106/memcached tcp6 0 0 :::11211 :::* LISTEN 4106/memcached
时间: 2025-01-16 04:39:18