[root@localhost ~]# yum -y update
已加载插件:fastestmirror
Loading mirror speeds from cached hostfileOne 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. Run the command with the repository temporarily disabledyum --disablerepo= ...4. Disable the repository permanently, so yum won't use it by default. Yumwill then just ignore the repository until you permanently enable itagain or use --enablerepofor temporary usage:yum-config-manager --disableorsubscription-manager repos --disable=5. 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=.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base
变量 常见的变量声明方式
一、声明单个变量的多种方式
1.声明一个变量初始化一个值
//声明变量 默认值是0,var a int//初始化一个值a 1fmt.Println(a)
2. 在初始化的时候省去数据类型,通过值自动匹配当前的变量的数据类型 var b 2fmt.Println(&quo…