{"id":1002,"date":"2009-11-29T17:16:00","date_gmt":"2009-11-29T09:16:00","guid":{"rendered":"\/?p=1002"},"modified":"2009-11-29T17:16:00","modified_gmt":"2009-11-29T17:16:00","slug":"1002","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/linux\/1002.html","title":{"rendered":"CentOS 5.2\u6700\u5c0f\u5316\u5b89\u88c5\u540e\u5e38\u7528\u5de5\u5177\u6dfb\u52a0"},"content":{"rendered":"

     \u7b2c\u4e00\u6b21\u5b89\u88c5CentOS 5.2 \uff0c\u4ee5\u6587\u672c\u65b9\u5f0f\u5b89\u88c5\uff0c\u9009\u7684\u6700\u5c0f\u5316\u5b89\u88c5\uff0c\u5373\u4ec0\u4e48\u90fd\u4e0d\u9009\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\u53d1\u73b0\u4e00\u4e9b\u5e38\u7528\u5de5\u5177\u90fd\u6ca1\u6709\u5b89\u88c5\uff0c\u6ca1\u529e\u6cd5\uff0c\u8c01\u53eb\u6211\u4eec\u9009\u62e9\u7684\u6700\u5c0f\u5316\u5b89\u88c5\u5462\uff0c\u73b0\u5728\u4e00\u4e2a\u4e00\u4e2a\u8865\u56de\u6765\u5427\u3002<\/p>\n

\u51c6\u5907\u5de5\u4f5c\uff1a
1.\u5148\u628aISO\u6216\u5149\u76d8\u6302\u8f7d\u5230\u7cfb\u7edf\u4e0a
\uff1ccoolcode>
mkdir \/mnt\/cdrom
mount \/dev\/cdrom \/mnt\/cdrom<\/p>\n

2.\u5907\u4efdCentOS-Base.repo\u548cCentOS-Media.repo
mv CentOS-Base.repo CentOS-Base.repo.bak
mv CentOS-Media.repo CentOS-Media.repo.bak<\/p>\n

3.\u6dfb\u52a0yum\u6e90
vi dvdiso.repo #\u6700\u5c0f\u5316\u5b89\u88c5\u8fdevim\u4e5f\u6ca1\u7684-_-
[DVDISO]
name=DVD ISO
baseurl=file:\/\/\/mnt\/cdrom\/
enabled=1
gpgcheck=0<\/p>\n

\u4fdd\u5b58\u540e\u8fd0\u884c
yum list<\/p>\n

4.\u9644\u7f51\u6613\u7684\u5f00\u6e90\u955c\u50cf\u7ad9\u70b9\u53ca\u5f20\u5bb4\u63d0\u4f9b\u7684repo\u6587\u4ef6
cd \/etc\/yum.repos.d\/
mv CentOS-Base.repo CentOS-Base.repo.bak
wget http:\/\/blog.s135.com\/soft\/linux\/centos\/5.2\/CentOS-Base.repo<\/a><\/p>\n

\u5b89\u88c5\u5de5\u5177:
1.\u5b89\u88c5wget
yum install wget<\/p>\n

2.\u5b89\u88c5setup
yum install setuptool<\/p>\n

3.\u5b89\u88c5cron
yum install gcc gcc-c++ autoconf vixie-cron # vixie-cron\u8f6f\u4ef6\u5305\u662fcron\u7684\u4e3b\u7a0b\u5e8f
yum install gcc gcc-c++ autoconf crontabs#crontabs\u8f6f\u4ef6\u5305\u662f\u7528\u6765\u5b89\u88c5\u3001\u5378\u88c5\u3001\u6216\u5217\u4e3e\u7528\u6765\u9a71\u52a8 cron \u5b88\u62a4\u8fdb\u7a0b\u7684\u8868\u683c\u7684\u7a0b\u5e8f<\/p>\n

4.\u5b89\u88c5make
yum install make<\/p>\n","protected":false},"excerpt":{"rendered":"

     \u7b2c\u4e00\u6b21\u5b89\u88c5CentOS 5.2 \uff0c\u4ee5\u6587\u672c\u65b9\u5f0f\u5b89\u88c5\uff0c\u9009\u7684\u6700\u5c0f\u5316\u5b89\u88c5\uff0c\u5373\u4ec0\u4e48\u90fd\u4e0d\u9009\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\u53d1\u73b0\u4e00\u4e9b\u5e38\u7528\u5de5\u5177\u90fd\u6ca1\u6709\u5b89\u88c5\uff0c\u6ca1\u529e\u6cd5\uff0c\u8c01\u53eb\u6211\u4eec\u9009\u62e9\u7684\u6700\u5c0f\u5316\u5b89\u88c5\u5462\uff0c\u73b0\u5728\u4e00\u4e2a\u4e00\u4e2a\u8865\u56de\u6765\u5427\u3002<\/p>\n

\u51c6\u5907\u5de5\u4f5c\uff1a
1.\u5148\u628aISO\u6216\u5149\u76d8\u6302\u8f7d\u5230\u7cfb\u7edf\u4e0a
\uff1ccoolcode>
mkdir \/mnt\/cdrom
mount \/dev\/cdrom \/mnt\/cdrom<\/p>\n

2.\u5907\u4efdCentOS-Base.repo\u548cCentOS-Media.repo
mv CentOS-Base.repo CentOS-Base.repo.bak
mv CentOS-Media.repo CentOS-Media.repo.bak<\/p>\n

3.\u6dfb\u52a0yum\u6e90
vi dvdi<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1002"}],"collection":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/comments?post=1002"}],"version-history":[{"count":0,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1002\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}