美文网首页
MacOS常用

MacOS常用

作者: markict | 来源:发表于2018-11-17 21:55 被阅读0次

在MacOS上删除U盘的EFI分区

diskutil eraseDisk HFS+ Liang MBR disk3

MAC制作ISO文件

  1. 使用磁盘工具做一个后缀为cdr的文件
  2. hdiutil makehybrid -iso -joliet -o test.iso test.dmg.cdr

OS X 设置默认网关

route flush //删除所有路由
route add default next-hop-address //加默认网关
route add X.X.X.X/NN  next-hop-address //加明细路由
route delete X.X.X.X/NN next-hop-address //删除路由

netstat -rn //查看路由表

MAC OSX IPv6 Error Solution:

  1. 列出你的网卡
    networksetup -listallnetworkservices
  2. 关闭ipv6
    networksetup -setv6off "你网卡名字"
  3. 设置ip地址
    networksetup -setmanual "网卡名字" 192.168.31.2 255.255.255.0 192.168.1.1

Mac开启TFTP服务器

sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
sudo launchctl start com.apple.tftpd
#The default tftp file path is /private/tftpboot.

#You can stop it with:
sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.plist

相关文章

网友评论

      本文标题:MacOS常用

      本文链接:https://www.haomeiwen.com/subject/sioifqtx.html