首页 > 编程知识 正文

阿里云yum源配置文件,Yum源配置

时间:2023-05-04 23:34:38 阅读:186744 作者:4173

文章目录AlibabaCloud (阿里巴巴云) YUM源代码配置1 .备份原始YUM源代码2 .根据自己的系统重新下载YUM源代码yum0x00。

YUM源代码配置的AlibabaCloud (阿里巴巴云)

今天,打开我的Centos7系统,美滋滋将构建LAMP环境。 一首独奏。

yum-yinstallhttpdmariadbmariadb-serverphpphp-MySQL

无计可施,

百度的应该附有YUM酱。

1 .备份原来的yum源,虽说本来就无力,但总之之后有恢复正常的东西。 备份

mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo _ bak

2 .根据您的系统下载yum源代码,然后使用wget命令完成下载。

为Centos6下载:

wget-p/etc/yum.repo.d/centos-base.repo http://mirrors.a liyun.com/repo/centos-6.repo

为Centos7下载:

wget-p/etc/yum.repo.d/centos-base.repo http://mirrors.a liyun.com/repo/centos-7.repo

3.yumyumcleanallyummakecache0x 00.repo文件是yum源文件的配置文件,repo定义从哪里下载和安装,并定义多个软件仓库的详细内容。

rpm通用命令

rpm -aq httpd* //所有httpd的安装软件包rpm -aqi httpd* //有关所有httpd安装软件包的详细信息rpm -qf `which httpd` //查询某文件安装包htpd-2.4.6-93.el7.centos.x86 _ 64 httpd-tools-2.4.6-93.el7.centos.x88.el7 name : httpd version :2.4.6 release :93.el7.centos architecture 3360 x 86 _ 64 install date 33602020年08月26日星期三09时44分21 : xxxxsourcerpm : httpd-2.4.6-93.el7.centos.src.rpmbuild date 3360 xxxxburing OS.org relocations 3360 (not rt red ) 58 bugs.centos.org vendor : centos URL 3360: summary : apachehttpserverdescription 3360 theapachehttpserverisapowerful andextensiblewebserver.------------------- andextensiblewebserver.----------------------- l7.centos architecture : x 86 _ 64 install date : xxxx group : XXXXXX size 3360172471 license : ASL 2.0 signature 3360 xxxxxxx pm build date : xxxxxxxbuildhost : x 86-01.bsys.centos.org relocations 330 packager : centosbuildsystem http://bugs.cens 58httpd.Apache.org/summary : toolsforusewitheapachehttpserverdescription 3360 thehttpd-toolspackagecontainstoolswhicanbeusedwitheapachehon rpm-qf ` which httpd ` httpd-2.4.6-93.el7.centos.x86 _ 643358 www.Sina.com /

解决方法删除网卡:

安装//centos7后,我们发现它增加了一个IP地址。 NIC是virbr 01. ifconfigvirbr0down 2. brctldelbrvirbr 03 .删除服务,virbr0是由libvirtd服务创建的3360系统CCC

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。