Debian下配置網路的方法

2021-09-06 16:19:52 字數 662 閱讀 1336

1.網路配置

配置網絡卡

修改 /etc/network/inte***ces 新增如下

# #號後面是備註,不要新增哦!

auto eth0 #開機自動啟用

iface eth0 inte static #靜態ip

address 192.168.0.56 #本機ip

netmask 255.255.255.0 #子網掩碼

gateway 192.168.0.254 #路由閘道器

#因為我是通過路由上網的,所以配置為靜態ip和閘道器

如果是用dhcp自動獲取,請在配置檔案裡新增如下:

iface eth0 inet dhcp

設定dns

echo "nameserver 202.96.128.86" >> /etc/resolv.conf

#請設定為你當地的dns

到這裡配置好以後,重啟一下網絡卡。

/etc/init.d/network restart

Debian下Apache SSL配置方法

1.安裝apache2 sudo apt get install apache2 2.開啟ssl模組 sudo a2enmod ssl 3.建立證書 可以使用apache內建的工具建立預設的證書,通過 days指定有效期。sudo apache2 ssl certificate 另外我們可以使用op...

在Debian中配置網路

1.配置ip和dns 修改 etc network inte ces檔案 auto lo iface lo inet loopback description static ip auto eth0 iface eth0 inet static address 192.168.1.119 netma...

debian下rsync配置過程

一 特性簡介 rsync是類unix系統下的資料映象備份工具,從軟體的命名上就可以看出來了 remote sync。它的特性如下 1 可以映象儲存整個目錄樹和檔案系統。2 可以很容易做到保持原來檔案的許可權 時間 軟硬鏈結等等。3 無須特殊許可權即可安裝。4 優化的流程,檔案傳輸效率高。5 可以使用...