zoukankan      html  css  js  c++  java
  • centos6搭建本地openstack软件源

    1、把相关软件包所有下载到本地机器 

    wget -np -nH –cut-dirs=1 -r -c -L –exclude-directories=repodata –accept=rpm,gz,xml http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/ -P /opt/epel6

    wget參数介绍

    -r,–recursive 下载整个站点、文件夹
    -nH, –no-host-directories 不创建主机文件夹
    -P, –directory-prefix=PREFIX 将文件保存到文件夹PREFIX/…
    –cut-dirs=NUMBER 忽略 NUMBER层远程文件夹
    -k, –convert-links 转换非相对链接为相对链接
    -I, –include-directories=LIST 同意文件夹的列表
    -X, –exclude-directories=LIST 不被包括文件夹的列表
    -np, –no-parent 不要追溯到父文件夹
    -A, –accept=LIST 分号分隔的被接受扩展名的列表
    -R, –reject=LIST 分号分隔的不被接受的扩展名的列表
    -c, –continue 接着下载没下载完的文件
    -L, –relative 只跟踪相对链接

    2、创建repodata信息

    createrepo -p -d -o /opt/epel6 /opt/epel6


     3、配置httpserver。将根文件夹指到/opt/epel6

    yum install -y httpd

    rm -rf /var/www/html
    ln -s /opt/epel6 /var/www/html
    service httpd start


    4. 创建rdo-release.repo文件
    [openstack-icehouse]
    name=OpenStack Icehouse Repository
    baseurl=http://10.0.0.137/epel6/
    enabled=1
    gpgcheck=0


    5、把生成的rdo-release.repo文件传到client的/etc/yum.repos.d/文件夹下,就可以

  • 相关阅读:
    ElasticSearch 2 (1)
    Vagrant (2) —— 基本安装与配置(下)
    Vagrant (1) —— 基本安装与配置(上)
    Vagrant (3) —— 复制/备份Vagrant Box
    vue中$forceUpdate的使用
    vue+ElementUi 选择框选中之后翻页进行状态保持及默认选中
    loonflow 工单系统
    一些后端知识
    前端学习计划
    async/await函数的执行顺序的理解
  • 原文地址:https://www.cnblogs.com/mfrbuaa/p/5075570.html
Copyright © 2011-2022 走看看