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
    • 最新
    • 标签
主页 / server / 问题

全部问题(server)

Martin Hope
user1424739
Asked: 2019-01-21 17:50:55 +0800 CST

如何在 ubuntu docker 镜像上安装 tzdata?

  • 169

我在 Dockerfile 中有以下行。

RUN apt-get install -y tzdata

当我运行它时,它会询问我的输入。在我提供我的输入后,它就挂在那里了。有谁知道如何解决这个问题?

Step 25/25 : RUN apt-get install -y tzdata
 ---> Running in ee47a1beff84
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  tzdata
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 189 kB of archives.
After this operation, 3104 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tzdata all 2018i-0ubuntu0.18.04 [189 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 189 kB in 1s (219 kB/s)
Selecting previously unselected package tzdata.
(Reading database ... 25194 files and directories currently installed.)
Preparing to unpack .../tzdata_2018i-0ubuntu0.18.04_all.deb ...
Unpacking tzdata (2018i-0ubuntu0.18.04) ...
Setting up tzdata (2018i-0ubuntu0.18.04) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------

Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.

  1. Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc
  2. America     5. Arctic     8. Europe    11. SystemV
  3. Antarctica  6. Asia       9. Indian    12. US
Geographic area:
``
docker
  • 9 个回答
  • 146149 Views
Martin Hope
oz1cz
Asked: 2018-01-29 06:01:12 +0800 CST

IPv4 地址耗尽到底有多严重?

  • 168

多年来,媒体一直在报道现在可用的 IPv4 地址非常少的问题。但另一方面,我正在使用一家服务器托管公司,该公司很乐意以少量资金提供公共 IPv4 地址。我的私人互联网连接带有一个公共 IPv4 地址。

这怎么可能?问题是否像媒体希望我们相信的那样严重?

ip-address
  • 10 个回答
  • 33003 Views
Martin Hope
hookenz
Asked: 2013-05-14 20:11:27 +0800 CST

SSD 驱动器是否与机械驱动器一样可靠 (2013)?

  • 163
想要改进这篇文章?提供此问题的详细答案,包括引用和解释为什么你的答案是正确的。不够详细的答案可能会被编辑或删除。

SSD 驱动器已经存在好几年了。但是可靠性问题仍然存在。

我想这是 4 年前发布的这个问题的跟进,最后一次更新是在 2011 年。现在是 2013 年,变化很大吗?我想我正在寻找一些真实的证据,而不仅仅是直觉。也许您正在您的 DC 中使用它们。你有什么经验?

固态硬盘的可靠性


更新:

现在是 2016 年。我认为答案可能是肯定的(遗憾的是它们每 GB 的成本仍然更高)。

这份报告给出了一些证据:

生产中的闪存可靠性:预期和意外

还有一些关于(消费类)机械驱动器的有趣数据:

Backblaze:硬盘数据和统计

storage
  • 5 个回答
  • 32475 Views
Martin Hope
mahen3d
Asked: 2012-08-01 17:49:45 +0800 CST

DNS - NSLOOKUP 非权威答案是什么意思?

  • 166

对于某些域nslookup,给我一个Non-authoritative answer部分。这是什么意思?

Got answer:
    HEADER:
        opcode = QUERY, id = 3, rcode = NXDOMAIN
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 0,  authority records = 1,  additional =

    QUESTIONS:
        www.example.com.SME, type = AAAA, class = IN
    AUTHORITY RECORDS:
    ->  (root)
        ttl = 1787 (29 mins 47 secs)
        primary name server = a.root-servers.net
        responsible mail addr = nstld.verisign-grs.com

------------
Non-authoritative answer:
------------

------------
Name:    example.com
Address:  93.184.216.34
Aliases:  www.example.com
domain-name-system
  • 5 个回答
  • 391011 Views
Martin Hope
Morgan Cheng
Asked: 2010-03-29 00:46:37 +0800 CST

负载均衡器和反向代理有什么区别?

  • 167

我不清楚负载均衡器和反向代理之间的区别。它们似乎都有相同的行为:将传入请求分发到后端服务器。

load-balancing reverse-proxy
  • 4 个回答
  • 91773 Views
Martin Hope
user18682
Asked: 2009-10-26 06:02:03 +0800 CST

查找 Active Directory 域控制器的名称

  • 164

如何在我的网络上找到 AD 域控制器的名称/IP 地址?

active-directory
  • 9 个回答
  • 505055 Views
Martin Hope
Tony
Asked: 2009-07-10 13:17:49 +0800 CST

如何以友好的格式读取 pcap 文件?

  • 163

pcap 文件上的一个简单的猫看起来很糟糕:

$cat tcp_dump.pcap

?ò????YVJ?
          JJ
            ?@@.?E<??@@
?CA??qe?U????иh?
.Ceh?YVJ??
          JJ
            ?@@.?E<??@@
CA??qe?U????еz?
.ChV?YVJ$?JJ
            ?@@.?E<-/@@A?CAͼ?9????F???A&?
.Ck??YVJgeJJ@@.?Ӣ#3E<@3{nͼ?9CA??P?ɝ?F???<K?
?ԛ`.Ck??YVJgeBB
               ?@@.?E4-0@@AFCAͼ?9????F?P?ʀ???
.Ck??ԛ`?YVJ?""@@.?Ӣ#3E?L@3?Iͼ?9CA??P?ʝ?F?????
?ԛ?.Ck?220-rly-da03.mx

等等

我试图让它更漂亮:

sudo tcpdump -ttttnnr tcp_dump.pcap
reading from file tcp_dump.pcap, link-type EN10MB (Ethernet)
2009-07-09 20:57:40.819734 IP 67.23.28.65.49237 > 216.239.113.101.25: S 2535121895:2535121895(0) win 5840 <mss 1460,sackOK,timestamp 776168808 0,nop,wscale 5>
2009-07-09 20:57:43.819905 IP 67.23.28.65.49237 > 216.239.113.101.25: S 2535121895:2535121895(0) win 5840 <mss 1460,sackOK,timestamp 776169558 0,nop,wscale 5>
2009-07-09 20:57:47.248100 IP 67.23.28.65.42385 > 205.188.159.57.25: S 2644526720:2644526720(0) win 5840 <mss 1460,sackOK,timestamp 776170415 0,nop,wscale 5>
2009-07-09 20:57:47.288103 IP 205.188.159.57.25 > 67.23.28.65.42385: S 1358829769:1358829769(0) ack 2644526721 win 5792 <mss 1460,sackOK,timestamp 4292123488 776170415,nop,wscale 2>
2009-07-09 20:57:47.288103 IP 67.23.28.65.42385 > 205.188.159.57.25: . ack 1 win 183 <nop,nop,timestamp 776170425 4292123488>
2009-07-09 20:57:47.368107 IP 205.188.159.57.25 > 67.23.28.65.42385: P 1:481(480) ack 1 win 1448 <nop,nop,timestamp 4292123568 776170425>
2009-07-09 20:57:47.368107 IP 67.23.28.65.42385 > 205.188.159.57.25: . ack 481 win 216 <nop,nop,timestamp 776170445 4292123568>
2009-07-09 20:57:47.368107 IP 67.23.28.65.42385 > 205.188.159.57.25: P 1:18(17) ack 481 win 216 <nop,nop,timestamp 776170445 4292123568>
2009-07-09 20:57:47.404109 IP 205.188.159.57.25 > 67.23.28.65.42385: . ack 18 win 1448 <nop,nop,timestamp 4292123606 776170445>
2009-07-09 20:57:47.404109 IP 205.188.159.57.25 > 67.23.28.65.42385: P 481:536(55) ack 18 win 1448 <nop,nop,timestamp 4292123606 776170445>
2009-07-09 20:57:47.404109 IP 67.23.28.65.42385 > 205.188.159.57.25: P 18:44(26) ack 536 win 216 <nop,nop,timestamp 776170454 4292123606>
2009-07-09 20:57:47.444112 IP 205.188.159.57.25 > 67.23.28.65.42385: P 536:581(45) ack 44 win 1448 <nop,nop,timestamp 4292123644 776170454>
2009-07-09 20:57:47.484114 IP 67.23.28.65.42385 > 205.188.159.57.25: . ack 581 win 216 <nop,nop,timestamp 776170474 4292123644>
2009-07-09 20:57:47.616121 IP 67.23.28.65.42385 > 205.188.159.57.25: P 44:50(6) ack 581 win 216 <nop,nop,timestamp 776170507 4292123644>
2009-07-09 20:57:47.652123 IP 205.188.159.57.25 > 67.23.28.65.42385: P 581:589(8) ack 50 win 1448 <nop,nop,timestamp 4292123855 776170507>
2009-07-09 20:57:47.652123 IP 67.23.28.65.42385 > 205.188.159.57.25: . ack 589 win 216 <nop,nop,timestamp 776170516 4292123855>
2009-07-09 20:57:47.652123 IP 67.23.28.65.42385 > 205.188.159.57.25: P 50:56(6) ack 589 win 216 <nop,nop,timestamp 776170516 4292123855>
2009-07-09 20:57:47.652123 IP 67.23.28.65.42385 > 205.188.159.57.25: F 56:56(0) ack 589 win 216 <nop,nop,timestamp 776170516 4292123855>
2009-07-09 20:57:47.668124 IP 67.23.28.65.49239 > 216.239.113.101.25: S 2642380481:2642380481(0) win 5840 <mss 1460,sackOK,timestamp 776170520 0,nop,wscale 5>
2009-07-09 20:57:47.692126 IP 205.188.159.57.25 > 67.23.28.65.42385: P 589:618(29) ack 57 win 1448 <nop,nop,timestamp 4292123893 776170516>
2009-07-09 20:57:47.692126 IP 67.23.28.65.42385 > 205.188.159.57.25: R 2644526777:2644526777(0) win 0
2009-07-09 20:57:47.692126 IP 205.188.159.57.25 > 67.23.28.65.42385: F 618:618(0) ack 57 win 1448 <nop,nop,timestamp 4292123893 776170516>
2009-07-09 20:57:47.692126 IP 67.23.28.65.42385 > 205.188.159.57.25: R 2644526777:2644526777(0) win 0

嗯......这更漂亮,但它没有显示实际的消息。实际上,我只需查看 RAW 文件就可以提取更多信息。仅查看 pcap 文件的所有内容的最佳(最好是最简单的)方法是什么?

更新

感谢下面的回复,我取得了一些进展。这是它现在的样子:

tcpdump -qns 0 -A -r blah.pcap
    20:57:47.368107 IP 205.188.159.57.25 > 67.23.28.65.42385: tcp 480
        0x0000:  4500 0214 834c 4000 3306 f649 cdbc 9f39  [email protected]
        0x0010:  4317 1c41 0019 a591 50fe 18ca 9da0 4681  C..A....P.....F.
        0x0020:  8018 05a8 848f 0000 0101 080a ffd4 9bb0  ................
        0x0030:  2e43 6bb9 3232 302d 726c 792d 6461 3033  .Ck.220-rly-da03
        0x0040:  2e6d 782e 616f 6c2e 636f 6d20 4553 4d54  .mx.aol.com.ESMT
        0x0050:  5020 6d61 696c 5f72 656c 6179 5f69 6e2d  P.mail_relay_in-
        0x0060:  6461 3033 2e34 3b20 5468 752c 2030 3920  da03.4;.Thu,.09.
        0x0070:  4a75 6c20 3230 3039 2031 363a 3537 3a34  Jul.2009.16:57:4
        0x0080:  3720 2d30 3430 300d 0a32 3230 2d41 6d65  7.-0400..220-Ame
        0x0090:  7269 6361 204f 6e6c 696e 6520 2841 4f4c  rica.Online.(AOL
        0x00a0:  2920 616e 6420 6974 7320 6166 6669 6c69  ).and.its.affili
        0x00b0:  6174 6564 2063 6f6d 7061 6e69 6573 2064  ated.companies.d

等等

这看起来不错,但它仍然使右侧的实际消息难以阅读。有没有办法以更友好的方式查看这些消息?

更新

这使它很漂亮:

tcpick -C -yP -r tcp_dump.pcap

谢谢!

log-files tcpdump pcap
  • 6 个回答
  • 663830 Views
Martin Hope
Otto
Asked: 2009-06-02 13:47:14 +0800 CST

专用网络的顶级域/域后缀?

  • 171

在我们的办公室,我们有一个带有纯内部 DNS 设置的局域网,客户端都命名为whatever.lan. 我也有一个 VMware 环境,在纯虚拟机网络上,我将虚拟机命名为whatever.vm。

目前,无法从我们的局域网访问此虚拟机网络,但我们正在设置一个生产网络以将这些虚拟机迁移到该网络,该网络可从 LAN 访问。因此,我们正在尝试为我们正在设置的这个新网络上的来宾应用的域后缀/TLD 约定一个约定,但鉴于此,我们无法提出一个好的约定.vm,.local并且.lan在我们的环境中都有现有的内涵。

那么,在这种情况下,最佳做法是什么?是否有一个 TLD 或域名列表可以安全地用于纯内部网络?

domain-name-system local-area-network best-practices hostname
  • 10 个回答
  • 164400 Views
Martin Hope
readonly
Asked: 2009-05-19 09:27:09 +0800 CST

Linux上的文件名长度限制?

  • 163

Linux 上是否有任何文件名或路径长度限制?

linux limits
  • 8 个回答
  • 243093 Views
Martin Hope
Tom Dunham
Asked: 2009-05-18 01:00:51 +0800 CST

在没有窗口的计划任务中运行 .bat 文件

  • 163

robocopy我有一个计划任务,它启动一个每小时运行的批处理脚本。每次运行时,桌面上都会弹出一个带有 robocopy 输出的窗口,我真的不想看到。

我设法通过使计划的作业运行来使窗口最小化

cmd /c start /min mybat.bat

但这每小时都会给我一个新的命令窗口。鉴于“执行字符串指定的命令然后终止”,我对此感到惊讶cmd /c- 我一定误解了文档。

有没有办法在不弹出 cmd 窗口的情况下运行批处理脚本?

windows scripting scheduled-task command-line-interface windows-command-prompt
  • 11 个回答
  • 330664 Views
上一页
下一页

Sidebar

Stats

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

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve