Debian 10 安装网络yum源

本文介绍了如何在Debian10最小化环境中配置网络,使用vim编辑/etc/network/interfaces文件设置DHCP获取IP,并重启网络服务。接着,修改/etc/apt/source.list文件,添加阿里云的Debian软件源,然后更新软件列表和升级系统。最后,通过安装wget并下载grafana软件包来验证配置效果。
摘要由CSDN通过智能技术生成

Debian 10 安装网络yum源

实验环境一台最小化Debian10,IP地址是192.168.10.1/24,还需要一张外网的网卡

配置网络

vim /etc/network/interfaces         #编辑网络配置文件
auto ens37                          #选择第二张网卡
iface ens37 inet dhcp               #编辑第二张网卡获取方式为dhcp
systemctl restart networking        #重启网络服务

查看IP地址

修改软件源

在/etc/apt/source.list中添加如下信息

vim /etc/apt/source.list
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
:wq     #保存退出

更新软件列表

apt update

更新软件

apt upgrade

测试效果

试着安装一个软件

安装grafana监控软件来测试效果

apt install wget        #安装wget下载工具
wget https://dl.grafana.com/oss/release/grafana-7.0.3-1.x86_64.rpm      #下载grafana的软件包

  • 1
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

嘻嘻哥哥~

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值