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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-8-19 15:24:13 | 显示全部楼层 |阅读模式
centos7.2上使用yum安装xen服务. M  M$ E. U  f1 |3 T% n
* i7 O5 |9 A0 O) e; z9 y- J. t
首先配置selinux: y4 P8 j9 D0 B- h5 \

# ?2 t8 X1 `* _1 Z9 Y% }  M  c* ASELINUX=disabled% g6 ]0 Y2 r" E" i" M

: k/ @( G3 b) _. [配置yum源:
" `  p1 i4 _/ s2 ]1 |" R3 w4 {, A* O& L2 j0 P4 r
cat /etc/yum.repos.d/CentOS-Base.repo
' l1 ^8 W4 d) }# {5 s% m# B# CentOS-Base.repo
9 T0 p$ S' A) u; d; w) R#4 P3 O3 Q# ?$ @  C. h- ^4 S4 Q: E
# The mirror system uses the connecting IP address of the client and the
1 n( m- t- Q1 _# h5 u# update status of each mirror to pick mirrors that are updated to and# S8 H8 O, U1 B! P
# geographically close to the client.  You should use this for CentOS updates
4 D1 g( g* W* L4 g; }0 o# unless you are manually picking other mirrors.
; z4 y, {4 Z- [. _#
. @! j  Y( L- h' l$ g+ D# If the mirrorlist= does not work for you, as a fall back you can try the
9 Y, g2 @$ a2 W0 v; x, H) R# remarked out baseurl= line instead.# `; {0 H6 M$ J
#
1 s4 N: m3 w- N) O5 ^0 G#5 u0 X% _  b' a3 |$ ~

4 r% u  h9 i1 O7 C& R[base]# Y- M( H3 m/ X* Q2 s" K1 E! `
name=CentOS-$releasever - Base, q2 {5 f0 [# b) ]4 o7 M# m: n
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra9 p1 W# Q7 N1 k5 C( k' @- A
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/os/x86_64/+ d/ j( G. l: W8 u" S6 t1 i  l
gpgcheck=1
7 x, p  R$ G& @( G3 t/ I  ~0 Hgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
4 w9 W/ s5 N% M
8 k6 P" `2 p& n8 b  k4 v1 E#released updates
0 j! n+ d4 K# w* r[updates]1 P0 s+ y- d, E  A' e( i% @3 x
name=CentOS-$releasever - Updates
" e8 t4 N, K8 x4 O* o2 V#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra/ D. h; v4 L1 t1 k5 c) ?- Q0 ?! F; a
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/updates/x86_64/* Q3 S- K5 @' h
gpgcheck=1
6 R5 [# ^' w& u; D, }; Rgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-74 K" R8 S0 ~/ _3 L- e1 d

9 z0 o8 @1 d3 c) T# j" q#additional packages that may be useful
# S  ?& p& n/ b/ L' e" j5 w7 E8 S- f& e9 d# M
#additional packages that extend functionality of existing packages3 C- S. i/ Y. @
[centosplus]
9 B8 D& {& _& x$ V7 n' k; r* J* Zname=CentOS-$releasever - Plus
. Q% [6 _! K5 ~5 f! l#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra9 M# Z9 N5 t% ~
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/centosplus/x86_64/8 u0 @# p) D6 t- j& q; e
gpgcheck=1
( t3 t1 [$ C6 j* I7 e. b4 ~enabled=0
" F: y  c' L' qgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7  y! v# v2 b$ f3 g
# f2 H4 Y  }/ u1 v
% H" b8 g" M+ N
[xen]
/ G  \# e/ s& s7 q# s; qname=CentOS-$releasever -xen
! v, G# n+ d3 j% H  R#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra$ Q( b4 J' ?# Y" A, m
baseurl=https://mirrors.aliyun.com/centos-vault/7.8.2003/virt/x86_64/xen-410
# ?! x9 S8 e* n4 {2 @gpgcheck=1) b, Z3 r& N5 M6 ^. {: M
enabled=0
$ |7 S6 L% d8 k+ h$ P0 y4 Ggpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-71 l. C* X2 a3 o( f; V1 ~4 z

& L( i7 y6 o2 Z! M& Y
' X/ P- e6 s5 T' S* F. q$ |2 C. \
9 D; Z4 `$ `) ?; @: l5 _yum clean all
6 ]4 x+ h. N$ g% c# s
; d5 g0 a/ ?  x6 D安装:
4 C8 W. b3 Y" B; S- w  q3 C6 ]8 z  e" {' }. U0 v& s2 i' p8 n" x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:30 , Processed in 0.017520 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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