小编DrA*_*rAl的帖子

DNS 适用于主机,但不适用于 wget

TL; 博士

我遇到了一个奇怪的情况,我可以在某些主机上进行 DNS 查找,而在其他主机上则不能。这似乎与 resolv.conf 有一个指向我的名称服务器的名称服务器条目和另一个可能与 docker 相关的条目有关,但我不确定如何修复它。

问题

我一直在阅读Stéphane Graber 对 LXD 的精彩介绍,并想尝试一下。因此,我做了:

$ sudo usermod -a -G lxd <myusername>
$ newgrp lxd
$ sudo lxd init
Run Code Online (Sandbox Code Playgroud)

我使用所有默认设置对其进行了配置。然后我输入:

$ lxc image list images:
error: Get https://images.linuxcontainers.org/streams/v1/index.json: lookup images.linuxcontainers.org: no such host
Run Code Online (Sandbox Code Playgroud)

一些测试

我尝试从另一台 PC 上的 Web 浏览器访问该地址,并且运行良好。所以我认为 DNS 设置一定有问题,但是:

$ host images.linuxcontainers.org
images.linuxcontainers.org is an alias for canonical.images.linuxcontainers.org.
canonical.images.linuxcontainers.org has address 91.189.91.21
canonical.images.linuxcontainers.org has address 91.189.88.37
canonical.images.linuxcontainers.org has IPv6 address 2001:67c:1560:8001::21
canonical.images.linuxcontainers.org has IPv6 address 2001:67c:1562::41 …
Run Code Online (Sandbox Code Playgroud)

networking dns lxc docker 16.10

10
推荐指数
1
解决办法
6084
查看次数

内存使用量没有增加 - 是什么在使用我的内存?

我的计算机(运行 Ubuntu Server 16.04)当前使用 15.4 GB RAM 中的 13.4 GB(根据 htop),但我很难理解是什么在使用该内存。

free -m报告:

              total        used        free      shared  buff/cache   available
Mem:          15733       13781        1083          22         868        1592
Swap:         71524         430       71094
Run Code Online (Sandbox Code Playgroud)

top显示内存使用率最高的进程占用了 6.8% 的内存,第二大的进程占用了 0.4% 的内存。

如果我使用ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -n,它会显示与占用 1104 MB RAM 的(相同)最高内存使用进程,与 相比,这听起来很正确top

如果我将 ps 报告的每个进程的所有值相加:

ps aux | awk '{sum=sum+$6}; END {print sum/1024 " MB"}'
Run Code Online (Sandbox Code Playgroud)

它报告总共使用了 1.8 GB RAM。

因此ps,我认为我使用的是 1.8 GB …

memory-usage ram

7
推荐指数
2
解决办法
6232
查看次数

Ubuntu 16.10 上的 Intel SkyLake 空白屏幕

当我最近在一台新机器上安装 Ubuntu 16.10(华擎 Z170 Gaming-ITX/AC S1151 M-ITX Intel 主板,带有 Intel Core Skylake 处理器 i5-6500/3.2 GHz 处理器 CPU)时,我在第一次启动时出现黑屏。

在网上搜索了很多之后,我发现我可以nomodeset在内核命令行上正确引导到 Linux 。但是,这限制了我的图形选项,因为xrandr -q只报告一台显示器:

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
   1024x768      76.00*
Run Code Online (Sandbox Code Playgroud)

我已经阅读了很多网站,这些网站表明这是早期内核版本(需要i915.preliminary_hw_support=1)中的一个问题,并且使用 4.3+ 应该没问题,但我有:

Linux mypc 4.8.0-26-generic #28-Ubuntu SMP Tue Oct 18 14:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

所以我认为这应该不是问题。根据我读过的一些网站,我尝试了以下所有内核选项(以及一些主要随机的组合),但都没有帮助:

i915.preliminary_hw_support=1
i915.i915_enable_rc6=1 …
Run Code Online (Sandbox Code Playgroud)

display multiple-monitors intel-graphics

6
推荐指数
1
解决办法
4538
查看次数