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
    • 最新
    • 标签
主页 / user-516679

ogbofjnr's questions

Martin Hope
ogbofjnr
Asked: 2022-09-30 08:09:03 +0800 CST

无法执行二进制文件:Centos 上的执行格式错误

  • 0

我正在尝试在 hetzner 上的 CentOS 9 上安装 yq。

 wget https://github.com/mikefarah/yq/releases/download/v4.27.5/yq_linux_arm64 && chmod +x yq_linux_arm64 && ./yq_linux_arm64

错误是:

bash: ./yq_linux_arm64: cannot execute binary file: Exec format error

拱门信息:

[root@centos-2gb-nbg1-1 ~]# uname -a
Linux centos-2gb-nbg1-1 5.14.0-148.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 19 13:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
linux
  • 1 个回答
  • 59 Views
Martin Hope
ogbofjnr
Asked: 2021-12-05 14:46:31 +0800 CST

如何将流量从 squid 重定向到 vpn?

  • 0

我有一台带有 squid 服务器和 VPN 客户端连接的 Windows 机器(这不是默认网关)

我想要的是将一些流量从 squid 重定向到我的默认以太网连接,并将一些流量重定向到 VPN。

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 192.168.100.11
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.100.1

PPP adapter vpn_conn:

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 172.16.3.33
   Subnet Mask . . . . . . . . . . . : 255.255.255.255
   Default Gateway . . . . . . . . . :

鱿鱼

http_port 2003
acl  user3_acl  myport 2003
tcp_outgoing_address 172.16.3.33 user3_acl

http_port 2004
acl  user4_acl  myport 2004

2004 端口通过我的以太网适配器按预期工作,但重定向到 vpn 不起作用,

日志包含

1638648992.630     75 33.33.333.333 NONE/503 0 CONNECT docs.microsoft.com:443 - HIER_NONE/- -
vpn routing proxy squid
  • 1 个回答
  • 352 Views
Martin Hope
ogbofjnr
Asked: 2020-10-30 02:02:20 +0800 CST

如何用 tar 改写目录?

  • 0

我想用 tar 提取文件,以便覆盖整个目录。我添加了--overwrite-dir,但test目录中的旧文件仍然存在。对于测试,我有/home/ubuntu/f1/test/first.log并且/home/ubuntu/f2/test/second.log

然后我跑进去/home/ubuntu/f1

tar cvf - ./test | sudo tar -C /home/ubuntu/f2 --overwrite-dir -xvf -

并且ls /home/ubuntu/f2/test期望只看到 second.log 文件。但相反,我得到了两者。是否可以只使用 tar?

linux shell archive tar
  • 1 个回答
  • 711 Views
Martin Hope
ogbofjnr
Asked: 2020-09-11 10:38:23 +0800 CST

为什么ufw拒绝(传入)仍然允许连接

  • 1

我启用了ufw。是ufw status verbose输出

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW IN    Anywhere                  
22/tcp (v6)                ALLOW IN    Anywhere (v6)    

但是当我运行 nginx 时, docker run --name nginx -p 80:80 -d nginx 我仍然可以在浏览器中看到 nginx 欢迎页面,并且 nmap 显示 80 端口已打开。

firewall ufw
  • 1 个回答
  • 421 Views
Martin Hope
ogbofjnr
Asked: 2020-08-28 15:09:46 +0800 CST

Fio品牌开关量

  • 0

在磁盘基准测试工具 fio 中有 brandswitch 的统计信息

Run status group 0 (all jobs):
   READ: bw=20.9MiB/s (21.9MB/s), 10.4MiB/s-10.8MiB/s (10.9MB/s-11.3MB/s), io=64.0MiB (67.1MB), run=2973-3069msec

根据文档:

Values outside of brackets are power-of-2 format and those within are the equivalent value in a power-of-10 format.

据我所知 1 MB/s = 8MiB/s。但这里 20.9MiB/s 符合 21.9MB/s。

hard-drive io filesystems benchmark
  • 1 个回答
  • 339 Views
Martin Hope
ogbofjnr
Asked: 2019-04-16 02:35:49 +0800 CST

如何使用 Kubernetes 同时更新 2 个服务?

  • 1

Kubernetes 滚动更新将通过更新创建新的 Pod,并逐渐将旧的 Pod 替换为新的,一旦新 Pod 准备好,它将通过与旧 Pod 的循环获取流量。

但是,如果我有 2 个服务,其中一个正在使用另一个服务并且我需要同时在它们中进行更新,该怎么办?我不希望旧服务 1 会调用新服务 2 的情况。

docker
  • 1 个回答
  • 79 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