09 2020 档案

摘要:socket建立以后,获取远端的IP地址,结果格式为 "::ffff:127.0.0.1" 类型, 想要去除前面前缀 ::ffff: 搜索到可以通过设置flags, QHostAddress::ConvertV4MappedToIPv4, 但是没找到对应的方法. 可以使用规避的方式,先将ip地址格式 阅读全文
posted @ 2020-09-30 11:33 hbg-rohens 阅读(5616) 评论(0) 推荐(0) 编辑
摘要:qtchooser默认选择路径中没有指向qmake路径 cd /usr/lib/x86_64-linux-gnu/qt-default/qtchooser vi default.conf 修改为qmake真实的路径即可. 其中, qmake 真实路径可通过, which qmake命令查看. 阅读全文
posted @ 2020-09-23 14:23 hbg-rohens 阅读(770) 评论(0) 推荐(0) 编辑
摘要:参考链接: https://www.cnblogs.com/JadenFK3326/p/Ubuntu.html 连接到数据库时,提示如下错误: connect to database error : Access denied for user 'root'@'localhost' 解决方法如下: 阅读全文
posted @ 2020-09-18 18:44 hbg-rohens 阅读(997) 评论(0) 推荐(0) 编辑
摘要:ping 192.168.1.1 -c 10 | awk '{ print $0"\t" strftime("%Y-%m-%d %H:%M:%S",systime())}' 后台运行 nohup ping 192.168.1.1 -c 10 | awk '{ print $0"\t" strftim 阅读全文
posted @ 2020-09-11 17:30 hbg-rohens 阅读(1905) 评论(0) 推荐(0) 编辑
摘要:开启core, 采集程序崩溃端状态 vi /etc/profile ulimit -S -c unlimited > /dev/null 2>&1 source /etc/profile 将崩溃文件记录下来 vi /etc/sysctl.conf kernel.core_pattern = ./co 阅读全文
posted @ 2020-09-04 18:07 hbg-rohens 阅读(185) 评论(0) 推荐(0) 编辑
摘要:当紧接着执行两条select语句时, 产生了 2014的错误码. 查询问题原因:调用存储过程后,没有完全释放资源:需要在最后调用以下代码: MYSQL_RES *res; while (!mysql_next_result(gp_conn)) { res = mysql_store_result(g 阅读全文
posted @ 2020-09-01 20:44 hbg-rohens 阅读(889) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示