ps aux|grep python|grep -v grep|cut -c 9-15|xargs kill -15管道符“|”用来隔开两个命令,管道符左边命令的输出会作为管道符右边命令的输入。 以下是用管道符联接起来的命令含义: “ps aux”是linux 里查看所有进程的命令。这时检索出的进程 ...
分类:
系统相关 时间:
2020-01-17 13:40:56
阅读次数:
87
开放端口命令:nc -lp 端口号 & (如开放80端口:nc -lp 80 & 即可) 使用此命令开放的端口在使用时会报端口已经被占用,是因为该命令打开的端口都有相应的监听程序,解决方法如下: 使用命令lsof -i:端口号(如:lsof -i:80)查看占用端口的pid 然后直接kill -9 ...
分类:
系统相关 时间:
2020-01-17 13:28:51
阅读次数:
123
linux后台运行和关闭、查看后台任务 https://www.cnblogs.com/huey/p/4871468.html 阅读目录 一、& 二、ctrl + z 三、jobs 四、fg 五、bg 六、kill 七、nohup fg、bg、jobs、&、nohup、ctrl+z、ctrl+c 命 ...
分类:
系统相关 时间:
2020-01-17 09:40:13
阅读次数:
98
#!/bin/bashyum -y install keepalived >/dev/nulltouch /opt/kill.shcat >/opt/kill.sh<<EOF#!/bin/bashsystemctl stop keepalivedEOFsame=`grep -f /opt/keepa ...
分类:
其他好文 时间:
2020-01-16 22:01:23
阅读次数:
72
#!/bin/bash yum -y install keepalived > /dev/null touch /opt/kill.sh cat >/opt/kill.sh<<EOF #!/bin/bash systemctl stop keepalived EOF same=`grep -f /o ...
分类:
其他好文 时间:
2020-01-16 21:55:05
阅读次数:
96
Shell:是系统的用户界面,提供了用户和内核进行交互操作的一种接口。 Linux目录结构 bin 存放二进制可执行文件(ls,cat,mkdir等) boot 存放用于系统引导时使用的各种文件 dev 用于存放设备文件 etc 存放系统配置文件 home 存放所有用户文件的根目录 lib 存放跟文 ...
分类:
系统相关 时间:
2020-01-16 19:16:32
阅读次数:
107
需求描述:模拟真实的激光笔,用于在ppt播放时可通过移动端进行控制; 实现思路:c++ + win32 api + UI(duilib)+鼠标事件+定时器策略,激光笔跟随鼠标的移动而移动,鼠标双击退出; 具体效果: 1 #pragma once 2 #include "stdafx.h" 3 cla ...
分类:
其他好文 时间:
2020-01-16 10:51:48
阅读次数:
87
spark-submit提交任务的参数很多: Usage: spark-submit [options] <app jar | python file> [app arguments] Usage: spark-submit --kill [submission ID] --master [spar ...
分类:
其他好文 时间:
2020-01-16 00:40:04
阅读次数:
169
展示端口号进程:netstat -aon|findstr "3306" 将进程号关闭:taskkill /PID 5344 /f ...
分类:
系统相关 时间:
2020-01-15 09:42:47
阅读次数:
63
982 2020-01-14 18:00:55 google-pprof --pdf ./demo /tmp/profile > output.pdf 983 2020-01-14 18:02:26 g++ -o demo demo.cpp -lprofiler 984 2020-01-14 18: ...
分类:
其他好文 时间:
2020-01-14 21:02:31
阅读次数:
80