- 博客(8)
- 收藏
- 关注
原创 mktime 函数输出时间戳错误
最后发现居然是gmtime 影响的。。。#include <iostream>#include <vector>#include <time.h>#include <stdio.h>#include <string.h>using namespace std;void printStructTime(struct tm *tm_local){ printf("%04d/%02d/%02d %02d:%02d:%02
2021-01-18 15:47:39
1226
原创 有名管道进程间通信
接收数据端recv.cpp#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>typedef struct TestData_t{ /* data */ int attr1; char attr2[32];} TestData_t;class PipeR
2020-11-16 11:43:01
132
原创 live555 历史版本镜像地址
live555 历史版本镜像地址http://download.videolan.org/pub/contrib/live555/
2020-11-09 17:54:40
728
原创 libs3 测试
docker 搭建miniodocker run -d --name minio1 -p 9000:9000 -e "MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE" -e "MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" minio/minio server data
2020-10-19 18:00:46
553
原创 ceph 配置
使用国内源export CEPH_DEPLOY_REPO_URL=https://mirrors.163.com/ceph/debian-jewelexport CEPH_DEPLOY_GPG_URL=https://mirrors.163.com/ceph/keys/release.ascosd 使用lvmsudo pvcreate /dev/sdbsudo vgcreate ceph-volumes /dev/sdbsudo lvcreate -L10G -nceph0 ceph-vol
2020-10-19 17:18:38
183
原创 ffmpeg 编译以及常用命令行
ffmpegpython-ldbwindowsexport PKG_CONFIG_PATH=C:\msys64\mingw64\lib\pkgconfig./configure --pkg-config-flags=–static --enable-libfdk_aac --enable-libx264 --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pic --enable-debug --dis
2020-10-09 14:53:09
2048
原创 linux 常用配置
sudo 免密码sudo echo "zxf ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/zxf sudo chmod 0440 /etc/sudoers.d/zxf sudo sed -i s'/Defaults requiretty/#Defaults requiretty'/g /etc/sudoersssh 免密码ssh-keygen -t rsa# ssh-keygen -f "/home/zxf/.ssh/known_h
2020-10-09 14:35:05
203
1
原创 nginx-rtmp 配置
安装ningx#下载nginxwget http://nginx.org/download/nginx-1.12.2.tar.gz#解压nignxtar -zxvf nginx-1.12.2.tar.gz#切换到nginx中cd nginx-1.12.2#生成配置文件,将上述下载的文件配置到configure中./configure --prefix=/usr/local/nginx --with-pcre=../pcre-8.41 --with-zlib=../zlib-1.2.11 --.
2020-10-09 14:29:02
1703
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人