首先檢視當前網絡卡
1.centos ipaddr
2.redhat ifconfig
如果當前的只有本地回環ip位址,說明配置的網絡卡系統找不到
解決方法:
(1)修改/etc/udev/rules.d/70-persistent-ipoib.rules
新增一行
action=="add", subsystem=="net", drivers=="?*", attr=="1", attr=="00:0c:29:b9:7e:34",kernel=="eth*", name="eth0"
attr 是修改網絡卡的mac位址,可以通過ifconfig獲得
name 修改網絡卡的名字為eth0 ,表示的是 /etc/sysconfig/network-scripts/ ifcfg-eth0 網絡卡配置資訊
注:如果系統啟動出現:failed to start lsb: bring up/down 這個錯誤,是系統自帶的networkmanager這個管理套件的原因,
關閉即可,
關閉方法:
1.在網絡卡最後一行新增一行配置:nm_controlled=no
2.使用以下命令試試:
systemctl stop networkmanager
systemctl disable networkmanager
removed symlink /etc/systemd/system/multi-user.target.wants/networkmanager.service.
removed symlink /etc/systemd/system/dbus-org.freedesktop.networkmanager.service.
removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
(2)修改配置檔案的/etc/sysconfig/network-scripts/
mv ifcfg-eno16777736改為ifcfg-eth0
修改ifcfg-eth0
name 改為eth0
device 也改為eth0
順便加上uuid
uuid=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
uuid獲取方法:
nmcli connection
Linux無法啟動問題
init prefdm main process terminated with status 1 init prefdm respawning too fast,stopped 然後無法繼續啟動。prefdm路徑 etc x11 prefdm,負責啟 形介面。解決方法 重啟伺服器進入single單...
網絡卡啟動問題
通過ifconfig 檢視是否有eth1存在,如果不存在可能網線沒連好,或是網絡卡不好用了。如果有eth1 那就通過如下命令 ifconfig eth1 down ifconfig eth1 192.168.0.route add net 192.168.0.1 新增路由 假設路由1是92.168....
tomcat無法啟動問題
1.windows不能在本地計算機啟動apache tomcat 7 問題是因為jdk的位數和tomcat不同導致的。jdk32位,tomcat也應為32位。命令 在bin目錄下 安裝 service install 解除安裝 servcie uninstall 2.unable to open t...