logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Linux go 执行shell命令并得到返回结果

package mainimport ("fmt""io/ioutil""os/exec")func ExecCommand(strCommand string)(string){cmd := exec.Command("/bin/bash", "-c", strCommand)stdout, _

Linux C++ 获取系统类型以及内核版本

#include <sys/utsname.h>struct utsname u;uname(&u);

Linux gdb attach失败之解决方法

一、现场情况主、子进程。主进程PID是1,子进程PID是32856。gdb attach 32856失败二、解决方法gdb -p 指定进程。例如gdb-p32856 /proc/32856/exe

Linux C++ 获取U盘挂载路径

#include "DiskU.h"#ifndef _WIN32#include <time.h>#include <stdio.h>#include <stdlib.h>#include <sys/stat.h>#include <sys/types.h>#include <dirent.h>#endif...

Linux protobuf错误处理

In file included from /usr/include/c++/4.8.2/mutex:35:0,from /usr/local/include/google/protobuf/stubs/mutex.h:33,from /usr/local/include/google/protobuf/stubs/comm...

ubuntu18.04 编译ffmpeg、cuda

一、安装cuda依赖apt install nvidia-cuda-toolkit二、进入ffmpeg目录cd /opt/ffmpeg-4.2.3然后执行git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.gitcd nv-codec-headersmakesudo make install三、编译PKG_CONFIG_PA

Ubuntu18.04 sudo apt update无法解析域名的解决方案

1. sudo vim /etc/resolv.conf # 添加如下内容nameserver 8.8.8.8nameserver 127.0.0.1options edns02. 输入Esc,:wq,保存并退出3. sudo /etc/init.d/networking restart

到底了