日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
Debian10系統(tǒng)如何配置網(wǎng)卡?

Debian10 系統(tǒng)如何配置網(wǎng)卡?

目前成都創(chuàng)新互聯(lián)公司已為上千余家的企業(yè)提供了網(wǎng)站建設(shè)、域名、虛擬空間、網(wǎng)站托管、企業(yè)網(wǎng)站設(shè)計(jì)、芮城網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長(zhǎng),共同發(fā)展。

一、網(wǎng)絡(luò)配置

由于Debian10的vi是精簡(jiǎn)版不好用所以先配置一下鏡像源安裝vim

打開(kāi)vi /etc/apt/sources.list輸入以下內(nèi)容(i鍵輸入,刪除鍵不好用最好一次性輸入對(duì),刪除按delete鍵):

imgSpider 采集中...

deb http://mirrors.163.com/debian/ buster main non-free contrib

# 適用于所有版本

deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free

deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free

然后更新鏡像源apt-get update

安裝vim:apt-get install vim -y

# 打開(kāi)網(wǎng)卡文件

vim /etc/network/interfaces

填入內(nèi)容

auto ens33 # 網(wǎng)卡隨系統(tǒng)自動(dòng)啟動(dòng)

iface ens33 inet static # 網(wǎng)卡為靜態(tài)ip地址

address 192.168.2.86 # 設(shè)置ip地址

netmask 255.255.255.0 # 子網(wǎng)掩碼

gateway 192.168.2.1 # 網(wǎng)關(guān)

dns-nameservers 223.5.5.5 223.6.6.6 # DNS

注意:vim /etc/resolv.conf 的nameservers是否配置正確

重啟網(wǎng)絡(luò)服務(wù)

service networking restart

# 或者

systemctl restart networking

二、設(shè)置鏡像源

以Buster為例, 編輯/etc/apt/sources.list文件, 在文件最前面添加以下條目(操作前請(qǐng)做好相應(yīng)備份)

deb http://mirrors.163.com/debian/ buster main non-free contrib

deb http://mirrors.163.com/debian/ buster-updates main non-free contrib

deb http://mirrors.163.com/debian/ buster-backports main non-free contrib

deb-src http://mirrors.163.com/debian/ buster main non-free contrib

deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib

deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib

deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib

deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib

也可訪問(wèn)http://mirrors.163.com/.help/debian.html

apt-get update # 更新

三、安裝ssh服務(wù)

apt-get install openssh-server -y

配置vim /etc/ssh/sshd_config文件,使root可以遠(yuǎn)程登錄

PermitRootLogin yes # 設(shè)置為yes

PasswordAuthentication yes # 是否允許使用基于密碼的認(rèn)證

重啟ssh服務(wù)

systemctl restart sshd

四、安裝VMtools

apt-get install open-vm-tools

五、設(shè)置代理

環(huán)境變量 描述 示例

http_proxy 為http變量設(shè)置代理;默認(rèn)不填開(kāi)頭以http協(xié)議傳輸 192.168.1.1:8080

user:pass@192.168.1.1:8080

socks4://192.168.1.1:8080

socks5://192.168.1.1:1080

https_proxy 為https變量設(shè)置代理 同上

ftp_proxy 為ftp變量設(shè)置代理 同上

all_proxy 全部變量設(shè)置代理,設(shè)置了這個(gè)時(shí)候上面的不用設(shè)置 同上

no_proxy 無(wú)需代理的主機(jī)或域名;

可以使用通配符;

多個(gè)時(shí)使用“,”號(hào)分隔;

.aiezu.com,10...,192.168..,*.local,localhost,127.0.0.1

export http_proxy=http://IP地址:端口號(hào)

export https_proxy=http://user:password@IP地址:端口號(hào)

export ftp_proxy=http://IP地址:端口號(hào)

export no_proxy="localhost,127.0.0.1"

# 永久配置需要配置/etc/profile

六、取消代理

unset http_proxy

unset https_proxy

unset ftp_proxy

unset no_proxy


本文標(biāo)題:Debian10系統(tǒng)如何配置網(wǎng)卡?
本文鏈接:http://m.5511xx.com/article/cdesiig.html