中文字幕在线观看,亚洲а∨天堂久久精品9966,亚洲成a人片在线观看你懂的,亚洲av成人片无码网站,亚洲国产精品无码久久久五月天

Linux 下如何實(shí)現(xiàn)遠(yuǎn)程開(kāi)機(jī)

2019-09-09    來(lái)源:愛(ài)站科技

容器云強(qiáng)勢(shì)上線!快速搭建集群,上萬(wàn)Linux鏡像隨意使用

你知道Linux下如何實(shí)現(xiàn)遠(yuǎn)程開(kāi)機(jī)嗎?下面小編就根據(jù)Linux實(shí)現(xiàn)遠(yuǎn)程開(kāi)機(jī)的內(nèi)容為大家詳細(xì)介紹其實(shí)現(xiàn)方法,有興趣的小伙伴們就跟隨小編一起去探討具體內(nèi)容吧。

Linux下實(shí)現(xiàn)遠(yuǎn)程開(kāi)機(jī)的條件,要滿足以下兩條:首先,這個(gè)被遠(yuǎn)程開(kāi)機(jī)的機(jī)器必需是在局域網(wǎng)內(nèi),并且你知道這臺(tái)機(jī)器的 MAC 地址;其次,你的網(wǎng)卡支持網(wǎng)絡(luò)喚醒功能,當(dāng)然,現(xiàn)在大部分網(wǎng)卡都是支持網(wǎng)絡(luò)喚醒的功能。檢查你的網(wǎng)卡是否支持網(wǎng)絡(luò)喚醒功能,只要在被遠(yuǎn)程開(kāi)機(jī)的機(jī)器上執(zhí)行 ethtool 命令,查看該機(jī)器網(wǎng)卡是否支持網(wǎng)絡(luò)喚醒功能。

# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes:?? 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:? 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g [ 提示: g 表示已啟動(dòng). d 表示禁用 ]
Current message level: 0×00000001 (1)
Link detected: yes

提示:以上命令,需要擁有root權(quán)限,否則會(huì)有以下錯(cuò)誤:

$ /sbin/ethtool eth0
Settings for eth0:
Cannot get device settings: Operation not permitted
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0×000000ff (255)
Cannot get link status: Operation not permitted

如果網(wǎng)絡(luò)喚醒功能被禁用,則需要用下面的命令啟動(dòng)網(wǎng)絡(luò)喚醒功能:

# ethtool -s eth0 wol g

安裝網(wǎng)絡(luò)喚醒軟件:

# apt-get install wakeonlan

獲取遠(yuǎn)程機(jī)器網(wǎng)卡的物理地址:

# ifconfig
eth0???? Link encap:Ethernet? HWaddr 00:16:k5:64:A9:68 [ Mac地址 ]
inet addr:192.168.6.56? Bcast:192.168.6.255? Mask:255.255.255.0
inet6 addr: fe80::216:17ff:fe6b:289/64 Scope:Link
UP BROADCAST RUNNING MULTICAST? MTU:1500? Metric:1
RX packets:3179855 errors:0 dropped:0 overruns:0 frame:0
TX packets:2170162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3832534893 (3.5 GB)? TX bytes:390304845 (372.2 MB)
Interrupt:17

通過(guò)以下命令,實(shí)現(xiàn)遠(yuǎn)程開(kāi)機(jī):
# wakeonlan 00:16:k5:64:A9:68

Linux下如何實(shí)現(xiàn)遠(yuǎn)程開(kāi)機(jī)?其實(shí)Linux實(shí)現(xiàn)遠(yuǎn)程開(kāi)機(jī)必須在被遠(yuǎn)程開(kāi)機(jī)的機(jī)器是在局域網(wǎng)內(nèi)和知道MAC地址和,看完后你是否明白了呢?

標(biāo)簽: Linux 遠(yuǎn)程 

版權(quán)申明:本站文章部分自網(wǎng)絡(luò),如有侵權(quán),請(qǐng)聯(lián)系:west999com@outlook.com
特別注意:本站所有轉(zhuǎn)載文章言論不代表本站觀點(diǎn)!
本站所提供的圖片等素材,版權(quán)歸原作者所有,如需使用,請(qǐng)與原作者聯(lián)系。

上一篇:Linux系統(tǒng)swap分區(qū)太小的補(bǔ)救措施

下一篇:Linux系統(tǒng)日志的使用方法