摘要:Docker安装Go 用docker安装go,可能不是最好的方法,但一定是最方便的方法 # 指定容器名为go115 docker run -it --name go115 golang:1.15 /bin/bash 你可以通过加上-v ~:/home/me参数,表示将家目录挂载到/home/me目录
阅读全文
摘要:CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find OpenSSL, try to set the path to OpenSSL
阅读全文
摘要:https://docs.bazel.build/versions/master/install-ubuntu.html his page describes the options for installing Bazel on Ubuntu. It also provides links to
阅读全文
摘要:[root@bogon fnmut]# cat src/main.rs #[derive(Debug)] struct f_closure{ name: String, } impl f_closure{ fn fn_call( self) -> String{ self.name } } fn g
阅读全文
摘要:root@ubuntu:~# gdb firecracker /data1/core/core.53227 GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation,
阅读全文
摘要:$ gdb --configuration 这个GDB配置如下:配置--host = x86_64-apple-darwin13.1.0 --target = x86_64-apple-darwin13.1.0 --with-auto-load-dir =:$ {prefix} / share /
阅读全文
摘要:智能指针是一类数据结构 智能指针 拥有 指向的内存,而 引用 只是 借用 智能指针 实现了 Deref 和 Drop 两个trait Box<T>,用于在堆上分配值 <=> 对应 C++ 的 std::unique_ptr Rc<T>,一个引用计数类型,其数据可以有多个所有者 <=> 对应 C++
阅读全文
摘要:https://blog.csdn.net/SweeNeil/article/details/89640206
阅读全文
摘要:[root@localhost ovs]# ln -s /lib64/libc-2.17.so /lib64/libc.so.6ln: error while loading shared libraries: libc.so.6: cannot open shared object file: N
阅读全文
摘要:centos7不支持glibc-2.27 那就去清华开源站点下载glibc https://mirrors.tuna.tsinghua.edu.cn/gnu/libc/ 在介绍压缩目录里建build,../configure --prefix=/opt/glibc-2.27 make make in
阅读全文
摘要:Background Starting from ARM-v8.1, Virtualization Host Extension (VHE) feature supports running unmodified OS in EL2. mrs x0, ESR_EL1can be redirected
阅读全文
摘要:strace -o firecracker.output firecracker --api-sock /tmp/firecracker.socket strace -ff -o log.runsc docker run --runtime=runsc-kvm --rm hello-world st
阅读全文
摘要:https://bbs.huaweicloud.com/forum/thread-22665-1-1.html# 去官网下载http://ftp.gnu.org/gnu/gcc/下载GCC 5.4.0的源码压缩包解压安装 解压gcc-5.4.0.tar.gz [root@localhost qemu
阅读全文
摘要:如果你注意到的话,这样编译就能通过了: gcc -o test test.c -lrt 其实就是要连接库的原因。但是需要注意,-lrt需要放到后面,如果放到前面,还会报同样的错误,原因未知。下面给出一个我测试过的例子 /tmp/cc2aVWuG.o: In function `main': simp
阅读全文
摘要:https://jermine.vdo.pub/go/golang%E4%B8%8Ec%E4%BA%92%E7%9B%B8%E8%B0%83%E7%94%A8%E4%BB%A5%E5%8F%8A%E8%B0%83%E7%94%A8c%E7%9A%84so%E5%8A%A8%E6%80%81%E5%B
阅读全文
摘要:A start job is running for dev-ttyS0.device [ TIME ] Timed out waiting for device dev-ttyS0.device.[DEPEND] Dependency failed for Serial Getty on ttyS
阅读全文
摘要:root@4c83d500b893:/# netcat -l -p 6000 GET / HTTP/1.1 User-Agent: Wget/1.19.4 (linux-gnu) Accept: */* Accept-Encoding: identity Host: 172.17.0.4:6000
阅读全文
摘要:http://sxca.miit.gov.cn/txxh/xujfil/4749.hrh root@ # iptables -vnL cali-PREROUTING -t nat Chain cali-PREROUTING (1 references) pkts bytes target prot
阅读全文
摘要:static noinline int init_post(void) __releases(kernel_lock) { /* need to finish all async __init code before freeing the memory */ async_synchronize_f
阅读全文