CentOS7.9操作系统openssh升级
CentOS7.9操作系统升级openssh版本
服务器环境: 操作系统:CentOS 7.9 当前版本:OpenSSH 7.4p1,目标版本OpenSSH9.9p2
CentOS7.9操作系统升级openssh版本
服务器环境: 操作系统:CentOS 7.9 当前版本:OpenSSH 7.4p1,目标版本OpenSSH9.9p2
操作系统版本: Debian11.11
使用wpa_supplicant管理无线网络连接,使用dhcp客户端自动配置网络
增加无线网络SSID和PASSWORD。
vim /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="无线网络"
psk="密码"
}
使用raspi-config工具
sudo raspi-config
选择Advanced Options,配置高级设置。
选择Network Config,设置网络配置工具
选择dhcpcd,确定
选择
输入sudo dhclient
,再次执行ip addr
查看网络接口IP地址信息
通过安装rpm包形式升级Linux内核,需要用到ELRepo仓库。
ELRepo一个企业版Linux rpm包仓库。ELRepo项目专注于与硬件相关的软件包。
这个仓库适用于红帽企业版Linux,CentOS,Rocky Linux,Alma Linux以及其它基于红帽的衍生版。
导入公钥:
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
安装ELRepo仓库
yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
安装kernel-lt基于长期支持版
yum --enablerepo=elrepo-kernel install kernel-lt
从国内镜像站下载(如果从官方下载太慢,可以尝试通过国内镜像站下载)
yum install https://mirrors.tuna.tsinghua.edu.cn/elrepo/kernel/el7/x86_64/RPMS/kernel-lt-5.4.242-1.el7.elrepo.x86_64.rpm
查看已安装的内核列表
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
设置 GRUB 的默认引导菜单项。
grub2-set-default 0
重启系统reboot
并使用uname -r
检查内核版本