如何安裝yum包

來源:互聯網
上載者:User

1掛載Linux系統光碟片

mount/dev/cdrom/media

2切換到/etc/yum.repos.d/

cd/etc/yum.repos.d/

3修改設定檔

cprhel.debuginfo.repoyum.repo.bak(備份)

cpyum.repo.bakyum.repo重新命名)

vimyum.repo設定檔)


[base]
name=base
baseurl=file:///media/Server
gpgcheck=0

:wq!(儲存退出)

4yumcleanall清除yum緩衝)

5yum-yinstallhttpd-server例如安裝apache)

6echook>/var/www/html/index.html

7servicehttpdstart

8curlhttp://127.0.0.1
如果返回ok證明httpd服務正常。

本文出自 “MySQL資料庫” 部落格,謝絕轉載!

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.