tnt1980 发表于 2006-5-28 05:18:17

无法杀死CS进程 这是怎么回事

# ps -aux|grep 2888
cs      6555 79.82.8 69764 58772 pts/0   RN   04:2244:53 ./hlds_i686 -pingboost 3 -game cstrike +port 28888 -nomaster -insecure +sv_lan 0 +servercfgfile 2.cfg +maxplayers 14 +map de_dust2
root      72120.00.03688660 pts/0    S    05:19   0:00 grep 2888
# kill -9 6555
# ps -aux|grep 2888
cs      6555 79.92.8 69764 58772 pts/0   RN   04:2245:11 ./hlds_i686 -pingboost 3 -game cstrike +port 28888 -nomaster -insecure +sv_lan 0 +servercfgfile 2.cfg +maxplayers 14 +map de_dust2
root      72140.00.03668656 pts/0    S    05:19   0:00 grep 2888

那个pid 6555 进程还在,,,,请教高手

weipfei 发表于 2006-5-28 12:43:11

回复: 无法杀死CS进程 这是怎么回事

要杀死linux的进程, 你先要找准进程号!
建议 用命令:
ps -ef | grep hl
查看你的CS 进程号, 然后直接 kill
gl !

tnt1980 发表于 2006-5-28 18:54:43

回复: 无法杀死CS进程 这是怎么回事

$ ps -ef|grep hl
cs      6555   1 98 04:22 ?      14:21:28 ./hlds_i686 -pingboost 3 -game cstrike +port 28888 -nomaster -insecure +sv_lan 0 +servercfgfile 2.cfg +maxplayers 14 +map de_dust2
cs      656865550 04:22 ?      00:00:00
$ kill -9 6555
$ kill -9 6568
$ ps -ef|grep hl
cs      6555   1 98 04:22 ?      14:22:57 ./hlds_i686 -pingboost 3 -game cstrike +port 28888 -nomaster -insecure +sv_lan 0 +servercfgfile 2.cfg +maxplayers 14 +map de_dust2
cs      656865550 04:22 ?      00:00:00


还是这样,,,
那个pid 6568的进程是什么意思

miFor 发表于 2006-5-29 15:33:11

回复: 无法杀死CS进程 这是怎么回事

killall -9 hlds_run hlds_i686

hlds_i686的父进程是hlds_run,你把hlds_i686 kill掉后,父进程hlds_run会自动启动hlds_i686的,二个一起杀就好了。

tnt1980 发表于 2006-5-29 22:05:59

回复: 无法杀死CS进程 这是怎么回事

# killall -9 hlds_run hlds_i686
hlds_run: no process killed
# ps -aux|grep 28888
cs      6555 99.52.8 69764 58772 ?       RN   May28 2488:03 ./hlds_i686 -pingboost 3 -game cstrike +port 28888 -nomaster -insecure +sv_lan 0 +servercfgfile 2.cfg +maxplayers 14 +map de_dust2
root   127030.00.03680664 pts/1    S    22:03   0:00 grep 28888

这个还是在,,,
还有一个问题请教高手,没人的时候不会重启,人一多就重启了CS服务器端,只重启该端口的,其他端口没有人的不会,,,

wingen 发表于 2006-5-30 14:30:57

回复: 无法杀死CS进程 这是怎么回事

最简单的方法,使用hlsw工具,输入OP密码后,在控制台里输入quit命令即可!

tnt1980 发表于 2006-5-30 16:00:15

回复: 无法杀死CS进程 这是怎么回事

实际上这个根本上就是没有运行,你在hlsw上刷不出来的

miFor 发表于 2006-6-2 23:22:35

回复: 无法杀死CS进程 这是怎么回事

你使用pstree看一下hlds_i686的父进程是谁,然后使用killall一起杀了

zgw224 发表于 2006-6-3 13:15:05

回复: 无法杀死CS进程 这是怎么回事

先杀父进程hlds_run,,再杀hlds_i686,好像是这个吧,很长时间没弄linux下的CS服了,忘了

lorry 发表于 2006-6-16 11:10:28

回复: 无法杀死CS进程 这是怎么回事

killall -9 hlds_run
页: [1] 2
查看完整版本: 无法杀死CS进程 这是怎么回事