天天看點

Debian10常見問題解決方法

1.解決root使用者無法ssh連接配接伺服器

vi /etc/ssh/sshd_config 編輯進入ssh控制選項

/etc/init.d/ssh restart 重新開機ssh服務 修改為yes

Debian10常見問題解決方法

2.網卡配置,由于Debian與CentOS不一樣,是以配置檔案也不一樣

Debian10常見問題解決方法

vi/etc/network/interfaces 編輯網卡

#auto lo
#iface lo inet loopback
auto eno4
iface eno4 inet static
address 192.168.1.104
netmask 255.255.255.0
gateway 192.168.1.1

auto eno1
iface eno1 inet static
address 192.168.5.164
**```
/etc/init.d/networking restart  重新開機網卡

           

DNS配置檔案位置

vi /etc/resolv.conf

nameserver 8.8.8.8

vi /etc/fstab 進入開機啟動腳本 進行永久挂載

Debian10常見問題解決方法

fdisk –l 顯示磁盤資訊

mkfs.ext4 /dev/sdb1 格式化

CTRL + alt f3 進入指令行

/etc/apt/sources.list 軟體源配置

apt-get update 更新源

apt-get install curl 安裝指令

apt-get install lrzsz 安裝rz指令

apt-get install net-tools 安裝指令netsta端口指令

apt-get install urllib3 安裝urlib

apt-get install python-pip 安裝python

下面的163的軟體源

powershell
# deb cdrom:[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 DVD Binary-1 20190908-01:09]/ buster contrib main

#Gdeb cdrom:[Debian GNU/Linux 10.1.0 _Buster_ - Official amd64 DVD Binary-1 20190908-01:09]/ buster contrib main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/debian-security buster/updates main contrib
# Line commented out by installer because it failed to verify:
#deb-src http://security.debian.org/debian-security buster/updates main contrib

# buster-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ buster-updates main contrib
# deb-src http://deb.debian.org/debian/ buster-updates main contrib
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
           

繼續閱讀