14章进程管理 1.每个执行的程序都称一个程序,每个进程都分配一个ID(pid,进程号) 2.程序有两种方式:前台和后台 3.系统的服务都是以后台进程的方式存在,而且常驻在系统。 查看进程 ps 命令查看执行情况 ps -a 查看当前的所有进程信息 ps -u 以用户的格式显示进程信息 ps -x ...
分类:
系统相关 时间:
2021-05-24 13:42:34
阅读次数:
0
前言 之前在利用docker 2375端口漏洞的时候,写公钥发现没有权限,检查后发现其被chattr锁定了 当使用chattr命令去解锁时,就出现了这个问题 chattr: Operation not permitted while setting flags on file 解决方案 chattr ...
分类:
其他好文 时间:
2021-05-24 13:37:55
阅读次数:
0
一、freemodbus源码获取 首先访问官网:https://www.embedded-solutions.at/en/freemodbus/在freemodbus DownLoads界面中,可以免费下载freemodbus V1.6,以及freemodbus的源码。 解压freemodbus-v ...
分类:
数据库 时间:
2021-05-24 13:35:38
阅读次数:
0
# print()# input()# len()# type()# int()# str()# list()# tuple()# dict()# set()# float()# id() # avg = sum(l) / len(l) #计算平均值# print(avg)# print( max( ...
分类:
编程语言 时间:
2021-05-24 13:23:00
阅读次数:
0
对于一些场景需要大量数据来支撑的测试,就可以用到参数化来节省手工测试所花费的时间 pytest参数化需要用到装饰器:parametrize 用户,导入pytest模块之后,在函数上方使用,效果如下: import pytest @pytest.mark.parametrize("id,goodsco ...
分类:
其他好文 时间:
2021-05-24 13:16:38
阅读次数:
0
使用: 1、在build.gradle中添加 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories ...
分类:
其他好文 时间:
2021-05-24 13:15:41
阅读次数:
0
0. 参考文档 https://zhuanlan.zhihu.com/p/292151192 1. IO流分类 1.1 分类方式 IO流主要有三种分类方式: 按数据流的方向:输入流、输出流 按处理数据单元:字节流、字符流 按功能:节点流、处理流 1.2 常用流分类 转换流 ? InputStream ...
分类:
其他好文 时间:
2021-05-24 12:52:23
阅读次数:
0
github地址 https://github.com/rest-client/rest-client gemfile里添加 gem 'rest-client', '~> 2.0' 执行 bundle install 代码里 # 要请求接口地址 # 上传文件的key名字 # file 文件的绝对路径 ...
分类:
Web程序 时间:
2021-05-24 12:42:18
阅读次数:
0
1.第三方提供了这么一个API接口,POST后将附件以file文件上传,通过postman工具界面是下面这种样子 Body为form-data类型,不管是文本还是文件,都能在value上填上去 2.C#实现接口调用代码 public static string PostForm(string url ...
centos编译安装Python时,提示“Warning: File `Makefile.pre.in' has modification time 19209898 s in the future”先说结论:系统时间不对。如果遇到编译make时一直checking,那不用等了,它停不下来。实际上m... ...
分类:
系统相关 时间:
2021-05-24 12:34:55
阅读次数:
0