查询结束某个程序,比如有多个scrapyd 启动,找到正确需要停止的
ps -ef | grep scrapyd # 根据进程名查看进程信息
netstat -nap | grep 1095 # 根据进程id查看进程占用端口
netstat -tunlp | grep 8080 # 根据端口查看对应进程,查看占用8080端口的进程id
kill -9 1095 # 根据进程id杀死进程,杀死进程id为1095的进程
查询结束某个程序,比如有多个scrapyd 启动,找到正确需要停止的
ps -ef | grep scrapyd # 根据进程名查看进程信息
netstat -nap | grep 1095 # 根据进程id查看进程占用端口
netstat -tunlp | grep 8080 # 根据端口查看对应进程,查看占用8080端口的进程id
kill -9 1095 # 根据进程id杀死进程,杀死进程id为1095的进程