我们如何查看.exe printf消息

发布于 2025-01-26 16:09:23 字数 1401 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

变身佩奇 2025-02-02 16:09:23

似乎您正在使用SystemD 服务单元来运行二进制文件。

如果是这样,则可以使用:(

journalctl -u <name>.service

&lt; name&gt;用服务的实际名称替换)

sidenote:
do 不是使用.exe用于精灵二进制(“ Linux binaries”)。
.exe是PE32文件(“ Windows oputables”)的扩展名,但是Linux完全能够运行具有任意名称的文件(扩展名为 no no ,含义Linux下的
) 。

因此:可执行文件通常根本没有扩展名,您应该习惯:使用test

it seems that you are using a systemd service unit, to run your binary.

if so, you can use:

journalctl -u <name>.service

(replace <name> with the actual name of your service)

sidenote:
do not use the .exe extension for your elf-binaries ("linux binaries").
.exe is an extension for PE32 files ("windows executables"), but Linux is perfectly capable of running a file with an arbitrary name (extensions have no meaning under linux).

so: executables typically have no extension at all, and you should get used to that: use test instead.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文