在iphone的terminal终端中,利用命令行开关守护服务

在shell中利用 launchctl这个命令就可以了,不用装任何其他软件。
 
(来自: http://www.iu1u.com )
开关 vsftpd  可以用如下命令:
launchctl load /System/Library/LaunchDaemons/com.bigboss.vsftpd.Startup.plist
launchctl unload /System/Library/LaunchDaemons/com.bigboss.vsftpd.Startup.plist
开关ssh服务可以用如下命令:
launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist
launchctl unload /Library/LaunchDaemons/com.openssh.sshd.plist
不过话说回来,在iphone上用小键盘打这么一串,大小写符号俱全的命令,挺累人的呢。
 
Posted in iphone开发 at 03月 14th, 2009. Trackback URI: trackback
Tags: , ,

One Response to “在iphone的terminal终端中,利用命令行开关守护服务”

  1. 03月 24th, 2009 at 13:39 #鲜花

    IPhone确实不错,有空加我QQ 交流一下了 QQ :243889080

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
请输入图片中的字符以验证你并非垃圾机器人. 点击图片收听验证码的语音版.
点击这里收听此验证码的语音版本