IT星球论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 269|回复: 0

制作L版openstack本地yum源方法

[复制链接]

1997

主题

1

好友

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

优秀会员 助人为乐 辛勤工作 技术精英 多才多艺 优秀班竹 灌水天才 星球管理 宣传大使 灌水之王 财富勋章 版主勋章 动漫勋章 勤奋会员 论坛精英 PS高手 心 8 闪游皮肤 双鱼座 8★8➹ 志愿者 乖

发表于 2016-1-11 11:19:05 |显示全部楼层
制作L版openstack本地yum源方法
作者:【吴业亮】云计算开发工程师  
博客:http://blog.csdn.net/wylfengyujiancheng
1、环境准备:
操作系统:Centos7.1
虚拟机或物理机一台:建议2vcpu+ 2G+内存 10G+硬盘
确保系统能够上网
2、配置缓存
修改/etc/yum.conf
[main]cachedir=/var/cache/yum/$basearch/$releaseverkeepcache=1 #修改为1,保存缓存debuglevel=2logfile=/var/log/yum.logexactarch=1obsoletes=1gpgcheck=1plugins=1installonly_limit=5bugtracker_url=http://bugs.CentOS.org/set_project.PHP?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yumdistroverpkg=centos-release3、执行安装,时间取决于网速,请耐心等待。
yum  -y updateyum  -y install chronyyum  -y install http://dl.fedoraproject.org/pub/ ... e-7-5.noarch.rpmyum  -y install centos-release-openstack-libertyyum  -y install https://rdoproject.org/repos/ope ... ease-liberty.rpmyum  -y upgradeyum  -y install Python-openstackclientyum  -y install openstack-selinuxyum  -y install mariadb mariadb-server python2-PyMySQLyum  -y install MongoDB-server mongodbyum  -y install rabbitmq-serveryum  -y install openstack-keystone httpd mod_wsgi   memcached python-memcachedyum  -y install openstack-glance python-glance python-glanceclientyum  -y install openstack-nova-api openstack-nova-cert   openstack-nova-conductor openstack-nova-console   openstack-nova-novncproxy openstack-nova-scheduler   python-novaclient yum  -y install openstack-nova-compute sysfsutils yum  -y install openstack-neutron openstack-neutron-ml2   openstack-neutron-linuxbridge python-neutronclientyum  -y install openstack-neutron openstack-neutron-ml2   openstack-neutron-linuxbridge python-neutronclient yum  -y install openstack-neutron openstack-neutron-linuxbridgeyum  -y install openstack-dashboard httpd mod_wsgi   memcached python-memcachedyum  -y install openstack-cinder python-cinderclientyum  -y install lvm2yum  -y install openstack-cinder targetcli python-oslo-policyyum  -y install openstack-swift-proxy python-swiftclient   python-keystone-auth-token python-keystonemiddleware   memcachedyum  -y install xfsprogs rsyncyum  -y install openstack-swift-account openstack-swift-container   openstack-swift-objectyum  -y install openstack-heat-api openstack-heat-api-cfn   openstack-heat-engine python-heatclientyum  -y install openstack-ceilometer-api   openstack-ceilometer-collector openstack-ceilometer-notification   openstack-ceilometer-central openstack-ceilometer-alarm   python-ceilometerclientyum  -y install openstack-ceilometer-compute python-ceilometerclient python-pecanyum  -y install  createrepo4、创建目录
# mkdir /opt/CentOS7.0_liberty_rpm

5、将yum缓存的rpm包拷贝到/opt/CentOS7.0_liberty_rpm
find /var/cache/yum/x86_64/ -name *.rpm -exec cp -a {} /opt/CentOS7.0_liberty_rpm \;

6、生成本地yum源
# createrepo /opt/CentOS7.0_liberty_rpm
  • 1
7、将/opt/CentOS7.0_liberty_rpm打包拷贝到需要安装的机器上配置本地源即可使用

http://blog.csdn.net/wylfengyujiancheng/article/details/50008325

制作L版openstack本地yum源方法


该会员没有填写今日想说内容.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

回顶部