最近想用jenkins集成gitlab于是想在服務(wù)器搭建下gitlab卖怜,遇到一些問題豫柬,做一下記錄
問題一:
warning: openssh-server-5.3p1-124.el6_10.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
? ? ? ? openssh = 5.3p1-124.el6_10 is needed by openssh-server-5.3p1-124.el6_10.x86_64
可按照如下方法:https://blog.csdn.net/wqfhenanxc/article/details/95505727
https://blog.csdn.net/abcdad/article/details/80223355
問題二:
This system is not registered to Red Hat Subscription Management.You can use subscription-manager to register.
可按照解決方法:
https://www.cnblogs.com/figsprite/p/10220228.html
問題三:
?PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.163.com'"
輸入 ping www.baidu.com 來查看是否可以聯(lián)網(wǎng) 要是出現(xiàn)未找到就可能是DNS的問題仔涩,解決方案是:
輸入cat /etc/resolv.conf 查看配置信息扑馁,看其中有沒配置nameserver
要是沒有就使用 vi 編輯配置蹲堂,加入: nameserver 8.8.8.8 這是谷歌的 然后退出vi模式保存
輸入service network restart 重新啟動網(wǎng)卡
搭建方法按照:https://blog.csdn.net/aaaaaab_/article/details/82012044
問題四:
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository:xxxxxx.
關(guān)于yum Error: Cannot retrieve repository metadata (repomd.xml) for repository:xxxxxx.
這個錯誤是說yum執(zhí)行時候無法檢索到某個依賴的地址搁料。
yum執(zhí)行時候檢索的依賴地址為:/etc/yum.repos.d
該目錄下會有你的一些.repo文件
找到報錯的 xxxxxx.repo,** 或者含有xxxxx的repo** 文件
通過命令行vi xxx.repo打開該文件
修改其下 enabled=1改成enabled=0
具體:
1. yum install curl policycoreutils openssh-server openssh-clients postfix
2.systemctl status postfix.service或service postfix status(centos6)
3. rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
4.rpm -ivh yum-3.2.29-81.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm python-urlgrabber-3.9.1-11.el6.noarch.rpm
5.vim CentOS6-Base-163.repo
6../yummain.py install yum
7.yum install policycoreutils-python
8.rpm -ivh gitlab-ce-12.0.3-ce.0.el6.x86_64.rpm
主要步驟如上(centos6參考)