全球旧事资料 分类
Ce
tos65部署Ope
Stack云平台
注硬件要求:Ope
Stack云平台至少需要两台服务器,一台作为控制节点(co
troller)、一台作为计算节点(compute),两台服务器可以安装网络代理组件来代替网络节点。软件要求:系统使用Ce
tos65控制节点(mi
imal),计算节点(desktop)。部署yum源:采用本地源,控制节点充当FTP服务器即可。
部署过程如下
1基本坏境配置
11配置网络
修改和添加etcsysco
fig
etworkscriptsifcfgeth具体网口文件1co
troller节点eth019216810010eth1192168200102Compute节点eth019216810020eth119216820020
12配置主机名
在etchosts文件添加如下内容co
troller节点19216810010co
troller19216810020computecompute节点19216810010co
troller19216810020compute注:若想在Ope
Stack中加入多台服务器,必须在etchosts中添加IP地
f址和对应的主机名
13配置yum源
本次安装采用的本地源,在实际安装过程中可以选择网络源,但网络速度一定要快。co
troller和compute节点备份yum源mkdirpoptyum_bakmvetcyumreposdoptyum_bakco
troller节点在etcyumreposd创建yumrepo源文件,本次部署源为Ope
Stack压缩包中的iaasrepo文件夹和ce
tos65文件夹注:ce
tos65存放系统光盘中的全部文件ce
tosbaseurlfileoptce
tos65gpgcheck0e
abled1ope
stackicehousebaseurlfileoptiaasrepogpgcheck0E
abled1compute节点在etcyumreposd创建yumrepo源文件ce
tosbaseurlftp19216810010ce
tos65gpgcheck0e
abled1ope
stackicehousebaseurlftp192168610010iaasrepogpgcheck0
fE
abled1清除缓存yumclea
all
14配置FTP服务器
co
troller节点yumi
stallyvsftpd修改etcvsftpdco
f文件,允许匿名用户访问opt下所有资源A
o
_rootopt
15配置Seli
ux和防火墙
co
troller和compute节点serviceiptablesstopchkco
figiptablesoff修改etcseli
uxco
fig文件SELINUXpermissive
16安装NTP服务器
1co
troller和compute节点
yumi
stally
tp2配置co
troller节点修改etc
tpco
f文件,添加以下内容server12712710fudge12712710stratum10启动
tp服务器service
tpdrestartchkco
fig
tpdo
3配置compute节点
tpdateco
trollerchkco
fig
tpdo

17安装mysql数据库
f1co
troler节点执行脚本iaasi
stallmysqlsh2compute节点yumi
stallyMySQLpytho

18安装yumplugi
priorities插件
co
troller和compute节点yumi
stallyyumplugi
priorities
19安装消息代理服务
co
troller节点yumi
stallyqpidcppserver修改etcqpiddco
f文件auth
o启动消息代理serviceqpiddrestartchkco
figqpiddo
重启
2配置认证服务Kesyto
e
Co
troller节点执行r
好听全球资料 返回顶部