Hello World!|

liutimo

园龄:9年9个月粉丝:3关注:7

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报错合集

  1. signature hdr data: BAD, no. of bytes(127884) out of range
    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'.
    j解决方案:dnf update rpm
    Centos 8 not updating

本文作者:刘提莫

本文链接:https://www.cnblogs.com/liutimo/p/16733437.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   liutimo  阅读(579)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起