搭建本地yum源(http方式) on Red Hat Enterprise Linux Server
2016-04-27 09:40
896 查看
1)install httpd
yum install httpd
2) start httpd service
start service httpd
3)config file
/etc/httpd/conf/httpd.conf
care the line
DocumentRoot"/var/www/html" which is the config root to start http
4)verify the http work or not
http://localhost:80 or
http:httpserverip:80
if the site can't be access fromother client , please trun off the firewall with
service iptables stop
5) install createrepo
yum install createrepo
6) create the dir and copy the rpmsto the corresponding dir which you create just now
mkdir -p /var/www/html/localYum
cp rpms-pakages /var/www/html/localYum
7)create respon index and info file
createrepo /var/www/html/localYum
8) in your client on which you wantto use the local yum you just create
vim /etc/yum.repos.d/rhel-source.repo
to add the line
[CDGlocal]
name=RHEL
baseurl=http://10.200.114.144//localYum
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
okay ,it's done ,you can yum cleanand yum update
yun install pkgs which the local yumrespon own
if you have any doubt you can referthe below reference which is detail for the process and how to fix the errorsyou may meet .
yum install httpd
2) start httpd service
start service httpd
3)config file
/etc/httpd/conf/httpd.conf
care the line
DocumentRoot"/var/www/html" which is the config root to start http
4)verify the http work or not
http://localhost:80 or
http:httpserverip:80
if the site can't be access fromother client , please trun off the firewall with
service iptables stop
5) install createrepo
yum install createrepo
6) create the dir and copy the rpmsto the corresponding dir which you create just now
mkdir -p /var/www/html/localYum
cp rpms-pakages /var/www/html/localYum
7)create respon index and info file
createrepo /var/www/html/localYum
8) in your client on which you wantto use the local yum you just create
vim /etc/yum.repos.d/rhel-source.repo
to add the line
[CDGlocal]
name=RHEL
baseurl=http://10.200.114.144//localYum
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
okay ,it's done ,you can yum cleanand yum update
yun install pkgs which the local yumrespon own
if you have any doubt you can referthe below reference which is detail for the process and how to fix the errorsyou may meet .
CentOS搭建本地yum源(http方式)
http://my.oschina.net/u/1461927/blog/372147相关文章推荐
- OSI七层与TCP/IP五层网络架构详解
- 谈谈HTTP协议中的短轮询、长轮询、长连接和短连接
- 网络存储
- 高级UIKit-09(TCPSocket发送文件、上传和下载) - 回读(IOS)
- Golang httptls 通信,带证书请求小实例
- 中断和网络驱动程序
- HttpURLConnection工具类 支持Gzip
- .Net开源网络爬虫Abot介绍
- Unity的数据序列化与反序列化用于网络传输
- 从贝叶斯方法谈到贝叶斯网络
- IPerf——网络测试工具介绍与源码解析(4)
- 网络干货
- 网络编程学习——线程(三)
- 传统企业为什么要做网络营销?
- 深入理解HTTP Session
- xUtils里使用HttpUtils时出现的无法访问HttpRequestBase的错误
- ionic加载网络图片资源的解决方法
- 网络编程
- 使用Fiddler 抓取Android的 HTTP协议包
- IOS学习 网络HTTP Get和Post请求与登录界面加密 涉及按钮边框圆角与颜色设置