Debian12服务器配置
Debian是个非常好用的Linux发行版,由开源社区主导支持,安装后的系统非常纯净,简单做下修改就可以非常顺手,这里记录了一些美化过程
Debian12语系设置
Debian12语系不全解决,也可解决zabbix字符报错问题
apt install locales-all -y
Debian12 fail2ban无法启动
查看日志显示找不到sshd的日志,可以使用一下方法解决:
(原因是由于debian12默认可能没有安装rsyslog日志记录软件,导致没有生成sshd日志)
apt update
apt install rsyslog -y
systemctl start rsyslog
systemctl enable rsyslog
systemctl restart fail2ban.service
systemctl status fail2ban.service
debian12设置阿里源
cat /etc/apt/sources.list
#deb cdrom:[Debian GNU/Linux 12.2.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20231007-10:29]/ bookworm main non-free-firmware
deb https://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.aliyun.com/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src https://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free non-free-firmware
# deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
# # deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
Debian系好用的命令
查看软件包含哪些文件(软件未安装)
apt-file list pst-utils
apt-file search filename
查找filename属于哪个软件包 查找某个命令属于哪个安装包
$apt-file search --regexp '/top$' apt-file search top
评论 (0)