问题标签 [rhel8]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
71 浏览

samba - 将 Samba 4.13.7 升级到 4.14.3 后出错

我已经在 RHEL8 上将 Samba 4.13.7 编译为 DC AD,它运行良好。我曾尝试升级到新版本 4.14.3,但升级后,当我尝试启动它时,出现错误:

/usr/local/samba/sbin/samba:/usr/local/samba/lib/private/libreplace-samba4.so:找不到版本“SAMBA_4.13.7”(/usr/local/samba/lib/private/ 需要libtdb.so.1)

任何人都知道为什么我会收到此错误?

0 投票
2 回答
77 浏览

bash - Linux 字符串操作以从一个参数中生成两个参数

我收到一份操作系统列表,每行一个,例如:

我需要将每一行按摩成两个参数以产生:

然后运行这些命令。请注意,第二个参数已将所有非字母数字切换为连字符。我想出了以下内容:

不幸的是,虽然 xargs 运行的命令看起来是正确的,但 xargs 没有将两个参数传递给 lxc,而是将整个内容作为单个参数传递,因此 lxc 尝试下载名为“alpine/3.13 alpine-3-13”的图像,而不是下载名为 alpine/3.13 的映像并使用它创建一个名为 alpine-3-13 的容器。

有没有办法传递 lxc 两个单独的参数?

示例输出:

根据来自 KamilCuk 和 markp-fuso 的以下输入完成(工作)最终命令:

0 投票
0 回答
16 浏览

linux - RHEL 8.3 中的活动日志

我想尽可能了解过去几天 PC 的使用情况。就像安装的所有软件或软件包一样,已删除,PC 锁定了多长时间,以及有关 PC 中用户活动的任何其他信息。我正在使用 RHEL8.3 有什么方法可以查看这些详细信息吗?非常感谢这方面的任何帮助。

0 投票
0 回答
19 浏览

java-8 - How to build a Prime Redundant Architecture for N node(s) Software in small scale

I have been assigned to design software that shall triggerCatastrophicEvent() if X.X.X.X is not reachable.
Constraints:

  1. It has to be deployed in 2 separate servers to achieve availability.
  2. At any moment of time, any one of the software instances should only triggerCatastrophicEvent() since it is a catastrophic event!
    OS: RHEL 8.2 Language: JAVA-8
    I have been thinking about this for quite a while. But, I have some doubts regarding my system design.
    Please find my initial design plan:-
  • Have state.cfg file in NFS common mounted area which shall state which of the software is PRIME at that moment.
  • Default any one of the software(s) as Prime and another as redundant when the software(s) starts.
  • Have an individual status.file(NFS common area) which shall be written by respective software regarding their Most Recent Health every K seconds.
  • At any moment let one instance check if another software status. file is not written since the Last X seconds, declare another instance to be dead, and make oneself prime while making another redundant by modifying the state.cfg
  • Both config and status.file are available to each since they are mounted in each server so either of the software can read or write rach others file as necessary.

Doubts:

  • In case the NFS issue occurs due to network/storage/etc then, this design fails.
  • Kindly note I gave up the idea of sharing heartbeat through TCP socket/ Message Queue between two software since it shall also be impacted by network loss.

I am aware that designing a distributed system is a huge lesson still I gave it a go, but it seems my idea is falling short. strong text

I would be highly obliged if the community can provide me with some leads or any idea.

0 投票
0 回答
95 浏览

java - 如何使用 javax.mail 遵守 RHEL8 加密策略?

我正在尝试使用 javax.mail 来制作发送邮件的应用程序。

我一直试图弄清楚如何解决这个错误No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

我将在我不控制操作系统的系统上使用它,因此我需要遵守默认的 rhel8 策略。

  • 这将在 Windows 10 机器上运行。
  • 仅当我使用以下命令时,它才能在我的 rhel8 测试系统中工作:update-crypto-policies --set LEGACY

我需要在代码中解决这个问题,而不是操作系统。

我在 rhel8 上遇到的错误:

我试过:

  • props.put("mail.smtp.ssl.protocols", "TLSv1.2");
  • props.put("mail.smtp.ssl.protocols", "TLSv1.3");
  • 没有mail.smtp.ssl.protocols条目

