日本搞逼视频_黄色一级片免费在线观看_色99久久_性明星video另类hd_欧美77_综合在线视频

國內最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2
您當前位置:首頁 > 服務器 > Red Hat Enterprise Linux Server release 6.4 x64 安裝 yum 源

Red Hat Enterprise Linux Server release 6.4 x64 安裝 yum 源

來源:程序員人生   發布時間:2015-06-15 08:10:09 閱讀次數:3915次

本想將mongodb安裝到redhat中,yum不能使用,看網上說可以另外安裝。

試了幾次網上的,沒有成功。看著看著也發現規律,知道怎樣改了。


先把自帶的卸載:

rpm -aq | grep yum | xargs rpm -e --nodeps


下載幾個必要的包:(我這是64位的,不是的話先訪問http://ftp.sjtu.edu.cn/centos/6/os/肯定)

wget http://ftp.sjtu.edu.cn/centos/6/os/x86_64/Packages/python-iniparse-0.3.1⑵.1.el6.noarch.rpm wget http://ftp.sjtu.edu.cn/centos/6/os/x86_64/Packages/yum-metadata-parser⑴.1.2⑴6.el6.x86_64.rpm wget http://ftp.sjtu.edu.cn/centos/6/os/x86_64/Packages/yum⑶.2.29⑹0.el6.centos.noarch.rpm wget http://ftp.sjtu.edu.cn/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror⑴.1.30⑶0.el6.noarch.rpm

安裝yum:

rpm -ivh python-iniparse-0.3.1⑵.1.el6.noarch.rpm rpm -ivh yum-metadata-parser⑴.1.2⑴6.el6.x86_64.rpm rpm -ivh yum⑶.2.29⑹0.el6.centos.noarch.rpm yum-plugin-fastestmirror⑴.1.30⑶0.el6.noarch.rpm


編輯repo包:(如果也能夠先把它刪除)

vi /etc/yum.repos.d/CentOS-Base.repo

[base] name=CentOS⑹-Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever6&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ baseurl=http://ftp.sjtu.edu.cn/centos/6/os/$basearch/ gpgcheck=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS⑹ #released updates [update] name=CentOS⑹-Updates #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates baseurl=http://ftp.sjtu.edu.cn/centos/6/updates/$basearch/ gpgcheck=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS⑹ #packages used/produced in the build but not released [extras] name=CentOS⑹-Extras #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras baseurl=http://ftp.sjtu.edu.cn/centos/6/extras/$basearch/ gpgcheck=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS⑹ #additional packages that extend functionality of existing packages [centosplus] name=CentOS⑹-Plus #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus baseurl=http://ftp.sjtu.edu.cn/centos/6/centosplus/$basearch/ gpgcheck=0 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS⑹ #contrib - packages by Centos Users [contrib] name=CentOS⑹-Contrib #mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib baseurl=http://ftp.sjtu.edu.cn/centos/6/contrib/$basearch/ gpgcheck=0 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS⑹

注意檢查上面的每一個網址路徑,在網頁上訪問看看是不是存在,如果是其他版本,把上面的6更改掉,其他版本可能還有其他配置(如 centos5還有[addons])。

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS⑹ #這個也要對應版本


導入gpgkey:(當前是使用第2行導入)

#rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS⑹ rpm --import http://ftp.sjtu.edu.cn/centos/6/os/x86_64/RPM-GPG-KEY-CentOS⑹


清除緩存:

yum clean all

測試yum安裝:

yum install vim


yum install mysql*


成功安裝!~


參考:

http://blog.itpub.net/23890223/viewspace⑺57724/

http://blog.itpub.net/25313300/viewspace⑺08509/

http://blog.chinaunix.net/uid⑵0729583-id⑵972852.html


生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: av在线不卡免费看 | 精品一区二区三区中文字幕 | 午夜理伦| 国产一区中文字幕 | 亚洲精品在线电影 | a黄色网 | 日本黄色电影网址 | 九色在线播放 | 51ⅴ精品国产91久久久久久 | 国产高清一二三区 | 久久久久久久国产精品 | 久久国产精品久久久久久久久久 | 九九综合九九 | 黄色av免费在线观看 | a中文在线视频 | 亚洲夜夜夜 | 久久国产精品免费视频 | 久久久久久国产 | 久草视频中文在线 | 久久久高清 | 麻豆日韩 | 成年人网站免费看 | 色综合欧美 | 国产a区 | 国产成人一区二区 | 久久99精品久久久久久 | 最近免费观看电影大全在线观看 | 成人天堂资源www在线 | 日韩亚洲欧美在线 | 亚洲欧美日韩一区二区 | 性视频网 | 亚洲国产精品成人天堂 | 精品久久久噜噜噜久久x99a | 国产精品区一区二区三 | 久久久穴| 日韩免费小视频 | 视频在线一区二区 | 淫片网站 | 爱情岛论坛亚洲线路一 | 亚洲成人精品一区 | 婷婷人人爽人人 |