使用进程ID终止单声道服务 [英] kill a mono service using process id
本文介绍了使用进程ID终止单声道服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用此代码运行一项Mono服务
Hi I run one mono service using this code
mono-service2 -l:service.lock --debug /usr/local/lib/SampleService1.exe &
FOO_PID=$!
并尝试使用相同的ID终止该进程,但它不起作用
and try to kill the process using same id but it not worked
kill $FOO_PID
我也尝试使用终端,但没有用.这样的终端输出
I also try this with terminal too but not worked. The terminal output like this
-bash: kill: (7522) - No such process
[1]+ Exit 1 mono-service2 -l:service.lock --debug /usr/local/lib/SampleService1.exe
请帮助我.....
please help me.....
推荐答案
!
并尝试使用相同的ID终止该进程,但它不起作用
and try to kill the process using same id but it not worked
kill
FOO_PID
我也尝试使用终端,但没有用.这样的终端输出
I also try this with terminal too but not worked. The terminal output like this
-bash: kill: (7522) - No such process
[1]+ Exit 1 mono-service2 -l:service.lock --debug /usr/local/lib/SampleService1.exe
请帮助我.....
please help me.....
这项工作吗?
Does this work?
kill -9
这篇关于使用进程ID终止单声道服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文