Mac Lion 如何开启 FTP

Mac OS Lion 系统,苹果屏蔽了FTP的用户界面,目的当然是引荐iCould。不过,还是有方法开启的。终端下运行:

开启:sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist

关闭: sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

当然,还可以自己制作 apple script 让它自动执行。

Apple seemingly dropped the FTP Server support in Mac OX Lion. Only the GUI has been removed and the FTP Server can be activated.

You can still enable it with the command line. To start it type the Terminal command:

sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist

To stop it:

sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

[crarko adds: So if you need FTP, it's still available. It should easy enough to make an AppleScript to toggle this on and off. I'd probably turn it off while not using it. And of course if you turn on Remote Login (ssh), that will make SFTP available.]

Macworld