案例一、 public static void Main() { // Create the token source. CancellationTokenSource cts = new CancellationTokenSource(); // Pass the token to the can ...
分类:
编程语言 时间:
2021-07-14 18:50:15
阅读次数:
0
1.打开https://www.ipaddress.com/,输入gist.github.com获取IP地址 2.ping 此ip地址,可以访问 3.将IP地址写入Hosts文件,140.82.113.3 gist.github.com MAC: /etc/hosts Windows: c/Wind ...
分类:
其他好文 时间:
2021-07-13 17:44:20
阅读次数:
0
Kubernetes集群部署Prometheus和Grafana 一、环境规划 K8S集群角色 Ip 主机名 控制节点 192.168.40.180 k8s-master1 工作节点 192.168.40.181 k8s-node1 工作节点 192.168.40.182 k8s-node2 实验环 ...
分类:
Web程序 时间:
2021-07-12 18:16:54
阅读次数:
0
选择排序: 数据较少时可以用,缺点:时间复杂度n的平方,优点:空间复杂度小 具体实现: /** * 选择排序 * * @param $array * @return mixed */ public function sort($array) { $len = count($array); if ($ ...
分类:
编程语言 时间:
2021-07-12 18:06:27
阅读次数:
0
快速排序: 总体最优,数据大时性能最好 具体实现:设置一个基准值,小于基准值放左边,大于基准值放右边,最后递归继续排左右两侧的,最后排完后合并 /** * 快速排序 * * @param $array * @return array */ public function sort($array): ...
分类:
编程语言 时间:
2021-07-12 18:06:10
阅读次数:
0
冒泡排序: 数据少时可以用,简单,稳定 具体实现: /** * @param $array * @return mixed */ public function sort($array) { $len = count($array); if ($len 1) { return $array; } / ...
分类:
编程语言 时间:
2021-07-12 18:05:32
阅读次数:
0
Socket是应用层与TCP/IP协议族通信的中间软件抽象层,它是一组接口。即Socket提供了操作上述特殊文件的接口,使用这些接口可以实现网络编程。 Socket通信流程图 TCP(Transmission Control Protocol,传输控制协议)是面向连接的协议,在正式通信之前必须建立起 ...
分类:
编程语言 时间:
2021-07-12 18:03:46
阅读次数:
0
json={ "ip"=> "127.0.0.1, "ports"=> '80,135', "data"=>[{"port":22,"item":["22","open","tcp","","ssh"]}] } puts "str:#{ str.to_json}" write_log("nmapre ...
分类:
其他好文 时间:
2021-07-12 18:01:18
阅读次数:
0
2021年7月10日22:44:49 trait zx { // const sss = 9; public static function tt() { echo 'tt'; } public function yy() { echo 'yy'; } } class uu { use zx; co ...
分类:
Web程序 时间:
2021-07-12 17:56:00
阅读次数:
0
定义一个类实现ApplicationRunner接口,然后Override这个ApplicationRunner接口的run方法 @Component public class TaskRunner implements ApplicationRunner { public static final ...
分类:
编程语言 时间:
2021-07-12 17:55:04
阅读次数:
0