找回密码
 注册
查看: 12|回复: 0

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-8-19 15:24:13 | 显示全部楼层 |阅读模式
centos7.2上使用yum安装xen服务
# ]5 |# M9 D. b) k5 y: Q6 P, P
/ ?* E9 @& f$ l" E首先配置selinux: a  X7 E5 M" m, |$ y; q
; v- B8 g+ r# N+ `7 ~4 k
SELINUX=disabled
; }2 e6 m1 h# n4 e  z+ O; ^) O3 O9 J- C+ C% s7 I+ R  Z! @0 A
配置yum源:
% ]6 F! @6 G( P# _0 F) ?
; ?0 Y( V, b+ }5 Y& D" c cat /etc/yum.repos.d/CentOS-Base.repo 2 P. g. x) G6 V
# CentOS-Base.repo' ~; \  |8 V  }. B, d
#/ N+ }5 o9 d: k
# The mirror system uses the connecting IP address of the client and the6 {- Z. @# a- o! D8 f) k, B% E
# update status of each mirror to pick mirrors that are updated to and: M! k; k" J- Q
# geographically close to the client.  You should use this for CentOS updates4 h% h' I- y& R9 ?* W# d) ~
# unless you are manually picking other mirrors.
- L  u) W1 m. `$ B8 z& @. @#
8 ^) \/ E4 {& A$ c6 V# If the mirrorlist= does not work for you, as a fall back you can try the
8 r! \0 d  F$ {! A4 W" I# remarked out baseurl= line instead.
5 k/ H  q7 T% {# v/ \# C; O#
# F) \9 g" Y, h6 |5 ?( U! w#, X9 H/ J7 e0 `2 _7 h
7 V: S/ R2 s, g; z
[base]
' e* f; w8 V- f; R4 Y4 Nname=CentOS-$releasever - Base
: [$ m$ H8 R. ?% A#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
, J! h$ b' @$ \: c7 b6 nbaseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/os/x86_64/
2 n( q# v4 i0 d5 \" c+ c9 ggpgcheck=1. l0 Z0 E& d! |, g, a% O
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
! Q/ k0 r  Q/ U$ d+ Y6 M" ]2 [, v5 [1 T
#released updates
6 q  ^1 Y5 X, y' D[updates]  F. q: }. ^& V
name=CentOS-$releasever - Updates
+ r0 ^/ f9 S2 s7 S6 b+ G0 H9 p- ?, }#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
& M' B0 [' ]  }1 C$ Y7 rbaseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/updates/x86_64/) e+ A5 D1 f, M1 ?" U% g) m
gpgcheck=1
) c9 T+ b! t5 {& }- agpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-75 t5 h6 j8 [$ A

: Q, x" H# x% s7 A0 q3 N5 Z#additional packages that may be useful6 g7 l0 c: W) C* ?+ c

6 [' |" F+ y: C#additional packages that extend functionality of existing packages
# J8 S# R2 a9 \. ^( R[centosplus]3 }/ N* `. i: S% y& G) ]
name=CentOS-$releasever - Plus
% C- k2 Q0 i( P& ]0 w#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra! ~3 p; Q+ |+ ^
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/centosplus/x86_64/
, k  p- B& U; Y7 m5 ugpgcheck=1
- K5 S% c' {7 S, J" J1 _5 Penabled=00 n" {& V4 J2 ^
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
( ~1 y- m7 O6 L9 H* \- E, ^1 \* c5 Q
- r7 q. o/ y# |$ |" [, M7 g1 |
[xen]
$ T2 R* Q# J4 a: r, E( yname=CentOS-$releasever -xen* r0 i$ o& i+ ~( O
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
2 v5 k& `/ ~' V0 O% U1 ~baseurl=https://mirrors.aliyun.com/centos-vault/7.8.2003/virt/x86_64/xen-410
! B$ u0 K- D% a. ]& Q/ h' L/ r+ {gpgcheck=1
0 t9 ^: l- ?! c" Y1 Z; c' r) venabled=02 I' V) N$ A& C3 d9 a; T
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7! M, d8 M9 B7 m: |; _

) O# @! E2 }+ t, L3 E9 u7 U
3 B5 T1 K$ O, B3 i. i5 E/ V
0 n; u; f( c5 c! U' G) A! jyum clean all
( P6 Y& T, x( v% U* ]1 W3 `3 N+ t: ?+ ^# t* ]8 A6 s% {: ?- |, u) ]) E& `
安装:
( C/ J' V% y: x. S4 g: Z: i; N" {' z6 R) e
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:24 , Processed in 0.015404 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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