摘要: 资料链接网址:http://youzhixueyuan.com/database-master-slave-synchronization.html 阅读全文
posted @ 2019-07-12 10:39 hgrical_小农 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 一、静态使用proto文件步骤 1、创建proto文件 addressbook.proto 2、使用protoc编译器将proto文件编译成C++代码 编译命令格式:protoc -I=$SRC_DIR --cpp_out=$DST_DIR /path/to/file.proto列如:protoc 阅读全文
posted @ 2019-01-24 17:47 hgrical_小农 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 使用pb动态特性步骤1、动态编译proto文件 构造 google::protobuf::compiler::Importer 对象 调用FileDescriptor * fd = im.import(“协议文件”); 新建一个协议文件:test.proto message test { requi 阅读全文
posted @ 2019-01-24 17:32 hgrical_小农 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: setenv burn_tftp_rootfs 'mtdparts default;nand erase.part NAND.rootfs;ubi part NAND.rootfs 2048;ubi create rootfs;tftp ${loadaddr} rootfs.ubifs;ubi wr 阅读全文
posted @ 2019-01-24 17:11 hgrical_小农 阅读(894) 评论(0) 推荐(0) 编辑
摘要: linux 查看端口占用1、lsof -i:90902、netstat -tunlp|grep 端口号 systemctl status firewalld 查看firewalld状态systemctl start firewalld 开启防火墙systemctl stop firewalld 关闭 阅读全文
posted @ 2019-01-24 17:04 hgrical_小农 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1、删除原有YUMrpm -aq|grep yum|xargs rpm -e --nodeps 2、下载yum安装文件wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x8 阅读全文
posted @ 2019-01-24 17:01 hgrical_小农 阅读(389) 评论(0) 推荐(0) 编辑
摘要: ptype 查看结构体定义set print pretty on/off 设置结构体显示时的样子show print pretty 查看 show print sevenbit-strings 查看字符显示set print sevenbit-strings on/off-设置 p $eip 查看寄 阅读全文
posted @ 2019-01-24 16:58 hgrical_小农 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1、问题描述 近日,在测试一个设备的SDK网关,当时我在测试断网情况下,sdk采集的数据是否能正常将数据保存到本地sqlite数据库,开始的时候程序一切正常按照预期的将采集数据存储到本地,如果断网时间不长又将网络连接上,那么sdk能正常的重连主网关也业务网关将存储在本地sqlite数据库的数据上传到 阅读全文
posted @ 2019-01-24 16:50 hgrical_小农 阅读(677) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-07-23 16:47 hgrical_小农 阅读(11) 评论(0) 推荐(0) 编辑
摘要: RedHat静态Ip地址配置 依次修改以下三个文件: /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/resolv.conf 1./etc/sysconfig/network NETWORKING=yes N 阅读全文
posted @ 2017-04-21 17:20 hgrical_小农 阅读(573) 评论(0) 推荐(0) 编辑