CentOS10安装Python3.14
1. 关于Python版本与系统适配一些旧版本的CentOS默认自带的openssl版本可能较低,无法支持一些新版本的Python。如CentOS7.8的默认openssl版本是1.0.2,无法支持Python3.10及之后的版本,所以在选择系统和Python版本时,需要进行适配。 2. 安装1234567891011121314151617# 安装开发者工具yum groupinstall "Development Tools" -yyum install openssl-devel libffi-devel bzip2-devel -y# 下载并解压,使用华为云国内镜像或者官方镜像wget https://mirrors.huaweicloud.com/python/3.14.3/Python-3.14.3.tgzwget https://www.python.org/ftp/python/3.14.3/Python-3.14.3.tgztar xvf Python-3.14.3.tgzcd Python-3.14.3# 编译安装,如果需要额外功能,则需要...
CentOS10通过nmcli配置网卡静态地址
CentOS10的网络配置服务是NetworkManager,配置文件位于/etc/NetworkManager/system-connections/目录下,命令行工具是nmcli。 1. 配置命令1234567891011121314151617# 查看网卡列表和状态,获取网卡名称nmcli device status# 后面的指令使用的示例网卡名称为enp4s0,实际使用中需要更换为实际名称# 命令中的modify代表会将改动写到配置文件中# 连接网卡(会生成一个DHCP的网卡配置文件并激活)nmcli device connect enp4s0# 配置IP地址、网关、DNSnmcli connection modify enp4s0 ipv4.addresses 192.168.1.251/24 ipv4.gateway 192.168.1.1nmcli connection modify enp4s0 ipv4.dns "114.114.114.114 8.8.8.8"# 配置网卡为手动配置模式nmcli co...