2010年5月18日星期二

launched launchctll 学习心得

因工作需要 macbook 需要配置nginx开机自动启动
步骤如下:
1. 编写对应的 属性文件






  Label
  com.example.processor
  OnDemand
  
  Program
  /Users/strike/bin/processor
  ProgramArguments
  
    processor
  

  WatchPaths
  
    /Users/strike/data/incoming
  





2. launchctl load < < 文件名 > >
3. 修改 nginx 配置文件 保证单独可启
4. launchctl start
< < 文件名 > >
5. top / htop 检查是否起来
6. web 测试

转:https://www6.software.ibm.com/developerworks/cn/education/aix/au-usingcron/index.html(需要注册账户)

ps: 经常忽略 ibm, 但ibm 资料库里的 好东西真是多多, 而且质量很高

没有评论: