linux基础--配置篇
ubuntu设置apt代理
最初以为设置all_proxy环境变量即可,但是没生效。最后发现要这样操作:
sudo vim /etc/apt/apt.conf
, ADD:
Acquire::http::Proxy "http://yourproxyaddress:proxyport";
zsh && oh-my-zsh
切换root用户后,命令执行后要卡顿2s左右
原文
在 oh-my-zsh 进入 包含 git 仓库目录时,会变的比平时慢/卡顿
原因是因为 oh-my-zsh 要获取 git 更新信息
解决办法:
设置 oh-my-zsh 不读取文件变化信息(在 git 项目目录执行下列命令)
git config --add oh-my-zsh.hide-dirty 1
如果你还觉得慢,可以再设置 oh-my-zsh 不读取任何 git 信息
git config --add oh-my-zsh.hide-status 1
ok了,如果想恢复,设置成0就好
Centos
yum报错合集
- signature hdr data: BAD, no. of bytes(127884) out of range
j解决方案:error: /var/cache/dnf/os-86dc4ac5eda5a39e/packages/util-linux-2.32.1-41.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(127884) out of range The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'. dnf update rpm
。
Centos 8 not updating
本文作者:刘提莫
本文链接:https://www.cnblogs.com/liutimo/p/16733437.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步