unix-socket 相关问题

UNIX域套接字是一种在单台计算机上进行进程间通信的技术。


从stdin到插座的拼写:损坏的管道

在以下情况下,尽管据据我所知,但客户试图剪接时,客户试图剪接时有很小的机会接收“损坏的管道”。 (“小机会” ...

回答 1 投票 0

将标准输入分解为插座

作为较大程序的一部分,我想将所有内容从标准输入到Unix域套接字复制。我认为剪接(2)可能是合适的,但是使用它很难。 最小

回答 1 投票 0

<code>ls "/var/www/html/tempdir/test name.php" </code>

[core:trace5] [pid 14742:tid 14827] protocol.c(713): [client 127.0.0.1:35246] Request received from client: GET /tempdir/test%20name.php HTTP/1.1 [http:trace4] [pid 14742:tid 14827] http_request.c(435): [client 127.0.0.1:35246] Headers received from client: [http:trace4] [pid 14742:tid 14827] http_request.c(438): [client 127.0.0.1:35246] Host: localhost [http:trace4] [pid 14742:tid 14827] http_request.c(438): [client 127.0.0.1:35246] User-Agent: Wget/1.21.2 [http:trace4] [pid 14742:tid 14827] http_request.c(438): [client 127.0.0.1:35246] Accept: */* [http:trace4] [pid 14742:tid 14827] http_request.c(438): [client 127.0.0.1:35246] Accept-Encoding: identity [http:trace4] [pid 14742:tid 14827] http_request.c(438): [client 127.0.0.1:35246] Connection: Keep-Alive [authz_core:debug] [pid 14742:tid 14827] mod_authz_core.c(815): [client 127.0.0.1:35246] AH01626: authorization result of Require all granted: granted [authz_core:debug] [pid 14742:tid 14827] mod_authz_core.c(815): [client 127.0.0.1:35246] AH01626: authorization result of <RequireAny>: granted [core:trace3] [pid 14742:tid 14827] request.c(360): [client 127.0.0.1:35246] request authorized without authentication by access_checker_ex hook: /tempdir/test name.php [proxy:trace2] [pid 14742:tid 14827] proxy_util.c(2457): [client 127.0.0.1:35246] *: fixup UDS from proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost/var/www/html/tempdir/test name.php: fcgi://localhost/var/www/html/tempdir/test name.php (/run/php/php7.4-fpm.sock) [proxy_fcgi:trace1] [pid 14742:tid 14827] mod_proxy_fcgi.c(76): [client 127.0.0.1:35246] canonicalising URL //localhost/var/www/html/tempdir/test name.php [proxy_fcgi:debug] [pid 14742:tid 14827] mod_proxy_fcgi.c(123): [client 127.0.0.1:35246] AH01060: set r->filename to proxy:fcgi://localhost/var/www/html/tempdir/test%20name.php [proxy:trace2] [pid 14742:tid 14827] proxy_util.c(2625): [client 127.0.0.1:35246] *: using default reverse proxy worker for fcgi://localhost/var/www/html/tempdir/test%20name.php (no keepalive) [proxy:debug] [pid 14742:tid 14827] mod_proxy.c(1465): [client 127.0.0.1:35246] AH01143: Running scheme fcgi handler (attempt 0) [proxy_fcgi:debug] [pid 14742:tid 14827] mod_proxy_fcgi.c(1078): [client 127.0.0.1:35246] AH01076: url: fcgi://localhost/var/www/html/tempdir/test%20name.php proxyname: (null) proxyport: 0 [proxy_fcgi:debug] [pid 14742:tid 14827] mod_proxy_fcgi.c(1087): [client 127.0.0.1:35246] AH01078: serving URL fcgi://localhost/var/www/html/tempdir/test%20name.php [proxy:debug] [pid 14742:tid 14827] proxy_util.c(2797): AH00942: FCGI: has acquired connection for (*:80) [proxy:debug] [pid 14742:tid 14827] proxy_util.c(3242): [client 127.0.0.1:35246] AH00944: connecting fcgi://localhost/var/www/html/tempdir/test%20name.php to localhost:8000 [proxy:debug] [pid 14742:tid 14827] proxy_util.c(3309): [client 127.0.0.1:35246] AH02545: fcgi: has determined UDS as /run/php/php7.4-fpm.sock (for localhost:8000) [proxy:debug] [pid 14742:tid 14827] proxy_util.c(3450): [client 127.0.0.1:35246] AH00947: connecting /var/www/html/tempdir/test%20name.php to /run/php/php7.4-fpm.sock:0 (localhost:8000) [proxy:debug] [pid 14742:tid 14827] proxy_util.c(3832): AH02823: FCGI: connection established with Unix domain socket /run/php/php7.4-fpm.sock (localhost:8000) [proxy_fcgi:error] [pid 14742:tid 14827] [client 127.0.0.1:35246] AH01071: Got error 'Primary script unknown' [proxy_fcgi:trace4] [pid 14742:tid 14827] util_script.c(572): [client 127.0.0.1:35246] Headers from script 'test%20name.php': [proxy_fcgi:trace4] [pid 14742:tid 14827] util_script.c(575): [client 127.0.0.1:35246] Status: 404 Not Found [proxy_fcgi:trace1] [pid 14742:tid 14827] util_script.c(654): [client 127.0.0.1:35246] Status line from script 'test%20name.php': 404 Not Found [proxy_fcgi:trace4] [pid 14742:tid 14827] util_script.c(575): [client 127.0.0.1:35246] Content-type: text/html; charset=UTF-8

回答 0 投票 0

使用 SOCK_DGRAM 与 SOCK_STREAM 的 UNIX 套接字的一侧套接字关闭行为

当关闭一侧的 UNIX 套接字时,我希望通过读取调用通知另一侧,该调用返回 0。但是,当使用 SOCK_DGRAM 时,读取调用会无限期阻塞。即使当

回答 1 投票 0

如何使用 unix 套接字而不是 http 来服务 nuxt 3 web 应用程序

是否可以构建一个 Nuxt 3 应用程序,以便它使用 unix 套接字而不是在本地 tcp 端口上提供服务?我打算用 pywebview 和 nuxt3 制作一个应用程序。我想要 pywebview 显示...

回答 1 投票 0

Unix 域套接字 VS 命名管道?

看过Unix命名套接字后,我以为它们是命名管道。我查看了名称管道,并没有发现太大的差异。我看到它们的初始化方式不同,但这是我唯一的事情

回答 2 投票 0

如何通过Windows 10 Open SSH客户端自动登录(预存密码)? [Putty 或 BitVise SSH 不是一个选项!]

最近我们的虚拟主机(Domainfactory)改变了外部访问我们在线mysql数据库的方法。从简单的 ssh“端口转发”到“unixocks 隧道”。 ssh 调用

回答 2 投票 0

如何打开套接字/proc/pid/fd/3文件?

进程的文件描述符可以在/proc/pid/fd目录中看到,其中一些文件描述符可以被打开并读取或写入。例如,如果我将某些内容通过管道传输到 stdin 上的进程,它将显示为 /proc/p...

回答 1 投票 0

如何读取nc命令结果的输出

我正在执行下面的unix命令。 nc -zv google.com 8015 Ncat:版本.. Ncat:已连接到 10.20.43.84:805 =========================== 我想读取输出字符串“Connected”...

回答 1 投票 0

Unix 域套接字在恰好 219264 字节后停止工作

我正在尝试使用 Unix 域套接字接收几兆字节的数据。我的问题是接收到的数据总是在 219,264 字节处截止。收到这笔金额后,我可以继续发送,但是...

回答 1 投票 0

使用 fastcgi unix 套接字时路径包含空格时找不到 php 文件

我正在将在 Windows xampp 上构建的网站转移到运行 ubuntu 24.04、apache 2.4.62 和 php 7.4.33 的服务器。除了 php 文件中任何位置包含空格外,一切工作正常

回答 1 投票 0

WSL 中的客户端-服务器连接超时

我正在开发一个项目,其中有一个在 Windows 计算机上的 WSL2 内运行的 TCP 服务器,并且我正在尝试从在同一本地网络上的另一台计算机上运行的客户端连接到该服务器...

回答 1 投票 0

如何关闭其他线程拥有的套接字

在我的应用程序中,我使用 unix 域套接字来执行本地通信,并且为此使用了 uds 箱。我需要关闭套接字(有选择地关闭侦听器和客户端),...

回答 1 投票 0

为 MariaDB root 用户启用密码和 unix_socket 身份验证?

我在 Ubuntu 16.04 上的 MariaDB 上有 root 用户。 默认情况下,root 用户由 unix_socket 身份验证插件进行身份验证。 我可以通过

回答 5 投票 0

无法连接到 Unix 套接字进行 GVMD 交互:“连接被拒绝”

我正在尝试在 greenbone-community-edition 的 docker-compose 中实现一个脚本。该脚本使用/run/gvmd/gvmd.sock中的套接字建立连接并执行Python co...

回答 1 投票 0

从未收到在 QThread 上运行的 UnixDomain 数据报套接字服务器发出的信号

我创建的文件 我创建了 WorkerThread 类扩展 QThread,如下所示: // https://stackoverflow.com/a/14546167/11073131 #ifndef 线程_H #定义THREAD_H #包括 #

回答 1 投票 0

Android 上的 Web 开发人员工具

我正在尝试找到一种在 Android 浏览器中使用开发人员工具的方法,例如Chrome 和火狐浏览器。它们似乎没有随构建一起提供,以避免功能混乱

回答 1 投票 0

Rust 中的 Unix 域套接字

我编写了一个示例代码,其中我试图利用unix域套接字在2个线程之间进行通信,但无法实现这一点。客户端连接到服务器后,客户端...

回答 1 投票 0

使用 strace 调试连接系统调用 – @"sun_path" 是什么意思?

我有两个不同语言的程序试图连接到 Linux 系统上的本地抽象套接字。两者之一失败了。我很难确定原因。我只是想知道

回答 2 投票 0

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.