队列Queue模块 """ 管道:subprocess stdin stdout stderr 队列:管道+锁 队列:先进先出 堆栈:先进后出 """ from multiprocessing import Queue # 创建一个队列 q = Queue(5) # 括号内可以传数字 标示生成的队列 ...
分类:
编程语言 时间:
2021-03-05 13:10:29
阅读次数:
0
在允许nginx服务器中,输入命令: netstat -ano | grep "TIME_WAIT" 可以看到出现很多TIME_WAIT的端口, 输入命令: netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c 可以看到结果: 76 CLOSE_WAIT 3 ...
分类:
其他好文 时间:
2021-03-04 13:10:09
阅读次数:
0
sudo find /etc/ -type f -name "rc*" -exec ls -l {} \;find . -name "t*" -perm 777 -printfind . -mtime -180find /var/log/ -mtime -3 -ok rm {} \; vim 替换: ...
分类:
系统相关 时间:
2021-03-04 13:03:44
阅读次数:
0
网络命令 - ifconfig 1. 查看所有网卡信息 ifconfig -a 2. 查看本机所有IP值信息 ifconfig | grep inet 3. 查看指定网卡IP值 ifconfig '网卡名称' ...
分类:
其他好文 时间:
2021-03-03 12:01:55
阅读次数:
0
查看程序对应的进程号: ps -ef | grep 进程名字 查看端口号所占用的进程: netstat -nltp | grep 端口 或者 netstat -anp | grep 端口 杀死进程 kill pid ...
分类:
系统相关 时间:
2021-03-02 12:19:11
阅读次数:
0
cd,pwd,ls,cp,mv,history,ps,top,netstat,grep,tar-cvf/xvf,这些是基本的 touch,cat,head,tail,跟文件相关 vim命令 vi,进入文件页, i,插入 esc,切换插入模式和命令模式,然后:wq,保存后退出 最近重点学习了awk命令 ...
分类:
系统相关 时间:
2021-03-02 11:57:34
阅读次数:
0
1.定时任务 crontab -e s m h d month w cmd 2.任务后台执行 command & 3.查看进程 ps -ef|grep prcss 4.杀死进程 kill -9 pid 5.服务状态 service prcss_name status|start|stop|resta ...
分类:
系统相关 时间:
2021-03-01 14:17:23
阅读次数:
0
1.查看端口 netstat -anp|grep port netstat -antup 2.文件传输 wget [-options] args curl [-options] args lftp [-options] args 3.远程登录 telnet host_name port ssh [- ...
分类:
其他好文 时间:
2021-03-01 14:17:05
阅读次数:
0
1. 管道相关命令 1.1 cut cut:以某种方式按照文件的行进行分割 参数列表: 参数 英文 含义 -c characters 按字符选取 -b 按字节选取 忽略多字节字符边界,除非也指定了 -n 标志 -d '分隔符' delimiter 自定义分隔符,默认为制表符。 -f 'n1,n2' ...
分类:
系统相关 时间:
2021-02-26 13:01:54
阅读次数:
0
流包含三个阶段的操作管道: 1.建立一个流 。 eg: stream 或 parallelStream 2.指定将初始流转换为其他流的中间操作,可能包含多个步骤。 eg: filter等方法 3.应用终止操作,从而产生结果。这个操作会执行之前的惰性操作。从此之后,这个流就再也不能用了。 eg:cou ...
分类:
其他好文 时间:
2021-02-22 12:38:39
阅读次数:
0