上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页
  2020年12月17日
摘要: centos7安装cmake3比较费劲 自己编译更是难弄 可以直接从官方下载二进制文件来安装 例如https://github.com/Kitware/CMake/releases/download/v3.19.2/cmake-3.19.2-Linux-x86_64.tar.gz 下载到Linux 阅读全文
posted @ 2020-12-17 15:58 弘道者 阅读(737) 评论(0) 推荐(0)
  2020年9月19日
摘要: 打印字符串里面第一个空格前的内容 ps -ef|awk '{print $1}' 这里用ps来做源字符串 其中$1表示第一列,$1表示第二列分割内容 要实现倒数也很简单 比如打印倒数第一列 ps -ef|awk '{print $NF}' 倒数第二行 ps -ef|awk '{print $(NF- 阅读全文
posted @ 2020-09-19 19:39 弘道者 阅读(631) 评论(0) 推荐(0)
  2020年9月9日
摘要: 最近线上遇到一个问题 导致程序崩溃 最后查到是gethostbyname的问题 把代码精简了 如下: bool test(char* host,int port) { hostent *m_phostent=gethostbyname(host); if(m_phostent==NULL)retur 阅读全文
posted @ 2020-09-09 18:04 弘道者 阅读(1141) 评论(0) 推荐(0)
  2020年7月19日
摘要: 最近调试机顶盒没有遥控板 发现adb也可以模拟遥控板 应急一下蛮方便的 下面是输入一段文字 adb shell input text "demotest" 下面是输入特定键 adb shell input keyevent keycode 其中keycode是数字,不同的数字代表不同的操作,如下 电 阅读全文
posted @ 2020-07-19 14:42 弘道者 阅读(587) 评论(0) 推荐(0)
  2020年7月9日
摘要: 编译ncurses-6.2 解压后进入目录执行 ./configure --without-cxx make make install 编译libpcap-1.9.1 解压后进入目录执行 ./configure --disable-shared --enable-static make make i 阅读全文
posted @ 2020-07-09 15:44 弘道者 阅读(288) 评论(0) 推荐(0)
  2020年7月1日
摘要: nginx出现错误Too many open files 可以通过命令查看系统打开文件数的限制 血的教训 编辑/etc/security/limits.conf在末尾添加如下内容 root soft nofile 1000000 root hard nofile 1000000 添加完效果如下 上面 阅读全文
posted @ 2020-07-01 20:34 弘道者 阅读(185) 评论(0) 推荐(0)
  2020年6月23日
摘要: 如果电脑有个网卡的时候 通常需要指定一下网卡 下面是例子 ffmpeg -listen 1 -re -localaddr 192.168.1.101 -i rtp://235.20.100.1:1234 -copy -f hls /dev/shm/1.m3u8 重点就是-localaddr av_d 阅读全文
posted @ 2020-06-23 10:05 弘道者 阅读(2289) 评论(0) 推荐(0)
  2020年6月2日
摘要: 遇到程序崩溃的时候abrt-hook-ccpp使用CPU太多,IO也太高导致系统跑满了,干脆停用算了 systemctl stop abrt-ccpp.service systemctl disable abrt-ccpp.service systemctl status abrt-ccpp.ser 阅读全文
posted @ 2020-06-02 21:56 弘道者 阅读(7686) 评论(0) 推荐(0)
摘要: ffplay在播放的时候会一直刷新信息 有时候可以看一下 很有用 av_log(NULL, AV_LOG_INFO, "%7.2f %s:%7.3f fd=%4d aq=%5dKB vq=%5dKB sq=%5dB f=%"PRId64"/%"PRId64" \r", get_master_cloc 阅读全文
posted @ 2020-06-02 15:11 弘道者 阅读(870) 评论(0) 推荐(0)
  2020年5月2日
摘要: 经常在Windows下面编辑的脚本文件 到Linux下面执行不了 查看文件会发现这种字符^M其实就是因为换行符的原因 可以用如下命令进行转换 例如脚本文件是demo.sh dos2unix demo.sh 当然如果没有就安装一下 apt-get install dos2unix 阅读全文
posted @ 2020-05-02 20:30 弘道者 阅读(2080) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页