CentOS更改yum源与更新系统
摘要:[1] 首先备份/etc/yum.repos.d/CentOS-Base.repo [2] 进入yum源配置文件所在文件夹 [3] 下载163的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份) [4] 运行yum makecache生成缓存 [5] 更新系统 [6]
阅读全文
posted @
2016-10-23 20:04
asker7
阅读(113)
推荐(0)
linux查看系统版本信息
摘要:几种查看linux版本信息的方法: 1. uname -a 2. cat /proc/version 3. cat /etc/issue 4. lsb_release -a CentOS中-bash: lsb_release: command not found错误的解决方法 先看看这个命令属于哪个
阅读全文
posted @
2016-10-23 19:54
asker7
wget指定文件,指定目录,指定路径下载
摘要:转自 http://java-er.com/blog/wget-useage-x/ 有时候我们需要wget一个文件下载到指定的目录下,或者重命名成指定的名字wget -r -p -np -k -P ~/tmp/ http://Java-er.com wget居然有如此邪恶的用法 这个语句表示下载全站
阅读全文
posted @
2016-10-23 19:47
asker7
阅读(2759)
推荐(0)
Another app is currently holding the yum lock; waiting for it to exit.
摘要:执行yum 命令时,提示 Another app is currently holding the yum lock; waiting for it to exit. 解决方法 rm -rf /var/run/yum.pid 来强行解除锁定,然后你的yum就可以运行了
阅读全文
posted @
2016-10-23 19:46
asker7