方法一:
sudo killall -9 netease-cloud-music
这种方法,必须要写全称。
1sudo netease-cloud-music 2QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' 305-23, 14:29:48 [Error ] [ 0] Media changed 405-23, 14:29:48 [Error ] [ 0] Player opening 5已杀死 6
方法二:
sudo kill -9 `pgrep netease`
这种方法,只需要知道大概的名称即可。
1sudo netease-cloud-music 2QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' 305-23, 14:31:53 [Error ] [ 0] Media changed 405-23, 14:31:53 [Error ] [ 0] Player opening 5已杀死 6
方法三:
sudo pkill -9 netease-cloud
这个是方法二的延伸版本
1sudo netease-cloud-music 2QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' 305-23, 14:33:32 [Error ] [ 0] Media changed 405-23, 14:33:32 [Error ] [ 0] Player opening 5已杀死 6
方法四:
1# ps -aux | grep netease | awk '{print $2}' 211270 311271 411273 511309 611416 7 8 9 10sudo kill -s 9 `ps -aux | grep netease | awk '{print $2}'`
这个应该是最原始的思路了。