基于http协议的Yum源
程序员文章站
2022-07-10 15:35:22
...
1 selinux 关闭
2 systemctl stop firewalld ;systemctl disable 或 service iptables stop ;chkconfig iptables off
服务器配置
yum install httpd -y
systemctl start httpd
cd /var/www/html
mkdir centos/{6,7}/os/x86_64/ -pv
echo '- - -' > /sys/class/scsi_host/host2/scan
mount /dev/sr0 centos/7/os/x86_64/
mount /dev/sr1 centos/6/os/x86_64/
客户端配置
vim /etc/yum.repos.d/test.repo
[test]
name=base yum
baseurl=http://192.168.37.7/centos/$releasever/os/$basearch/
gpgkey=http://192.168.37.7/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
yum repolist
yum install gcc openssl-devel pcre-devel apr-devel apr-util-devel -y
./configure \
--prefix=/apps/httpd24 \
--sysconfdir=/etc/httpd \
--enable-ssl \
--enable-so
上一篇: python 关于http协议