在docker中运行fork进程的go程序时: /* UTS Namespace主要用来隔离nodename和domainname两个系统标识。在UTS namespace里,每个namespace允许有自己的hostname。 系统API 中的clone()创建新的进程。根据填入的参数来判断哪些n ...
分类:
其他好文 时间:
2021-02-16 12:43:00
阅读次数:
0
jq Bash, unfortunately, doesn’t ship with a command that can work with JSON natively. In this lesson, we’ll learn how to read and do basic queries on ...
分类:
Web程序 时间:
2021-02-15 12:41:34
阅读次数:
0
public class NIOFileChannel01 { public static void main(String[] args) throws Exception { String str = "hello,帅锅"; //创建一个输出流->channel FileOutputStream ...
分类:
Web程序 时间:
2021-02-15 12:01:12
阅读次数:
0
1.开启对应Windows功能(适用于linux的Windows子系统) 2.微软商店对应下载 Windows terminal 、 ubantu 3.设置 Windows terminal ubantu:把下面这个加到/root/.bashrc里 #Fix mkdir command has wr ...
package main import ( "bufio" "fmt" "io" "log" "os" "os/exec" // "strings" ) func checkExe2(exeAdress string) { cmd := exec.Command("cmd.exe", "/c", " ...
分类:
其他好文 时间:
2021-02-09 12:32:53
阅读次数:
0
//更改I/O缓冲大小 //set_buffer.c#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/socket.h>void error_handling(char*message); int main(i ...
分类:
其他好文 时间:
2021-02-09 12:11:39
阅读次数:
0
Jenkins 部署项目出现 Failed to connect to repository : Command "git ls-remote XXX 表示为,Jerkins无法连接到你输入的Repository URL的 Git仓库…… 怎么办呢? 试了很多方法: 1、在git仓库里面配置公钥、在 ...
分类:
其他好文 时间:
2021-02-08 12:50:48
阅读次数:
0
macOS是自带python环境的,现在要做的是配置python3的环境 (这个退出实在让我难受,以前在window上都是ctrl+z退出的,这里用的是command+z退出,差点找不到退出方法XD 安装python3 访问官网:https://www.python.org/downloads/ma ...
分类:
编程语言 时间:
2021-02-08 12:45:21
阅读次数:
0
右键没有notepad++选项 cmd→regedit 找到计算机\HKEY_CLASSES_ROOT*\shell 右键shell文件夹,新建→项,命名为command 双击右侧(默认)文件 notepad安装路径+**notepad.exe"%1"** 确定保存,完成 ...
分类:
其他好文 时间:
2021-02-08 11:46:05
阅读次数:
0
import java.io.ByteArrayOutputStream;import java.io.IOException; import java.io.InputStream; private byte[] toByteArray(InputStream input) throws IOEx ...
分类:
其他好文 时间:
2021-02-05 10:39:31
阅读次数:
0