本地yum源搭建

加载系统iso文件
mkdir /mnt/cdrom/
mount /dev/sr0 /mnt/cdrom/
cd /etc/yum.repos.d/
rename repo repo.bak
vi CentOS-Media.repo
-----------------------------------------------------
[c7-media]
name=CentOS-$releasever - Media
baseurl=file:///mnt/cdrom
#        file:///media/cdrom/
#        file:///media/cdrecorder/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
-----------------------------------------------------
yum list#查看本地yum源挂载情况

安装httpd服务器
rpm -ivh mailcap-2.1.41-2.el7.noarch.rpm
rpm -ivh apr-1.4.8-3.el7_4.1.x86_64.rpm
rpm -ivh apr-util-1.5.2-6.el7.x86_64.rpm
rpm -ivh httpd-tools-2.4.6-88.el7.centos.x86_64.rpm
rpm -ivh httpd-2.4.6-88.el7.centos.x86_64.rpm
systemctl start httpd#启动httpd服务
systemctl status httpd#查看服务运行状态

posted @ 2019-07-05 10:27  BicycleBoy  阅读(174)  评论(0编辑  收藏  举报