關於yum repolist報錯資訊的處理

2021-09-18 04:30:58 字數 741 閱讀 2992

執行yum repolist命令會出現如下錯誤,提示是主機無法解析dns。

[root@localhost ~]# yum repolist all

loaded plugins: fastestmirror, langpacks

repository base is listed more than once in the configuration

determining fastest mirrors

could not retrieve mirrorlist error was

14: curl#6 - "could not resolve host: mirrorlist.centos.org; unknown error"

loading mirror speeds from cached hostfile

loading mirror speeds from cached hostfile

loading mirror speeds from cached hostfile

loading mirror speeds from cached hostfile

解決方法:配置dns解析檔案就正常了,nameserver可以使本地可訪問的或者是公網dns伺服器位址

[root@localhost ~]# cat /etc/resolv.conf

# generated by networkmanager

nameserver 8.8.8.8

關於網頁報錯

400 錯誤的請求。401 訪問被拒絕。iis 定義了許多不同的 401 錯誤,它們指明更為具體的錯誤原因。這些具體的錯誤 在瀏覽器中顯示,但不在 iis 日誌中顯示 401.1 登入失敗。401.2 伺服器配置導致登入失敗。401.3 由於 acl 對資源的限制而未獲得授權。401.4 篩選器授權...

關於malloc報錯

報錯 部分示例 c語言 typedef double elemtype struct btreenode struct btreenode createhuffman elemtype a,int n,char e 如上,紅色部分 報錯!我們知道malloc函式是c語言中分配空間所用,函式宣告為 v...

關於remberme報錯

再繼續看報錯資訊,發現後面說是什麼空指標異常,又說是什麼remember me 的報錯,然後我到spring security相應的配置檔案查詢原因,看看是 寫錯了。可是檢查好幾遍都沒有問題。所以回過頭來想了一下,既然是關於remember me的報錯,可能和瀏覽器儲存的cookie資訊還存留有關。...