当前位置:网站首页>RPM包管理—YUM在线管理-IP地址配置和网络YUM源
RPM包管理—YUM在线管理-IP地址配置和网络YUM源
2022-07-22 10:51:00 【八点十面】
yum在线管理的也是rpm包,跟rpm命令一样,区别是一个在线一个手工
1、IP地址配置
setup . -----------使用setup工具
vi /etc/sysconfig/network-scripts/ifcfg-eth0 . ----------把ONBOOT=no改成yes,启动网卡
service network restart ------------ 重启网络服务
2、网络YUM源
vi /etc/yum.repos.d/CentOS-Base.repo
说明:[base] ----容器名称,一定要放在[]中
name . ------容器说明,可以自己随便写
mirrorlist . -------镜像站点
baseurl --------- YUM源服务器的地址,默认为CentOS官方的YUM源服务器
enabled ---------此容器是否生效,如果不写或者写成enabled=1都是生效
gpgcheck --------如果是1是指RPM的数字证书生效,如果0则不生效
gpgkey ----------数字证书的公钥文件保存位置,不用修改
边栏推荐
猜你喜欢
随机推荐
Process fork
selenium测试框架快速搭建(ui自动化测试)
弱网测试(Charles模拟)
Multithreading 05 -- reentrantlock principle
多线程05--ReentrantLock 原理
ADB自动化测试框架
Postgre database
APP专项测试
线程池02--源码
Leetcode high frequency question: what is the difference between the combat effectiveness of the two soldiers with the closest combat effectiveness of N soldiers in the challenge arena
application&富文本编辑器&文件上传
Multithreading 02 -- sequential execution and stop of threads
信号处理:<三> DFT和FFT
Airtest测试框架搭建
Multithreading 04 -- order of threads
VIM learning journey
Automatic generation of common centroid capacitance array with arbitrary capacitance ratio
Common centroid layout of active and passive equipment: review and future road
How many holes are there in string split operation
Steps and common methods of data analysis