易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 3|回复: 0
收起左侧

centos7.2上使用yum安装xen服务

[复制链接]
发表于 2024-8-19 15:24:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
centos7.2上使用yum安装xen服务/ ~7 u3 `; V: Y  I& M! \4 n

8 r0 I. V$ z$ x! _5 @; a, {- x首先配置selinux
. {3 d9 q- K. F, z2 B1 H , k0 Z9 K, A  p3 C  T7 l# P
SELINUX=disabled* A. e9 Z+ @1 r, h$ \
3 A" s1 g. p- J9 e/ x6 H0 d2 g( O
配置yum源:# L& d: o. ^+ u7 s) x, M
4 x  n; Q& ?$ L9 P# g
cat /etc/yum.repos.d/CentOS-Base.repo
4 L4 q6 k5 `5 R* W' t8 @7 v$ X# CentOS-Base.repo
% n3 E& J8 s8 X; D4 \" a+ E#6 y6 W& o: r( V+ E$ R4 I
# The mirror system uses the connecting IP address of the client and the$ }, }9 Y. z4 e; T# A, r2 e
# update status of each mirror to pick mirrors that are updated to and" [# n2 E# c0 I" X2 l% ^
# geographically close to the client.  You should use this for CentOS updates' Z1 S* }2 h% o
# unless you are manually picking other mirrors.: F/ I1 ^' S8 }: W( E
#: y' i: y: I  ^4 Q) B" V
# If the mirrorlist= does not work for you, as a fall back you can try the
; Z$ P3 g2 ]( L2 y3 w; n' |; r# remarked out baseurl= line instead." b; @+ R; z$ e# M6 ?
#
) _( z& @5 C& g$ N: j#
5 [5 X  a" i! Z' J' w4 k/ ]: l5 v) s1 |
[base]
! a3 p% i8 n5 y  Q, I' Gname=CentOS-$releasever - Base8 ~8 N5 S3 j" U" W: e2 ?5 D
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
/ E9 L: ?: ~  v# s4 Pbaseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/os/x86_64/
" @: q; O0 \1 w4 Q- `# j# hgpgcheck=1- V2 W, U2 J' N' `" e
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
! F3 z8 s% d- x! ]/ n& N) l8 Y+ G! L, X! @
#released updates
# K- k, ]: y; C  j& b. I: k% H( x; d  _[updates]
- u3 t3 R9 V1 o7 q6 v2 I/ ]& I- hname=CentOS-$releasever - Updates
- ]. [" Y; T( a* G#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
# ^% A  |4 h  K" N; Z6 J& ybaseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/updates/x86_64/+ ^/ \' `/ j' e$ x; j, o! O/ o! |
gpgcheck=1
! d# l% P/ {. dgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7( q0 |. J, E( K, f+ X, V/ }

! ~; `" t; K; G% T+ G#additional packages that may be useful
; a4 s- a0 A  F9 \& a
; n1 P/ h3 d/ u# [$ O#additional packages that extend functionality of existing packages
- k9 H0 G: J  X% ^3 k[centosplus]# g6 R2 A5 {) b+ y5 h
name=CentOS-$releasever - Plus7 v3 G" g/ a, o4 I; j1 Y
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
) w8 a* y; |- r8 w1 M; m* F& G9 rbaseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/centosplus/x86_64/: {& g& `$ o3 ?: d8 ]: I
gpgcheck=10 C8 x9 N* C& X' z1 i" c2 O& e- O
enabled=07 {: H1 J- ]& Y3 \
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7* V5 v3 H! @3 l% y* d) w( I4 p0 \
% W8 g% e) r' n5 F8 X' \$ P, y  Q

8 z3 X  s. p' D$ @/ D, U: s[xen]3 ~9 A8 |" D* t1 e$ s. ~* T
name=CentOS-$releasever -xen
6 x4 a7 r; |! |7 J# n4 [#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra4 B( J9 m& j% P
baseurl=https://mirrors.aliyun.com/centos-vault/7.8.2003/virt/x86_64/xen-410
/ |: H/ ?+ Q, D1 A. y5 \gpgcheck=1
! e* B$ ], C+ z5 r" \( uenabled=0
1 z% c" _# ?# R4 r' Rgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7, s# I5 D) j9 L
7 |. l  r$ i0 v" T* J

. X1 \& ~! \  L/ A4 M' x* ?
- E+ Y7 Z' N, L7 o  p7 v% f9 j1 `yum clean all4 K- Z) c- ~  i: {0 O1 `, q, T- L
( o6 ?: H  m7 T! m+ }- D- z
安装:. J0 i' X: ]+ r7 n" `2 L6 R. q

% |2 M* N7 e  E9 ^  h4 c, R# y
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:29 , Processed in 0.044859 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表