AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[cache](ubuntu)

Martin Hope
Marcel
Asked: 2020-08-23 03:03:12 +0800 CST

ubuntu 会自动清除 ~/.cache 吗?

  • 0

我想知道默认情况下是否有任何东西可以清除.cache文件夹。据我了解.cache,类似于/tmp,至少我看到它被这样使用。这意味着缓存或临时文件中的任何内容都可能在某个时间点被重新访问,甚至被清理掉,无论它是否丢失都无关紧要。

cron cache
  • 2 个回答
  • 326 Views
Martin Hope
kl_divergence
Asked: 2020-07-10 23:35:10 +0800 CST

完全重置 MS Teams

  • 20

几个月前,我通过一个组织帐户使用了 Microsoft Teams (Linux)。现在我想将它与其他帐户一起使用。我目前处于注销状态,因为我无权访问 org 帐户。每次打开,它都会带我到组织页面,并要求我登录。没有Use Another account或Sign In with another account选项。当您最初打开时,当它发送请求以将我们带到组织页面时,有一个取消选项,但这不起作用。它使应用程序无响应。

apt-remove现在我尝试使用, from software center, .多次卸载purge。每次我安装时,它都会获取数据/缓存,并尝试将我带到同一个组织页面。我怎样才能完全重置,删除它用于使用我的新帐户安装的数据。

apt microsoft cleanup cache
  • 2 个回答
  • 8120 Views
Martin Hope
johhnry
Asked: 2020-07-10 16:08:46 +0800 CST

如何查看 systemd-resolve dns 缓存?

  • 5

使用sudo systemd-resolve --statistics让我查看当前的 dns 缓存统计信息,例如:

Cache                     
  Current Cache Size: 68  
          Cache Hits: 412 
        Cache Misses: 461

我想查看 dns 缓存的所有条目(这里是 68 个),可以吗?

dns cache systemd-resolved
  • 1 个回答
  • 6727 Views
Martin Hope
Kevin Wilkins
Asked: 2020-07-04 11:07:32 +0800 CST

所有命令的权限,但无法清除缓存

  • 0

我正在尝试清除正在运行的笔记本电脑上的缓存:

Operating System: Ubuntu 20.04 LTS
          Kernel: Linux 5.4.0-40-generic

但是,当我输入这些命令时,这是输出:

$ sudo sync; echo 1 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm/drop_caches: Permission denied
$ sudo sync; echo 2 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm/drop_caches: Permission denied
$ sudo sync; echo 3 > /proc/sys/vm/drop_caches
bash: /proc/sys/vm/drop_caches: Permission denied

但是,当检查我的权限时,我得到了这个:

$ sudo -l
Matching Defaults entries for [MY USERNAME] on [COMPUTER NAME]:
    env_reset, mail_badpass,
    secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin
User [MY USERNAME] may run the following commands on [COMPUTER NAME]:
    (ALL : ALL) ALL

看来我可以运行所有命令。为什么会发生这种情况,有解决办法吗?

我也在root中复制了这个问题。

command-line permissions bash cache
  • 1 个回答
  • 868 Views
Martin Hope
amrikS
Asked: 2020-04-24 13:04:01 +0800 CST

systemd-resolved 保留多个缓存副本?

  • 3

