1.Windows ping Linux主机名
#ubuntu 下
sudo apt-get install winbind
#centos 下
yum install samba
service nmb start
2.Linux或Mac ping Linux主机名
在主机名后面加后缀“.local”,例如:
ping hostname.local
1.Windows ping Linux主机名
#ubuntu 下
sudo apt-get install winbind
#centos 下
yum install samba
service nmb start
2.Linux或Mac ping Linux主机名
在主机名后面加后缀“.local”,例如:
ping hostname.local
转载于:https://www.cnblogs.com/ji-yun/p/4985610.html