隨筆-193  評(píng)論-715  文章-1  trackbacks-0

          While this hint will work as stated, it's pretty much incorrect usage of launchctl for the purpose of the hint.

          launchctl load...loads the FTP service into launchd's database of services. When you do an unload, you are telling launchd to not manage it anymore.

          So a better way to do this--probably the proper way--is to first issue the command to load the service:

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

          Then, if you'd like to stop FTP, issue this command:

          sudo launchctl stop com.apple.ftpd

          And if you decide you'd like to bring it back up, use this command:

          sudo launchctl start com.apple.ftpd

          If you'd like for launchd to forget about FTP, that is when you would run this:

          sudo launchctl unload /System/Library/LaunchDaemons/ftp.plist

          The hint as-is will work, but seems a little counter-productive to make launchd remember and forget about FTP all the time.

          posted on 2012-06-30 23:15 Robin's Programming World 閱讀(907) 評(píng)論(0)  編輯  收藏 所屬分類: OS
          主站蜘蛛池模板: 清远市| 祁连县| 大名县| 中方县| 南平市| 北辰区| 永清县| 铜川市| 兴宁市| 普安县| 邯郸县| 航空| 息烽县| 石门县| 邵武市| 类乌齐县| 巴塘县| 灵石县| 哈尔滨市| 铜山县| 山阴县| 大兴区| 彰化县| 盱眙县| 郓城县| 宣武区| 肃南| 新龙县| 耒阳市| 宣城市| 沈阳市| 改则县| 长宁县| 桦川县| 浮山县| 丹棱县| 永清县| 石狮市| 义马市| 静海县| 镇赉县|