公司有臺服務器,svn更新代碼的時候直接卡死。最後發現是兩臺服務器網卡的全雙工/半雙工方式不一樣致使。linux
root@pts/2 # mii-tool eth0 eth0: negotiated 100baseTx-FD, link ok 另外一臺: root@pts/0 # mii-tool bond0 bond0: 10 Mbit, half duplex, link ok
修改:bash
root@pts/2 # ethtool -s eth0 speed 10 duplex half root@pts/2 # mii-tool eth0 eth0: negotiated 10baseT-HD, link ok
命令參考:服務器
http://www.cyberciti.biz/faq/linux-change-the-speed-and-duplex-settings-of-an-ethernet-card/ide