Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2531076
  • 博文数量: 245
  • 博客积分: 4125
  • 博客等级: 上校
  • 技术积分: 3113
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-25 23:56
文章分类

全部博文(245)

文章存档

2015年(2)

2014年(26)

2013年(41)

2012年(40)

2011年(134)

2010年(2)

分类: LINUX

2014-05-22 14:14:56

使用ps a查看进程
使用kill干掉进程

  1. root@server9:/data/Collector# nohup sh startDownloadMain.sh &
  2. [1] 9065
  3. root@server9:/data/Collector# -bash: root@server9:/data/Collector#: No such file or directory
  4. [1] 9044
  5. root@server9:/data/Collector# nohup: ignoring input and appending output to `nohup.out'
  6. root@server9:/data/Collector# ps a
  7. PID TTY STAT TIME COMMAND
  8. 882 tty4 Ss+ 0:00 /sbin/getty -8 38400 tty4
  9. 888 tty5 Ss+ 0:00 /sbin/getty -8 38400 tty5
  10. 900 tty2 Ss+ 0:00 /sbin/getty -8 38400 tty2
  11. 901 tty3 Ss+ 0:00 /sbin/getty -8 38400 tty3
  12. 903 tty6 Ss+ 0:00 /sbin/getty -8 38400 tty6
  13. 949 tty1 Ss+ 0:00 /sbin/getty -8 38400 tty1
  14. 7304 pts/0 Ss+ 0:00 -bash
  15. 8378 pts/1 Ss 0:00 -bash
  16. 9044 pts/1 S 0:00 sh startDownloadMain.sh
  17. 9045 pts/1 Sl 0:00 java -jar DownloadMain.jar
  18. 9060 pts/1 R+ 0:00 ps a
  19. root@server9:/data/Collector# kill 9044
  20. root@server9:/data/Collector# kill 9045
  21. [1]+ Terminated nohup sh startDownloadMain.sh


阅读(1172) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~