欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

基于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
相关标签: http Linux