我的代码:

0 投票
0 回答
164 浏览

gitlab - 在 podman 实例上重新启动 Gitlab 时已存在瞬态时间服务

在 RHEL 8 上,我在 Podman 上重新启动 Gitlab 实例时遇到问题。一切正常,但运行命令:sudo podman restart gitlab-server 出错: ERRO [0011] 无法启动瞬态计时器单元:单元 28e595d7d0812cd0e5e772db55d02d137c4179fcd4aa0527162d28b22d169ee3.service 已存在。

当我列出所有服务时,我可以看到上面的服务处于“加载失败”状态。错误不会对功能造成任何问题,但发生的事情很奇怪。

谢谢你的任何建议。

0 投票
1 回答
535 浏览

dns - CentOS/RHEL 中的“_gateway”变量是什么东西?

我已经知道 CentOS/RHEL 中的“_gateway”变量(我认为最多 7 个它只是“网关”,没有 _ 符号)。今天我在我的家庭实验室中设置了 AdGuard DNS 服务器,在同一台机器上是一个反向代理来提供一些内部服务,我向主机添加了第二个 IP,因为我需要多个 HTTP 端口。没关系,我在 adguard 上设置了一个通配符 DNS 条目。像这样:*.mydomain.com 172.16.20.60(就是上面提到的反向代理的IP)——我不想手动添加所有服务,所以我选择了通配符的方法。

几个小时后,我注意到托管 dns 服务器和反向代理的机器无法连接到互联网。

我做了一个跟踪路由,发现它正试图通过 _gateway.mydomain.com 访问互联网(这导致机器本身)。

_gateway.mydomain.com 上的 ping 返回了机器 IP,所以我记得我的 dns 服务器上的通配符 dns 条目。我将 _gateway.mydomain.com 添加到它的正确 IP,然后它按预期工作。

我的问题是这种环境变量“_gateway”/“gateway”是怎么回事——为什么 RedHat 会这样做?我想知道为什么网络试图通过 dns 名称访问它的网关?我无法找到有关此的任何信息,也没有在机器本身上找到任何设置来禁用此行为。

这是一些输出:

有任何想法吗?

谢谢

0 投票
1 回答
46 浏览

tweak - RHEL 8.3:使用脚本在 Tweak Tool 中切换 Top Icons Plus Gnome 扩展

有没有办法在脚本的 Tweak Tool 中切换 Gnome Extension Top Icons Plus?

目前我找不到 Tweak Tool 或 Top Icons Plus 提供的任何 API。

0 投票
1 回答
27 浏览

rhel - 在 lsblk RHEL 8.1 中找不到 /opt /var /tmp

我无法在 lsblk RHEL 8.1 中找到 /opt /var /tmp。你能帮帮我吗?

0 投票
1 回答
221 浏览

shell - 通过应用程序安装执行命令时出现“grep:写入错误:管道损坏”

下面是我安装应用程序时执行的命令(这一行是用我们应用程序的脚本之一编写的)。通过=strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 10 | tr -d '\n'

每次我收到错误“grep:写错误:管道损坏”。

这里有几点需要注意

  1. 当我在 RHEL 7.X 上安装应用程序时。它运行没有问题。
  2. 当我在 RHEL 8.X 上运行命令目录时。它没有给出错误。
  3. 只有在 RHEL 8.x 上安装应用程序时才会引发错误。

另外,我尝试了其他几种生成字母数字字符的方法,例如:

  1. X=strings /dev/urandom | grep -o -m15 '[[:alnum:]]' 通过=echo "$X" | head -n 10 | tr -d '\n'

  2. 通过=strings /dev/urandom | tr -dc A-Za-z0-9 | head -c10

  3. 通过=cat /dev/urandom | tr -dc A-Za-z0-9 | head -c10

  4. X=strings /dev/urandom | head -n 100 通过=echo "X" | grep -o '[[:alnum:]]' | head -n 10 | tr -d '\n'

  5. 通过=< /dev/urandom tr -dc '[[:alnum:]]' | head -c10

在安装应用程序时,这些都不适用于 RHEL 8.X。但是,当直接在终端上执行时,所有这些命令都可以正常工作。