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
    • 最新
    • 标签
主页 / server / 问题

问题[runlevel](server)

Martin Hope
markson edwardson
Asked: 2021-04-03 21:06:56 +0800 CST

ufw 防火墙在 Alpine Linux 中应该从什么运行级别开始?

  • 1

我ufw在 Alpine linux 上使用。

我已经以非常标准的方式对其进行了配置:

apk add --no-cache ufw
ufw allow ssh
ufw allow http
ufw allow https
ufw limit ssh
ufw enable
rc-update add ufw default

但我不确定我是否应该将它的运行级别设置为,boot所以我确定它在任何其他服务(ssh 和 docker(以及 http/https 服务)都设置为开始于default)之前启动。

有关系吗?我不相信 alpine 的 RC 系统具有像您在systemd.

firewall alpine ufw runlevel
  • 1 个回答
  • 563 Views
Martin Hope
ricmarques
Asked: 2016-09-01 09:16:18 +0800 CST

Linux中“chkconfig”运行级别“S”(大写S)和“B”(大写B)的含义

  • 1

我正在chkconfig --list使用 SLES 10 SP2 (SUSE Linux Enterprise Server 10 Service Pack 2) 的服务器上运行该命令。我知道从 0 到 6 的运行级别的含义,但有些行也有一个“ S ”(大写 S),而一行有一个“ B ”(大写 B)。

让我在这里引用“ chkconfig --list”的截断输出 - 请注意,一方面,“ kbd”、“ microcode”、“ splash”、“ splash_early”行在行尾有“ S:on”,另一方面, " sysstat" 行以 " B:on" 结尾:

# chkconfig --list
(...)
dbus                      0:off  1:off  2:off  3:on   4:off  5:on   6:off
(...)
kbd                       0:off  1:on   2:on   3:on   4:off  5:on   6:off  S:on
(...)
microcode                 0:off  1:on   2:on   3:on   4:off  5:on   6:off  S:on
(...)
splash                    0:off  1:on   2:on   3:on   4:off  5:on   6:off  S:on
splash_early              0:off  1:off  2:on   3:on   4:off  5:on   6:off
(...)
syslog                    0:off  1:off  2:on   3:on   4:off  5:on   6:off
sysstat                   0:off  1:off  2:off  3:off  4:off  5:off  6:off  B:on
(...)

我已阅读chkconfig Levels 的 Serverfault Question & Answer Explanation但唯一的答案仅提到运行级别 0 到 6。

这台机器上 chkconfig 的手册页也只提到了运行级别 0 到 6:

# man chkconfig

(...)

LIST MODE
   List mode prints for each specified service a line that consists of the 
   service name and for runlevels zero to six  **on** or **off** depending if the
   service will be started or not.  **on** will be printed in bright green 
   if the output is written to a terminal. If the --deps option is given, 
   the names of the services  that  must  be  started before this service is 
   appended to each line. The inetd/xinetd services are listed in extra
   sections.
(...)

所以,我的问题是:输出中“ S ”和“ B ”的含义是什么?chkconfig --list

(我猜“S”可能是“Startup”,“B”可能是“Boot”,但我没有找到任何相关的文档或网页来解决这个问题。)

linux sles chkconfig runlevel
  • 1 个回答
  • 675 Views
Martin Hope
timday
Asked: 2010-04-19 01:26:33 +0800 CST

重建 /etc/rc?.d/ 链接

  • 2

对 Debian Lenny 系统的常规文件系统检查触发了 fsck,这会破坏/etc/rc?.d层次结构中的一些链接(不幸的是,我没有保留列表)。

该系统似乎可以正常启动和运行,但我担心它会为将来存储麻烦。

是否有一种简单(相当自动)的方法来重建这部分系统?据我了解,链接通常由使用 update-rc.d 的包 postinst 脚本操作(并且我没有对已安装的默认值进行任何更改)。

没有任何更好的想法,我的计划是以下之一:

  • 将列表与另一个类似系统进行比较,以确定哪些包需要修复其链接。
  • 等到系统升级到 Squeeze(希望不会太久:^)并假设批量升级包将恢复所有丢失的链接。
debian debian-lenny init rc.d runlevel
  • 1 个回答
  • 1175 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