---
title: "MAC OS 打开ftp"
author: "pskfire"
date: "2013-04-19T21:51:53Z"
tags: []
categories: ["操作系统"]
slug: "mac-os-ftp"
draft: false
lastmod: "2013-04-19T21:51:53Z"
id: 1850463
url: "https://pskfire.iteye.com/blog/1850463"
---

第一种：通过命令行来开启关闭，如下所示：
开启 FTP Server
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
关闭 FTP Server
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

第二种：通过第三方图形工具来开启和关闭ftp功能：
1、Lion Tweaks 1.3：这个工具可以设置lion种很多被隐藏的设定。
2、FTPD Enable App ：这玩意只能设定开启和关闭ftp。
好消息，这两个都是免费的。

如果你想永久打开ftp功能，那就编辑/System/Library/LaunchDaemons/ftp.plist这个文件吧。
把里面的一行：Disabled 改成 Enabled，然后重启就行了。不过这样的安全性问题你需要自己考虑清楚。