我systemd-resolved进入调试模式,试图解决来自这台机器的大量 DNS 查询(tcfe01)。似乎systemd-resolved保留了多个缓存副本,一个用于全局范围(*/*),另一个用于特定网络设备(eno1/*)。从日志看来,似乎只有全局范围 ( */*) 被缓存,而不是 ( eno1/*)。对于第一个查询,我们看到Cache miss两个范围,但对于后续查询,我们得到Positive cache hit全局范围,但又Cache miss是设备范围,我们最终每次都访问 DNS 服务器。

这违背了拥有缓存的全部目的,不仅损害了本地计算机 ( tcfe01) 的性能,而且还不必要地破坏了 DNS 服务器。对这种行为的任何洞察都会非常有帮助。

Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Got DNS stub UDP query packet for id 14184
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Looking up RR for google.com IN A.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Switching to DNS server 192.168.10.25 for interface eno1.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Switching to system DNS server 192.168.10.25.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Cache miss for google.com IN A
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Transaction 48281 for <google.com IN A> scope dns on */*.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Using feature level UDP+EDNS0 for transaction 48281.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Using DNS server 192.168.10.25 for transaction 48281.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Sending query packet with id 48281.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Cache miss for google.com IN A
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Transaction 1213 for <google.com IN A> scope dns on eno1/*.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Using feature level UDP+EDNS0 for transaction 1213.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Using DNS server 192.168.10.25 for transaction 1213.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Sending query packet with id 1213.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Processing query...
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Processing incoming packet on transaction 48281. (rcode=SUCCESS)
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Verified we get a response at feature level UDP+EDNS0 from DNS server 192.168.10.25.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Added positive unauthenticated cache entry for google.com IN A 299s on */INET/192.168.10.25
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Transaction 48281 for <google.com IN A> on scope dns on */* now complete with <success> from network (unsigned).
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Freeing transaction 1213.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Sending response packet with id 14184 on interface 1/AF_INET.
Apr 23 16:45:34 tcfe01 systemd-resolved[26041]: Freeing transaction 48281.


Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Got DNS stub UDP query packet for id 50679
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Looking up RR for google.com IN A.
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Positive cache hit for google.com IN A
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Transaction 51371 for <google.com IN A> on scope dns on */* now complete with <success> from cache (unsigned).
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Cache miss for google.com IN A
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Transaction 16504 for <google.com IN A> scope dns on eno1/*.
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Using feature level UDP+EDNS0 for transaction 16504.
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Using DNS server 192.168.10.25 for transaction 16504.
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Sending query packet with id 16504.
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Freeing transaction 51371.
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Freeing transaction 16504.
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Sending response packet with id 50679 on interface 1/AF_INET.
Apr 23 16:45:45 tcfe01 systemd-resolved[26041]: Processing query...


Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Got DNS stub UDP query packet for id 50950
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Looking up RR for google.com IN A.
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Positive cache hit for google.com IN A
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Transaction 27482 for <google.com IN A> on scope dns on */* now complete with <success> from cache (unsigned).
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Cache miss for google.com IN A
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Transaction 24663 for <google.com IN A> scope dns on eno1/*.
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Using feature level UDP+EDNS0 for transaction 24663.
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Using DNS server 192.168.10.25 for transaction 24663.
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Sending query packet with id 24663.
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Freeing transaction 27482.
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Freeing transaction 24663.
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Sending response packet with id 50950 on interface 1/AF_INET.
Apr 23 16:45:48 tcfe01 systemd-resolved[26041]: Processing query...
cache systemd-resolved
  • 1 个回答
  • 550 Views
Martin Hope
maxwatt
Asked: 2020-04-04 08:43:55 +0800 CST

降级存储库

  • 1

我正在使用 Ubuntu 18.04,我需要降级一些软件包,但我无法在 /var/cache/apt/archives 上找到它们,所以我正在寻找一些能够维护旧版本的外部 Ubuntu 18.04 兼容存储库,如果存在的话,当然!:)

repository apt cache downgrade
  • 1 个回答
  • 77 Views
Martin Hope
maxwatt
Asked: 2020-04-04 07:04:33 +0800 CST

APT "/var/cache/apt/archives" 缓存配置

  • 0

我需要可以配置 APT "/var/cache/apt/archives" 缓存。

例子:

  1. 设置“最大文件夹缓存大小”
  2. 获取/设置“必须经过多少时间才能删除旧版本的 DEB 文件”。
apt cache deb configure
  • 1 个回答
  • 247 Views
Martin Hope
corradini riccardo
Asked: 2020-03-21 07:12:16 +0800 CST

Ubuntu 启动失败后的“请求缓存数据失败”和“假设驱动器缓存:直写”消息

  • 2

今天我使用的是我的(旧)康柏笔记本电脑,Lubuntu 经常安装在分区上。突然,它停止响应任何输入,所以我(错误地?)决定重新启动系统。

在引导过程结束时显示 Lubuntu 徽标后,屏幕变黑,线条

Stopping System V runlevel compatibility

显示和以下两条消息

Asking for cache data failed 

和

Assuming drive cache: write through

反复出现。我的笔记本电脑卡在那里,操作系统没有启动。

今天下午我一直在互联网上寻找一些建议,尤其是在 askubuntu.com 上,但很遗憾似乎没有人遇到完全相同类型的错误。我仍在努力。如果您有任何想法,请回复此帖子。

非常感谢

boot dual-boot lubuntu cache runlevel
  • 1 个回答
  • 1933 Views
Martin Hope
icecub
Asked: 2019-11-26 06:29:25 +0800 CST

有没有办法设置(最大)数量的缓冲区/缓存 Ubuntu 服务器从 RAM 中保留?

  • 6

我最近将服务器的 RAM 升级到了 16 GB。服务器本身不需要太多 RAM,但 Ubuntu 似乎为缓存保留了相当多的空间。

这样做free - m会导致:

              total        used        free      shared  buff/cache   available
Mem:          15498        1811        7478          31        6208       13326
Swap:          3401           0        3401

它连续运行 2 个月时使用不到 2 GB,但如果我理解正确,它会保留 6 GB。我还计划在它上面运行一个 Minecraft 服务器,它需要 8 GB RAM,而只有 7 GB “免费”。

因此,问题是:我可以限制为缓存保留的数量,以便我可以免费使用吗?

cache ram
  • 1 个回答
  • 5116 Views
Martin Hope
int_ua
Asked: 2019-11-07 05:29:26 +0800 CST

什么使用和填充~/.cache/kioexec/krun/?

  • 5

我刚刚注意到那里的一些文件是很久以前创建的,它们看起来就像我的文件的副本已经存在于其他地方的文件系统中。哪些进程或哪些进程使用此文件夹,具体用于什么目的?

kde cache
  • 1 个回答
  • 2639 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve