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.
发布评论
评论(1)
似乎您正在使用SystemD 服务单元来运行二进制文件。
如果是这样,则可以使用:(
&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:
(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.