我有一个在 Azure 中运行的 Centos7 VM 实例。它有一个可通过互联网访问的公共 IPv4 地址。我想向该实例的网络接口添加公共 IPv6 地址,但我不知道如何执行此操作。似乎没有办法将其从门户添加到界面。我查阅了文档,但似乎有冲突的信息表明这是不可能的,或者只能通过创建新的虚拟机来实现。我也尝试过这一点,但再次无法使其发挥作用。我在 Google 上找到的信息似乎已过时。
如果有人能建议是否可以将公共 IPv4 和 IPv6 地址分配给同一个虚拟机,以及如果可以的话如何实现,我将非常感激。谢谢!
背景: CentOS 8、Postfix、Dovecot、Digital Ocean Droplet。
我的邮件服务器可以毫无问题地发送和接收电子邮件。我的 DNS 记录包括我的邮件服务器的A,AAAA和MX记录。
A mail.example.com directs to 10.10.10.1
AAAA mail.example.com directs to 1111:1111:1111:1111:1111:1111:1111
MX mail.example.com mail handled by mail.example.com
Run Code Online (Sandbox Code Playgroud)
但是,当我在MXtoolbox上测试我的设置时,MX Lookup 测试返回了一个错误。
Category: MX Result: DNS Record not found
Run Code Online (Sandbox Code Playgroud)
问题)哪个记录丢失或配置错误?我不确定在这种情况下要添加或修复什么,尤其是因为可以发送和接收电子邮件。
我是这个领域的新手,所以我一直在研究 ufw 和 iptables。但是我无法清楚地区分它们,因为在每篇文章/博客中都出现了这两个名称,我真的很困惑它们是否相似。我知道 ufw 是防火墙(如果我没记错的话),但为什么它总是与 iptables 相关联?防火墙和 iptable 哪个更好?谢谢你。
如何修复 apache2“proxy_http:error”AH01102: 从远程服务器 localhost:4382 读取状态行时出错。
我有一个 apache2 Web 服务器,用于在后端为一些 Nodejs 应用程序提供服务。
Apache2网络服务器版本:服务器版本:Apache/2.4.41(Ubuntu)服务器构建:2019-08-21T20:43:05
Nodejs版本:v10.18.1
蒙戈数据库版本:v4.0.15
我们在所有后端应用程序“proxy_http:错误”AH01102:从远程服务器本地主机读取状态行时出错:4382 上都受到以下错误/错误(请参阅日志)的困扰。
[Mon Apr 27 20:09:05.697271 2020] [proxy_http:error] [pid 26792:tid 140063099688704] (70007)The timeout specified has expired: [client 178.153.198.97:52385] AH01095: prefetch request body failed to 127.0.0.1:4381 (localhost) from 178.153.198.97 (), referer: https://www.example.com/sub-admin/menus/add-menu
[Mon Apr 27 20:21:51.617095 2020] [proxy_http:error] [pid 26764:tid 140062901626624] (104)Connection reset by peer: [client 178.153.195.206:61268] AH01102: error reading status line from remote server localhost:4382, referer: http://www.example.com/restaurant/dashboard
[Mon Apr 27 20:21:51.617117 2020] [proxy:error] [pid 26764:tid 140062901626624] …Run Code Online (Sandbox Code Playgroud) 我有一部扮演一个或多个角色的戏剧。我想列出可用的标签而不解析所有代码。我确实正在尝试记住我在开发阶段放置的所有标签方面的一些困难。
如何列出标签属性中的所有标签:
- name: "Any Task"
tags:
- debug
- name: "any second taks"
tags:
- second
Run Code Online (Sandbox Code Playgroud)
我想要一个命令
debug
second
Run Code Online (Sandbox Code Playgroud) 如何使用 CLI 在 AWS Secrets Manager 中为密钥设置二进制值?
该文件说:
--secret-binary (blob)(可选)指定要加密并存储在新版本密钥中的二进制数据。要在命令行工具中使用此参数,我们建议您将二进制数据存储在文件中,然后使用适合您的工具的适当技术将文件内容作为参数传递。
我尝试了以下方法:
$ V=$(cat mykeystore.jks)
$ aws secretsmanager put-secret-value --secret-id xxx --secret-binary "$V"
'utf8' codec can't decode byte 0xfe in position 0: invalid start byte
Run Code Online (Sandbox Code Playgroud) 我有一个 HAProxy 负载均衡器,我想用它来标记具有唯一 id(X-Unique-ID 标头)的请求,以便我可以关联多个系统中的日志之间的事件。
HAProxy 具有使用指令执行此操作的功能unique-id-format。文档解释说,这仅使用日志系统中的语法,并继续建议您使用客户端和服务器 IP 地址、时间戳等内容来构建可能唯一的内容。
我想知道是否可以为每个请求生成一个随机(版本 4)UUID(或类似的东西),而不是生成具有潜在敏感客户端信息(如 IP 地址和请求时间)的 UUID。
在 Windows 10 上启动 PowerShell 7。
PowerShell 7.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/powershell
Type 'help' to get help.
Warning: PowerShell detected that you might be using a screen reader and has disabled PSReadLine for compatibility purposes. If you want to re-enable it, run 'Import-Module PSReadLine'.
Run Code Online (Sandbox Code Playgroud)
PowerShell 启动时不显示警告,因为我没有使用屏幕阅读器。
运行指定的命令Import-Module PSReadLine。自从我第一次想了解为什么会出现警告以来,我就没有运行过它。
$PSVersionTable 输出:Name Value
---- -----
PSVersion 7.0.0
PSEdition Core
GitCommitId 7.0.0
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, …Run Code Online (Sandbox Code Playgroud) # df -H
Filesystem Size Used Avail Use% Mounted on
...
/dev/bcache4 8.1T 1.9T 0 100% /mnt/8t4
Run Code Online (Sandbox Code Playgroud)
# btrfs fi df -H /mnt/8t4
Data, single: total=1.84TB, used=1.82TB
System, DUP: total=33.55MB, used=212.99kB
Metadata, DUP: total=2.15GB, used=1.91GB
GlobalReserve, single: total=536.87MB, used=0.00B
Run Code Online (Sandbox Code Playgroud)
# btrfs fi usage /mnt/8t4
Overall:
Device size: 7.28TiB
Device allocated: 1.67TiB
Device unallocated: 5.60TiB
Device missing: 0.00B
Used: 1.66TiB
Free (estimated): 5.62TiB (min: 2.81TiB)
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 512.00MiB (used: 0.00B)
Data,single: Size:1.67TiB, Used:1.66TiB (99.26%)
/dev/bcache4 …Run Code Online (Sandbox Code Playgroud) 我正在尝试删除属于已灭绝的 k8s 入口的转发规则、目标代理、url 映射和后端服务。
我成功删除了转发规则和目标代理,但是当我去删除 url-map 时,我得到以下信息:
gcloud compute url-maps delete k8s-um-prism-feature-password-workflow-unit-tests-prism-ingres0 --quiet
ERROR: (gcloud.compute.url-maps.delete) Could not fetch resource:
- The url_map resource 'projects/project-id/global/urlMaps/k8s-um-prism-feature-password-workflow-unit-tests-prism-ingres0' is already being used by 'projects/project-id/global/targetHttpProxies/k8s-tp-prism-feature-password-workflow-unit-tests-prism-ingres0
Run Code Online (Sandbox Code Playgroud)
k8s-tp-prism-feature-password-workflow-unit-tests-prism-ingres0不是它所属的目标代理的名称,但我继续尝试删除它并得到:
gcloud compute target-https-proxies delete k8s-tp-prism-feature-password-workflow-unit-tests-prism-ingres0 --quiet
ERROR: (gcloud.compute.target-https-proxies.delete) Could not fetch resource:
- The resource 'projects/project-id/global/targetHttpsProxies/k8s-tp-prism-feature-password-workflow-unit-tests-prism-ingres0' was not found
Run Code Online (Sandbox Code Playgroud) kubernetes google-cloud-platform google-kubernetes-engine ingress
ansible ×1
apache-2.4 ×1
aws-cli ×1
azure ×1
btrfs ×1
firewall ×1
haproxy ×1
http-proxy ×1
ingress ×1
iptables ×1
ipv6 ×1
kubernetes ×1
linux ×1
mod-proxy ×1
mx-record ×1
networking ×1
node.js ×1
powershell ×1
ufw ×1
uuid ×1