12
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macでtftpサーバを起動

Last updated at Posted at 2014-11-07

参考

設定確認

設定ファイル確認
cat /System/Library/LaunchDaemons/tftp.plist

/private/tftpboot/がRootであることがわかる。

ファイルのパーミッション

o+rであること

起動

tftpサーバ起動
sudo launchctl load -w /System/Library/LaunchDaemons/tftp.plist
起動確認
$ sudo lsof -i:69
> COMMAND PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
> launchd   1 root   48u  IPv4 0x126682518951aa6f      0t0  UDP *:tftp
> launchd   1 root   49u  IPv6 0x1266825189519a07      0t0  UDP *:tftp
> launchd   1 root   50u  IPv4 0x126682518951aa6f      0t0  UDP *:tftp
> launchd   1 root   51u  IPv6 0x1266825189519a07      0t0  UDP *:tftp
動作確認
tftp localhost
> get ファイル名

停止

tftpサーバ停止
sudo launchctl unload -w /System/Library/LaunchDaemons/tftp.plist
12
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?