显示目前系统的进程数上限
# ulimit -n
显示目前系统的进程数上限
# ulimit -n
配置文件格式:
-w <file> -p wa -k <search_key>
命令格式:
# auditctl -w <file> -p wa -k <search_key>
(
补充:
1) 这里的 <file> 是要监控的文件
2) 这里的 <search_key> 是个标识,用于简化在 audit 日志里搜索此命令
)
配置文件的案例:
-w /etc/group -p wa -k group_file
命令案例:
# auditctl -w /etc/group -p wa -k group_file
(
补充:这里以
1) 监控 /etc/group 文件
2) 标识是 group_file 为例
)
# augenrules
# service auditd restart
# auditctl -l
# ausearch -k group_file
(补充:这里以查看标识为 group_file 的 audit 日志为例)
https://access.redhat.com/solutions/3401281
# ldd `which ls`
# sudo dpkg --configure -a
# sudo apt install --fix-broken
# sudo apt remove --purge postfix
(补充:这里以删除报错的 postfix 软件包为例)
# sudo apt clean
# sudo apt autoremove
# sudo apt update
# sudo apt upgrade
# sudo apt-get install postfix
(补充:这里以重新安装前面报错并删除的 postfix 软件包为例)
# cat /etc/apt/sources.list
# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources
# vim /etc/apt/sources.list.d/ubuntu.sources
创建以下内容:
Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
# cat /etc/apt/sources.list
# Ubuntu sources have moved to /etc/apt/sources.list.d/ubuntu.sources
# vim /etc/apt/sources.list.d/ubuntu.sources
创建以下内容:
Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
(补充:这里以添加阿里云的软件源为例)