信譽(yù)好的邢臺(tái)做網(wǎng)站瀏陽廖主任打人案
一、總結(jié)在使用Linux時(shí)遇到的各種坑
- yum 源要替換為國內(nèi)源
- wget 需要用yum先行下載
- 在make的時(shí)候需要預(yù)先安裝各種庫
- 端口無法訪問時(shí)要記得去防火墻開啟端口訪問權(quán)限
- 安裝完各種程序的時(shí)候記得創(chuàng)建環(huán)境變量或者軟鏈接
- …
二、遇到故障如何正確高效的去解決
- 在使用yum下載wget的時(shí)候報(bào)錯(cuò):
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; 未知的錯(cuò)誤"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
快速抓住關(guān)鍵語句即Cannot find a valid baseurl for repo: base/7/x86_64
并在加上簡(jiǎn)單的問題描述后Google或者baidu,期望在哪個(gè)網(wǎng)站得到答案則加網(wǎng)站關(guān)鍵詞后綴,例如:
# CSDN
Linux yum 報(bào)錯(cuò) Cannot find a valid baseurl for repo: base/7/x86_64 CSDN
# 博客園
Linux yum 報(bào)錯(cuò) Cannot find a valid baseurl for repo: base/7/x86_64 cnblog
# 簡(jiǎn)書
Linux yum 報(bào)錯(cuò) Cannot find a valid baseurl for repo: base/7/x86_64 jianshu
# stack overflow
Linux yum 報(bào)錯(cuò) Cannot find a valid baseurl for repo: base/7/x86_64 stack overflow
檢索查詢結(jié)果并嘗試,最后解決問題。