信譽好的邢臺做網(wǎng)站瀏陽廖主任打人案
一、總結在使用Linux時遇到的各種坑
- yum 源要替換為國內源
- wget 需要用yum先行下載
- 在make的時候需要預先安裝各種庫
- 端口無法訪問時要記得去防火墻開啟端口訪問權限
- 安裝完各種程序的時候記得創(chuàng)建環(huán)境變量或者軟鏈接
- …
二、遇到故障如何正確高效的去解決
- 在使用yum下載wget的時候報錯:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的錯誤"One of the configured repositories failed (未知),and yum doesn't have enough cached data to continue. At this point the onlysafe thing yum can do is fail. There are a few ways to work "fix" this:1. Contact the upstream for the repository and get them to fix the problem.2. Reconfigure the baseurl/etc. for the repository, to point to a workingupstream. This is most often useful if you are using a newerdistribution release than is supported by the repository (and thepackages for the previous distribution release still work).3. Disable the repository, so yum won't use it by default. Yum will thenjust ignore the repository until you permanently enable it again or use--enablerepo for temporary usage:yum-config-manager --disable <repoid>4. Configure the failing repository to be skipped, if it is unavailable.Note that yum will try to contact the repo. when it runs most commands,so will have to try and fail each time (and thus. yum will be be muchslower). If it is a very temporary problem though, this is often a nicecompromise:yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=trueCannot find a valid baseurl for repo: base/7/x86_64
快速抓住關鍵語句即Cannot find a valid baseurl for repo: base/7/x86_64
并在加上簡單的問題描述后Google或者baidu,期望在哪個網(wǎng)站得到答案則加網(wǎng)站關鍵詞后綴,例如:
# CSDN
Linux yum 報錯 Cannot find a valid baseurl for repo: base/7/x86_64 CSDN
# 博客園
Linux yum 報錯 Cannot find a valid baseurl for repo: base/7/x86_64 cnblog
# 簡書
Linux yum 報錯 Cannot find a valid baseurl for repo: base/7/x86_64 jianshu
# stack overflow
Linux yum 報錯 Cannot find a valid baseurl for repo: base/7/x86_64 stack overflow
檢索查詢結果并嘗試,最后解決問題。