httpd 的文件访问路径

曹宇 2014-05-22 08:27:07
我需要配置yum本地库,集群之间需要使用httpd来通信

可是我在yum客户端的配置文件中如何配置路径呢
如 http://xxx.xxx.xxx.xxx/aaa/bbb/ccc.txt
我不知道httpd的根路径是哪里也.
httpd我没有部署应用 就是用的默认的

请问这样的情况如何做 多谢啦



或者说求大神帮忙看一下第五步的意思(我是从文档中copy的 这个文档中告诉了我配置本地yum库的方法,可是第五步看不懂)
我不明白第五步那里的路径为什么那样写,或者说我应该怎么写,...求大神 万分感谢...

1. Mount the RHEL/CentOS DVD on a machine that will act as the local yum repository

2. Install a webserver on that machine (e.g. httpd), making sure that HTTP traffic can reach this machine

3. Install the following packages on the machine:
yum-utils
createrepo

4. Go to the directory where the DVD is mounted and run the following command:
$ createrepo ./

5. Create a repo file on each host with a descriptive filename in the /etc/yum.repos.d/ directory of each host
(for example, CentOS-6.1.repo) with the following contents:

[CentOS-6.1]
name=CentOS 6.1 local repo for OS RPMS
baseurl=http://172.254.51.221/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://172.254.51.221/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-6

6. Validate that you can access the local yum repos by running the following command:

Yum list

You can repeat the above steps for other software. If your local repos don't have any particular rpm,
download it from a trusted source on the internet, copy it to your local repo directory and rerun the
createrepo step.
...全文
164 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