我可以透過 yum 安裝 ntp rpm,如下所示,但在 yum 安裝之前,我得到如下失敗的行:
yum install ntp
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
http://linux02.sys65dns.com/DIR/centos7/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to linux02.sys65dns.com:80; Connection refused"
Trying other mirror.
http://linux02.sys65dns.com/DIR/centos7/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to linux02.sys65dns.com:80; Connection refused"
Trying other mirror.
http://linux02.sys65dns.com/DIR/centos7/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to linux02.sys65dns.com:80; Connection refused"
Trying other mirror.
http://linux02.sys65dns.com/DIR/centos7/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to linux02.sys65dns.com:80; Connection refused"
Trying other mirror.
http://linux02.sys65dns.com/DIR/centos7/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to linux02.sys65dns.com:80; Connection refused"
Trying other mirror.
http://linux02.sys65dns.com/DIR/centos7/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to linux02.sys65dns.com:80; Connection refused"
Trying other mirror.
http://linux02.sys65dns.com/DIR/centos7/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to linux02.sys65dns.com:80; Connection refused"
這是怎麼回事?
答案1
網域 linux.sys65dns.com 無效。如果這是來自鏡像列表,請嘗試yum clean all
並重試。
答案2
故障排除步驟(假設這是您本機託管的儲存庫):
- R
yum clean all
並嘗試再次安裝ntp。出於測試目的,請嘗試安裝不同的軟體包。 - 如果上述方法失敗,請嘗試 ping 您的伺服器: ping linux02.sys65dns.com
- 如果出現上述情況,請嘗試在網頁瀏覽器中開啟它,檢查連接埠 80 是否運作正常,或者您也可以 telnet。
- 如果沒有,請檢查伺服器上的 apache 服務以及連接埠 80 是否開啟。您也可以檢查 ports.conf 以查看 apache 是否配置為在連接埠 80 或其他連接埠上運作。