文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Yum server Howto/Configuration/Setup Thru Ftp srv

Yum server Howto/Configuration/Setup Thru Ftp srv

时间:2010-04-12  来源:zhangjiakouzf

Yum server Howto /
Configuration / Setup Thru Ftp service

( This is submitted by Mr. Rajendra
Raghuvanshi to ElectroMech and VGLUG on May 28 )

( Version 1.000 )

Configuring Yum Server in RHEL5 you
should have two RPM -
1.vsftpd->vsftpd-2.0.5.10.el5.i386.rpm


2.createrepo ->
createrepo-0.4.4-2.0.fc6.noarch.rpm

step
1.--------------------------------------

1. Run vsftpd rpm

rpm -ivh vsftpd-*.rpm


2. iptables -I INPUT -p tcp
--dport 20 -j ACCEPT
2. iptables -I INPUT -p tcp --dport 21 -j
ACCEPT
3. iptables -I INPUT -p udp --dport 21 -j ACCEPT
3.
iptables -I INPUT -p udp --dport 20 -j ACCEPT

4. This is for SELinux

setsebool allow_ftpd_full_access on

5. open the file :- vim
/etc/sysconfig/iptables-config and modify below mention
line

IPTABLES_MODULES="ip_conntrack_netbios_ns
ip_conntrack_ftp"

and now your ftp server is ready to
take the responsibilty of yum server.

step
2.--------------------------------------

Copy all rpm at 
/var/ftp/pub   in respective folder that you want to access
from yum repository and If you have any  default repodata/
directories it's time to re-create them using the "createrepo"
command. Now this command doesn't comes by default I guess so we need
to install it's rpm

****1.rpm -ivh
createrepo-0.4.4-2.rpm
2.cd
/var/ftp/pub
3.createrepo -V .
it will create repodata file and now you system ready for yum
server.


----------------------------Client-------------------------

The
above commands will do most part of the job. Now it's time to
configure the vim /etc/yum.repos.d/rhel-debuginfo.repo  for our
local repository.

#vim
/etc/yum.repos.d/rhel-debuginfo.repo

[reposfile]
name=
Updates
baseurl=ftp://ipaddress/pub
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY

-----------

Thanx to Mr. Rajendra Raghuvanshi

ElectroMech 

Nilesh J. Vaghela

相关阅读 更多 +
排行榜 更多 +
百炼英雄抽卡技巧指南

百炼英雄抽卡技巧指南

休闲益智 下载
英雄没有闪滚雷旋风技能如何搭配

英雄没有闪滚雷旋风技能如何搭配

休闲益智 下载
英雄没有闪雷旋风BD构筑推荐

英雄没有闪雷旋风BD构筑推荐

休闲益智 下载