OpenStack单节点部署

实验环境:

系统IP地址
centos7.5192.168.75.10

1、确保本机能ping通外网,仓库可用

[root@localhost ~]# ping www.baidu.com

2、关闭防火墙和selinux

[root@localhost ~]# systemctl stop firewalld.service 
[root@localhost ~]# systemctl disable firewalld.service 
[root@localhost ~]# vim /etc/selinux/config 

#进入后按切换为编辑模式
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing      \\将这里的enforcing改为disanled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

#按esc切换到末行模式输入:wq(保存并退出)

[root@localhost ~]# setenforce 0

3、关闭Network服务

[root@localhost ~]# systemctl stop NetworkManager
[root@localhost ~]# systemctl enable NetworkManager

4、建立元数据缓存

[root@localhost ~]# yum makecache 

5、更新仓库

[root@localhost ~]# yum update -y

6、重启系统

[root@localhost ~]# reboot

7、安装时间同步服务,将时间同步到计划任务中

[root@localhost ~]# yum -y install ntpdate
[root@localhost ~]# ntpdate ntp.aliyun.com
[root@localhost ~]# crontab -e

写入计划任务: */2 * * * * /usr/sbin/ntpdate ntp.aliyun.com >> /var/log/ntpdate.log
:wq

[root@localhost ~]# crontab -l
[root@localhost ~]# systemctl restart crond
[root@localhost ~]# systemctl enable crond

8、下载OpenStack服务

[root@localhost ~]# yum -y install centos-release-openstack-train.noarch
[root@localhost ~]# yum -y install openstack-packstack

9、安装OpenStack服务

[root@localhost ~]# packstack --allinone

 

 10、查看keystonerc_admin文件,登录OpenStack

[root@localhost ~]# ls
anaconda-ks.cfg       keystonerc_admin  packstack-answers-20230423-120752.txt  模板  图片  下载  桌面
initial-setup-ks.cfg  keystonerc_demo   公共                                   视频  文档  音乐
[root@localhost ~]# cat keystonerc_admin 
unset OS_SERVICE_TOKEN
    export OS_USERNAME=admin    \\登录用户
    export OS_PASSWORD='c30b6763416a49f9'  \\登录密码
    export OS_REGION_NAME=RegionOne
    export OS_AUTH_URL=http://192.168.75.10:5000/v3   
    export PS1='[\u@\h \W(keystone_admin)]\$ '
    
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3

11、IP访问OpenStack管理界面 

http://192.168.75.10

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值