LINUX之搭建yum仓库
一、环境准备
1、关闭selinux
sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
setenforce 0
2、关闭防火墙
/etc/init.d/iptables stop
chkconfig iptables off
注:测试使用的是CentOS6
二、服务端:安装配置nginx,搭建yum库
2.1、安装nginx
yum install nginx -y
提示无可用的nginx包,换源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
2.2、配置nginx
mkdir /share