搭建本地yum源(http方式) on Red Hat Enterprise Linux Server
来源:互联网 发布:如何查看知乎注册时间 编辑:程序博客网 时间:2024/06/06 01:45
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 .
CentOS搭建本地yum源(http方式)
http://my.oschina.net/u/1461927/blog/372147
- 搭建本地yum源(http方式) on Red Hat Enterprise Linux Server
- 为Red Hat Enterprise Linux Server release 5.5搭建本地YUM源
- SQL Server on Red Hat Enterprise Linux
- Red Hat 7.3 基于本地http搭建YUM
- Red Hat Enterprise Linux Server release 6.4 x64 安装 yum 源
- RHEL(Red Hat Enterprise Linux)配置YUM源
- RHEL(Red Hat Enterprise Linux)配置YUM源
- Red Hat Enterprise Linux 换yum源问题
- How To Install And Configure Ganglia On Red Hat Enterprise Linux 5---YUM 安装篇
- Top 10 “Yum” installables to be productive as a developer on Red Hat Enterprise Linux
- Red Hat Linux 6.5配置本地yum源
- Red Hat Linux 7.2配置本地yum源
- Installing Oracle9i 32-bit on Red Hat Enterprise Linux Advanced Server 4, 3, 2.1 and Red Hat
- Red Hat Enterprise Linux Server release 6.0 --YUM 创库配置
- red hat enterprise linux
- Red Hat Enterprise Linux AS release 4 配置YUM(rhel as 4 安装yum)
- Deploying Django with Apache and mod_wsgi Based on Red Hat Enterprise Linux Server
- Red Hat Enterprise Linux 5 通过yum update自动升级
- Troubleshooting 'library cache: mutex X' waits. (文档 ID 1357946.1)
- Android EditText的inputType属性值
- hdu-1174 爆头(计算几何)
- JS的跨域请求
- struts2中action接收参数的方法
- 搭建本地yum源(http方式) on Red Hat Enterprise Linux Server
- CNN入门之cnn架构和cnn卷积、采样
- UNPv2第六章:System V 消息队列
- 屏幕设置
- 开发Vue树形组件
- 与孩子一起学编程--Ubuntu环境下
- mysql show status
- VS2015使用小技巧 让VS的代码编辑器显示行号
- 关于 redis、memcache、mongoDB 的对比