小编lak*_*tak的帖子

`reboot` 命令可以安全使用吗?

reboot命令的工作方式似乎因发行版而异。

例如在 Ubuntu/Debian 和 CentOS 上,它首先关闭服务,而在 Arch Linux 上它会立即重新启动(至少在我的设置中)。

使用总是安全的reboot吗?

linux reboot

5
推荐指数
1
解决办法
1712
查看次数

将“docker run”的标准输出和标准错误分开?

我可以获得单独的 stdout 和 stderr 管道吗docker run

例子:

$ docker run --rm -it alpine sh -c 'echo this is stdout; echo this is stderr >&2' \
  2> stderr.txt
this is stdout
this is stderr
$ cat stderr.txt
Run Code Online (Sandbox Code Playgroud)

我期望什么:

$ sh -c 'echo this is stdout; echo this is stderr >&2' 2> stderr.txt
this is stdout
$ cat stderr.txt
this is stderr
Run Code Online (Sandbox Code Playgroud)

pipe stdout stderr docker

5
推荐指数
1
解决办法
2322
查看次数

Keycloak 无法以“无法解析接口私有”开头

这是给我未来的自己和任何遇到无法解决 Keycloak/Wildfly 接口错误的人的笔记。

MSC000001: 无法启动服务 org.wildfly.network.interface.private: org.jboss.msc.service.StartException in service org.wildfly.network.interface.private: WFLYSRV0082: 无法解析接口私有

networking docker

4
推荐指数
2
解决办法
2402
查看次数

i3w 缺少/空白的系统对话框

当我在 Firefox 或 Chromium 中打开系统对话框(如文件打开、另存为等)时,我只会看到一个白色的空白屏幕(没有边框或任何东西)。

因为我可以按退出/输入来关闭对话框,所以我怀疑它正在工作但不可见。

我尝试切换浮动模式,但效果始终相同。如何让对话框显示?

arch-linux i3

3
推荐指数
1
解决办法
655
查看次数

Wireguard 多行配置值

是否可以将配置命令拆分为多行而不是一个长字符串?

例如

PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Run Code Online (Sandbox Code Playgroud)

当使用更多命令时,该行会变得很长且难以阅读。我想将其拆分,以便每个命令可以使用一行。就像是:

PostUp = iptables -A FORWARD -i %i -j ACCEPT; \
   iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Run Code Online (Sandbox Code Playgroud)

手册页说它基于 ini 格式,但对此主题没有任何帮助。

wireguard

3
推荐指数
1
解决办法
999
查看次数

有没有像 Bash 的“命令行窗口”这样的 Vim?

是否有类似于 Vim 的 Bash 的“命令行窗口”,我可以在其中查看/编辑/执行历史记录中的项目?

在 Vim 中,当我按下:然后Ctrl-F它会打开显示整个命令历史记录的窗口:

7. Command-line window              *cmdline-window* *cmdwin*
                            *command-line-window*
In the command-line window the command line can be edited just like editing
text in any window.  It is a special kind of window, because you cannot leave
it in a normal way.

OPEN                        *c_CTRL-F* *q:* *q/* *q?*

[..]

When the window opens it is filled with the command-line history.  The last
line contains the command as typed so far.  The left …
Run Code Online (Sandbox Code Playgroud)

bash vim vi-mode

1
推荐指数
1
解决办法
1026
查看次数

标签 统计

docker ×2

arch-linux ×1

bash ×1

i3 ×1

linux ×1

networking ×1

pipe ×1

reboot ×1

stderr ×1

stdout ×1

vi-mode ×1

vim ×1

wireguard ×1