AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-212105

lemoncodes's questions

Martin Hope
lemoncodes
Asked: 2020-04-02 03:27:24 +0800 CST

找不到 semodule_package 命令

  • 4

您好我正在尝试在 CentOS7 上安装 MongoDB。它说在那里配置SELInux,我遵循了。在第三步,它说执行以下操作;

checkmodule -M -m -o mongodb_cgroup_memory.mod mongodb_cgroup_memory.te
semodule_package -o mongodb_cgroup_memory.pp -m mongodb_cgroup_memory.mod
sudo semodule -i mongodb_cgroup_memory.pp

在第二个命令上,输出错误;

[root@localhost ~]# semodule_package -o mongodb_cgroup_memory.pp -m mongodb_cgroup_memory.mod -bash: semodule_package: command not found

现在,我仍在寻找要安装的正确软件包。我已经安装了policycoreutils-2.5-33.el7.x86_64,checkpolicy-2.5-8.el7.x86_64仍然semodule_package找不到命令。

任何人都知道要安装什么软件包才能获得该semodule_package命令?

这是我的操作系统信息

  • CentOS Linux 发行版 7.6.1810(核心)
security centos7 selinux
  • 1 个回答
  • 2214 Views
Martin Hope
lemoncodes
Asked: 2016-12-09 01:13:35 +0800 CST

巨大时间差异上的时间同步

  • 5

您好,目前我有一个本地 ntp 服务器(chrony)和一个 ntp 客户端(chrony),所有这些都在工作,但是当我尝试将 ntp 服务器时间更改为从当前时间减去 6 年时。ntp 客户端无法与之同步,它只会在 syslog 上显示:

1 月 9 日 17:29:11 localhost chronyd[9192]:系统时钟错误 6780812.328260 秒,调整开始

ntp 客户端(chrony)/etc/chrony.conf 是默认配置,除了服务器指向我的本地 NTP 服务器(chrony)。这是我的配置

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server local.ntp.server iburst

# Ignore stratum in source selection.
stratumweight 0

# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift

# Enable kernel RTC synchronization.
rtcsync

# In first three updates step the system clock instead of slew
# if the adjustment is larger than 10 seconds.
makestep 10 3

# Allow NTP client access from local network.
#allow 192.168/16

# Listen for commands only on localhost.
bindcmdaddress 127.0.0.1
bindcmdaddress ::1

# Serve time even if not synchronized to any NTP server.
#local stratum 10

keyfile /etc/chrony.keys

# Specify the key used as password for chronyc.
commandkey 1

# Generate command key if missing.
generatecommandkey

# Disable logging of client accesses.
noclientlog

# Send a message to syslog if a clock adjustment is larger than 0.5 seconds.
logchange 0.5

logdir /var/log/chrony
#log measurements statistics tracking

我不知道它不会同步,我读过它需要更长的时间,但是我让我的机器坐了 1 天,但 ntp 客户端仍然没有与 ntp 服务器相同的时间(不同步) . 有任何想法吗?我试着不重新启动 chronyd 服务,让它自动同步时间

请注意,“local.ntp.server”是在我的 /etc/hosts 上定义的。此外,NTP 服务器和 NTP 客户端没有使用 ntpd 服务,但它使用的是 chronyd。这种设置是孤立的

ntp centos7 chrony
  • 3 个回答
  • 22081 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve