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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-8-19 15:24:13 | 显示全部楼层 |阅读模式
centos7.2上使用yum安装xen服务! W4 {8 {6 a$ w* o7 o! g" [

, z' d' E. u1 @' P' C- O1 I首先配置selinux5 e, E0 g+ D" H8 S

7 o$ g! G( M4 T; w% z$ rSELINUX=disabled3 p6 Z# y, W: ]* M$ c7 W# _6 @
6 Q3 n! [- E1 ~6 ?. B
配置yum源:# O  u3 ]0 P  A7 ^) {$ E

5 k- b2 c! m3 v! j. G0 F cat /etc/yum.repos.d/CentOS-Base.repo - c7 ^3 V. }  l3 v$ I3 ^0 X" Y9 o
# CentOS-Base.repo
/ ]$ |& ^: j& u( Y- Y#
. A+ u  ^, c% W) w5 c2 L) {# The mirror system uses the connecting IP address of the client and the
8 L. ]9 c% ^) G3 |, @1 e% `1 R  }# update status of each mirror to pick mirrors that are updated to and
( q7 Q0 o' \) u6 t6 B* v3 E; F# geographically close to the client.  You should use this for CentOS updates) t" D) {5 W, G* e
# unless you are manually picking other mirrors.
( `3 v3 D. n$ d! A5 [; S. M#1 x7 b6 ]2 @: r) w) ]1 K3 `4 i( m6 Y
# If the mirrorlist= does not work for you, as a fall back you can try the 2 L- ^( T* `& ^& o2 s
# remarked out baseurl= line instead.
$ M; C" O0 m  \6 D! @#4 @& Z! R" {$ \) ?
#
/ N( ]1 Y+ g( u5 v" S( C$ }8 s3 F! w- t. p4 |
[base]
  D- Q, S, u8 S% Q$ W  |name=CentOS-$releasever - Base
( v% Z* \# J4 Y8 W1 h1 e#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
+ ?" i# _5 `- K# \1 K0 C5 Tbaseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/os/x86_64/
% ~4 X0 T- I' t5 ]$ W- egpgcheck=1
8 k* O7 h- z# J& L8 P# E! o& @gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7; v6 _" [: N, M6 k! J
/ `" \3 j9 F1 f; E. S7 L
#released updates
2 c8 d! H$ h. O  d  x: n[updates]
2 d% L' X: ^1 W& O1 U3 G4 t" iname=CentOS-$releasever - Updates  I8 L- V# O2 C- ~" a: h
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra+ C, f, c( c) v3 j! j, s
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/updates/x86_64/# U2 u/ H% ^6 ?3 I
gpgcheck=1
. G5 d3 F; ?0 a$ o' fgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7/ _; T3 S& k8 G" N* O0 F1 g
( l$ ]0 o9 Q4 C3 f8 m/ I" \3 T
#additional packages that may be useful
$ s: ^1 c7 s1 T5 O( T3 l. X" Z9 e( g' R6 W7 G2 Q
#additional packages that extend functionality of existing packages
9 x! D! ~* m# I' \( w1 e8 u[centosplus]8 k, U' Q) k1 I6 p; |& o8 }
name=CentOS-$releasever - Plus
' J$ ~1 o& b. t! E" R) y- @#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra9 O- H0 \* k; W- `1 c: S; C+ u, N; E2 i
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/centosplus/x86_64/$ |9 G3 R( A8 a+ [* n% }8 Y) t
gpgcheck=1
3 r3 t0 \% |/ q+ p5 g- \enabled=0
2 _  F$ J- y  F/ v9 Fgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7+ e; i# z; a( |& `- h

' `' o5 q. T$ A2 j8 i! J; C" r/ i4 `# Z- K0 n7 T8 ^# Y$ M
[xen]
/ j' R1 Q$ q, V, ]) }+ k, Wname=CentOS-$releasever -xen
  U& t7 a6 Z  c#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra- C2 s3 S& P  ]2 h: |$ Z
baseurl=https://mirrors.aliyun.com/centos-vault/7.8.2003/virt/x86_64/xen-410
! @  f8 v% P* f4 B1 @' ogpgcheck=1, \7 p. A/ O( n+ Q4 Q. G
enabled=0
$ N: `' s$ a9 a! v: d0 C5 `gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7: l% G( `# e/ ~& o' S0 y5 V; i, q
- I6 j- |' ~4 d, h

5 `( I2 I$ h7 B9 U( W* n. C3 U# b. h0 t/ |2 \8 L2 i3 j5 G
yum clean all4 W; ?2 j# U) f, {( p

1 f" ]4 B+ m' A/ Y! d! ?* q  J安装:
, v# N& ?5 V8 _1 h7 Y/ ?6 k
# ?/ E. i) X5 P! p$ N! j& M  ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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