有很多 NTP 服务器,如 time.google.com time.cloudfare.com 等。这些服务会记录访问者的 ip 地址吗?听说 http 服务器会记录 ip 地址,虽然与此问题无关,但 GDPR 要求删除 ip 地址。
我试图从超过十分钟的远程目录中提取所有内容,然后删除源文件。
我的远程查找似乎正在工作(在远程框上独立测试),但是当 rsync 开始使用它时,我的用户的主路径被添加到查找输出的前缀,如下所示:
rsync -avz --dry-run --remove-source-files --files-from=<(ssh spot@host "find /mnt/volume_2/partners/test/uploads/ -amin +10 -type f,d -print0") spot@host:. .
receiving incremental file list
rsync: [sender] link_stat "/home/spot/mnt/volume_2/partners/test/uploads" failed: No such file or directory (2)
rsync: [sender] link_stat "/home/spot/mnt/volume_2/partners/test/uploads/file-1054" failed: No such file or directory (2)
rsync: [sender] link_stat "/home/spot/mnt/volume_2/partners/test/uploads/file-1105" failed: No such file or directory (2)
rsync: [sender] link_stat "/home/spot/mnt/volume_2/partners/test/uploads/file-1105/subfile-1105" failed: No such file or directory (2)
rsync: [sender] link_stat "/home/spot/mnt/volume_2/partners/test/uploads/file-1101" failed: No such file or directory (2)
rsync: [sender] …Run Code Online (Sandbox Code Playgroud) 我遇到了一个问题,即某些首先尝试通过 HTTP/1.1 连接的客户端没有正确转发到 HTTPS
curl -v http://indentationerror.com/
* Trying 217.45.175.173:80...
* Connected to indentationerror.com (217.45.175.173) port 80 (#0)
> GET / HTTP/1.1
> Host: indentationerror.com
> User-Agent: curl/7.73.0
> Accept: */*
>
* Received HTTP/0.9 when not allowed
* Closing connection 0
curl: (1) Received HTTP/0.9 when not allowed
Run Code Online (Sandbox Code Playgroud)
但是,使用以下命令:
curl -v http://indentationerror.com/ --http2-prior-knowledge
Run Code Online (Sandbox Code Playgroud)
nginx 按预期通过 HTTP/2 返回 301 重定向
我的配置目前是:
server {
server_name www.indentationerror.com;
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl on;
root "/http/indentationerror.com/www";
include /etc/nginx/genericHandlers/indentationerror.com;
} …Run Code Online (Sandbox Code Playgroud) 我使用 SMART 自检来测试我所有的硬盘驱动器和 SSD。我每天进行一次短期测试,每月进行一次长期测试。
我的一个 SSD 显示出奇怪的行为,因为生命周期时间似乎重置为零。这是正常的吗?为什么要这样做?我以前从未见过这种行为。这是一个令人担忧的原因吗?
我用来启动测试的命令(通过 crontab 启动的脚本)是:
smartctl --test=short $DISK
Run Code Online (Sandbox Code Playgroud)
这是显示奇怪行为的错误日志的副本:
smart self-test log structure revision number 1
num test_description status remaining lifetime(hours) lba_of_first_error
# 1 short offline completed without error 00% 110 -
# 2 short offline completed without error 00% 86 -
# 3 short offline completed without error 00% 62 -
# 4 short offline completed without error 00% 38 -
# 5 short offline completed without error 00% 14 -
# 6 short …Run Code Online (Sandbox Code Playgroud) 我知道在启动新的 SSH 会话后Enter,我可以打开 SSH shell 来启动新隧道(然后~和最后C):
>ssh -L 9000:localhost:9000
Forwarding port.
Run Code Online (Sandbox Code Playgroud)
有没有办法在已经 SSH 的情况下以非交互方式完成此操作?
我在这里忽略安全隐患,这是针对本地开发情况,我可能需要打开一条通往将侦听随机端口的服务器的隧道。
我发现 AWS EC2 中的 T4g 和 T3a 实例非常相似,而且价格也大致相同。性能上有什么显着差异吗?我注意到 T4g 使用基于 ARM 的处理器,而 T3a 使用 AMD EPYC 处理器,但我不知道这如何影响性能。
我只是为我的项目托管一个基本的 LAMP 堆栈,几乎没有流量。
我有一个 Web,我想将其图像移动到 AWS S3。假设它被调用mypage.com,我可以访问这样的图像:
https://mypage.com/pics/one.jpg
Run Code Online (Sandbox Code Playgroud)
我创建了一个称为存储static.mypage.com所有图像的存储桶,所以现在我可以像这样访问图像:
https://static.mypage.com.s3.eu-west-1.amazonaws.com/pics/one.jpg
Run Code Online (Sandbox Code Playgroud)
由于它是一个很长的名称,我想使用 DNS 使用“缩短器”。
所以,我想知道如何在我的 DNS 提供商中设置 CNAME 以使其成为可能,如果我去...
https://static.mypage.com/pics/one.jpg
Run Code Online (Sandbox Code Playgroud)
...我会从桶中获取图像。
谢谢!
domain-name-system amazon-s3 cname-record amazon-web-services
我正在尝试为我的 Compute Engine 虚拟机实例获取公共外部 IP 地址。大多数网站的默认 IP 地址都被阻止。我尝试创建新的外部 IP,但这些网站似乎也被阻止了。我所需要的只是一个外部 IP,其中这些网站不会被阻止。我已经挣扎了两天了。
我可以在这里得到一些帮助吗?
我的 Windows 机器上运行着 Postgres,我需要从 WSL2 内部连接到它。
psql172.31.210.120,网络掩码255.255.240.0(使用 确定ipfconfig)。172.31.208.1(使用 确定cat /etc/resolv.conf)curl http://172.31.208.1:8080. 如果我记录传入请求的 IP,我会得到172.31.210.120这验证两个 IP 是否正确。pg_hba.conf:host all all 172.31.210.120/20 scram-sha-256如果我尝试使用以下命令从 WSL 连接到它:
$ psql --host=172.31.208.1 --port=5432 --user=postgres
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
psql: error: could not connect to server: could not connect to server: Connection …Run Code Online (Sandbox Code Playgroud) 我正在使用 AWS SES(沙盒模式)向 GMail 地址发送电子邮件。不幸的是,它被标记为垃圾邮件。
谷歌很好地在消息细节中告诉我这是一个 DMARC 失败
我阅读了官方文档:https : //docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-authentication-dmarc.html
这让我感到困惑(来自该页面的引用):
我的问题是,为什么 SPF 和 DKIM 都通过了,而 DMARC 却失败了?
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amazonses.com header.s=REDACTED header.b=REDACTED;
spf=pass (google.com: domain of REDACTED@eu-central-1.amazonses.com designates IP_REDACTED as permitted sender) smtp.mailfrom=REDACTED@eu-central-1.amazonses.com;
dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=example.com
Run Code Online (Sandbox Code Playgroud)
返回路径结束于 amazonses.com
(example.com存在用于 SPF 和 DKIM 的 DNS 条目)。
如果您需要任何其他信息来找到问题的根源,请告诉我