kill函数/命令产生信号 kill命令产生信号:kill -SIGKILL pid kill函数:给指定进程发送指定信号(不一定杀死) int kill(pid_t pid, int sig); 成功:0;失败:-1 (ID非法,信号非法,普通用户杀init进程等权级问题),设置errno sig ...
分类:
其他好文 时间:
2019-08-08 19:19:19
阅读次数:
196
@echo off set/p "target=进程名(默认nginx): "if not defined target (set "target=nginx")set "list=tasklist /fi "imagename eq %target%.exe""%list% set/p "yn=是 ...
分类:
系统相关 时间:
2019-08-08 10:28:05
阅读次数:
139
Tired of doing the same job? Get your hands on NSE5_FAZ-6.0 exam It is the nature of the human being that he/she will get tired of doing the same task ...
分类:
其他好文 时间:
2019-08-06 19:39:48
阅读次数:
63
这时,使用 ps -ef|grep 项目名,查看进程 kill -9 项目名 然后再进行重启就可以 ...
分类:
其他好文 时间:
2019-08-06 10:58:42
阅读次数:
113
权值线段树 所谓权值线段树,就是一种维护值而非下标的线段树,我个人倾向于称呼它为值域线段树。 举个栗子:对于一个给定的数组,普通线段树可以维护某个子数组中数的和,而权值线段树可以维护某个区间内数组元素出现的次数。 在实现上,由于值域范围通常较大,权值线段树会采用离散化或动态开点的策略优化空间。 更新 ...
分类:
其他好文 时间:
2019-08-04 01:20:25
阅读次数:
103
# 需要先 cd frp 解压目录. # 复制文件 cp frpc /usr/local/bin/frpc mkdir /etc/frp cp frpc.ini /etc/frp/frpc.ini # 编写 frp service 文件,以 centos7 为例,适用于 debian vim /us... ...
分类:
其他好文 时间:
2019-08-03 21:46:02
阅读次数:
152
一、无法获取锁 首先一般在安装软件前都会对库进行更新 sudo apt-get update 更新之后安装软件时可能会报错。如下: 在安装redis-server时,出现无法获取锁 E: /var/lib/dpkg/lock-frontend -open (11: 资源暂时不可用)和E: 无法获取 ...
分类:
系统相关 时间:
2019-08-03 21:34:31
阅读次数:
150
复制下面命令存到.bat 文件中,并允许bat文件 taskkill /f /im explorer.exeattrib -h -i %userprofile%\AppData\Local\IconCache.dbdel %userprofile%\AppData\Local\IconCache.d ...
分类:
其他好文 时间:
2019-08-03 01:14:01
阅读次数:
173
1、查看与杀进程 lsof i tcp:8080 该命令会显示占用8080端口的进程,有其 pid ,可以通过pid关掉该进程 kill pid kill 1095 终止 pid 为 1095 的进程 kill 9 1095 强制终止 pid 为 1095 的进程 kill all 直接杀死所有进程 ...
分类:
其他好文 时间:
2019-08-02 20:27:25
阅读次数:
79
public void Kill(string filePath) { var wmiQueryString = "SELECT ProcessId, ExecutablePath, CommandLine FROM Win32_Process"; using (var searcher = new... ...