查看后台在运行的进程

[root@VM_163_107 /data/soft/testhttp]# ./testhttp &
[1] 30696
[root@VM_163_107 /data/soft/testhttp]# starting .............
data len 2
119.131.20.199 - - [10/Jul/2013 15:11:56] "GET /?seqid=17bebc2460f6cb7f8c954260c68cf9ff&openid=71D41D90D7A43BE06BA352C6EE041CB2&openkey=9B50FA00E5B8101AF6C6099B2836DF0F&platform=pengyou&pf=pengyou&serverid=5&pfkey=b958a42e20747be3cecf8d90ac8775e0&s=0.8519219337031245& HTTP/1.1" 301 -
data len 2
119.131.20.199 - - [10/Jul/2013 15:11:56] "GET /index.html/?seqid=17bebc2460f6cb7f8c954260c68cf9ff&openid=71D41D90D7A43BE06BA352C6EE041CB2&openkey=9B50FA00E5B8101AF6C6099B2836DF0F&platform=pengyou&pf=pengyou&serverid=5&pfkey=b958a42e20747be3cecf8d90ac8775e0&s=0.8519219337031245& HTTP/1.1" 200 -
^C
[root@VM_163_107 /data/soft/testhttp]# jobs
[1]+  Running                 ./testhttp &
[root@VM_163_107 /data/soft/testhttp]#

将后台的进程掉到前台

[root@VM_163_107 /data/soft/testhttp]# fg
./testhttp



使用ctrl+d将前台进程丢到后台运行



淘宝小店-运维学习参考资料

http://shop62632578.taobao.com