yum_update_server_落英缤纷
发表回复
yum_update_server_落英缤纷1 setenforce 0 //关闭selin...阅读全文
cat /etc/sysconfig/networkvi /etc/sysconfig/networksetenforce 0service iptables stopchkconfig iptables offvi /etc/sysconfig/network-scripts/ifcfg-eth0init 6yum install wget make vim httpdyum install createreposervice httpd startchkconfig httpd onll /var/www/html/mkdir -p /var/www/html/yum/centos/6.4/x86_64/ll /var/www/html/scp -r root@192.168.100.250:/var/ftp/pub/CentOS-6.4-x86_64-bin-DVD1/* /var/www/html/yum/centos/6.4/x86_64/</span>#### yum_client ###
vi /etc/sysconfig/networkvi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0"BOOTPROTO="static"IPADDR=192.168.100.98NETMASK=255.255.255.0#GATEWAY=192.168.100.1#DNS1=202.103.24.68HWADDR="00:0C:29:46:3B:0B"NM_CONTROLLED="yes"ONBOOT="yes"TYPE="Ethernet"service network restartping www.163.com -c2yum install wget make vimcp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bakvi /etc/yum.repos.d/CentOS-Base.repo# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist= does not work for you, as a fall back you can try the# remarked out baseurl= line instead.##[base]name=CentOS-$releasever - Base####mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=osbaseurl=http://192.168.100.248/yum/centos/6.4/x86_64/enabled=1gpgcheck=0####gpgcheck=1####gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#released updates[updates]name=CentOS-$releasever - Updates####mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updatesbaseurl=http://192.168.100.248/yum/centos/6.4/x86_64/enabled=1gpgcheck=0####gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#additional packages that may be useful[extras]name=CentOS-$releasever - Extras####mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extrasbaseurl=http://192.168.100.248/yum/centos/6.4/x86_64/enabled=1gpgcheck=0####gpgcheck=1####gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plusmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users[contrib]name=CentOS-$releasever - Contribmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6cat /etc/redhat-releaseyum install wget make vimyum updaterebootcat /etc/redhat-release
落英缤纷2014021
阅读全文