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/文件夹下,就可以

  • 相关阅读:
    几个可以通过curl查询公网IP的站点
    CentOS安装 netdata 实时监视 Linux 系统性能
    Linux用ifconfig设置IP、掩码、网关
    Linux添加用户(user)到用户组(group)
    使用密码登陆Amazon EC2
    ulimit 命令详解
    linux命令行光标移动技巧
    阿里云epel源
    用scp实现多服务器文件分发
    2019年春季第二周作业
  • 原文地址:https://www.cnblogs.com/mfrbuaa/p/5075570.html
Copyright © 2011-2022 走看看