1.下载wol的rpm包
下载地址 https://pkgs.org/download/wol
2.选择需要下载的rpm
这里下载的centos8
的rpm
安装包
wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/w/wol-0.7.1-23.el8.x86_64.rpm
3.安装wol
rpm -Uvh wol-0.7.1-23.el8.x86_64.rpm
4.检查是否安装
wol
出现如下指令代表安装成功
[root@localhost first]# wol
wol: Too few arguments.
Try `wol --help' for more information.
[root@localhost first]#
5.根据MAC唤醒主机
wol FF:D8:FF:0E:EG:FF
其它:使用centos自带的工具远程关闭window
net rpc shutdown -I 192.168.0.109 address -U <username>%<password>