上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页
  2020年12月25日
摘要: 现在Linux虚拟机端执行 #!/bin/bash dd if=/dev/zero of=/empty ls -lh /empty rm -f /empty shutdown -h now 注销会自动关机 关机后再执行 "C:\Program Files\Oracle\VirtualBox\VBox 阅读全文
posted @ 2020-12-25 15:00 弘道者 阅读(223) 评论(0) 推荐(0)
  2020年12月23日
摘要: 国内阿里云和163的都失效了 之前找的file.kangle.odata.cc也失效了,在github上找了一个 做了一个小脚本。 在网上找到一个 记录一下 免得搞忘 #!/bin/bash rm -f yum.zip wget https://files.cnblogs.com/files/yua 阅读全文
posted @ 2020-12-23 10:51 弘道者 阅读(5349) 评论(3) 推荐(1)
  2020年12月18日
摘要: 第一个问题ifconfig只有lo网卡 其实是有其他的网卡的只是没有配置 可以用ifconfig -a来查看 我这里是 enp0s17 第二部配置这个网卡 编辑/etc/netplan/50-cloud-init.yaml 把里面的网卡改成enp0s17 重启虚拟机就OK了 阅读全文
posted @ 2020-12-18 11:40 弘道者 阅读(288) 评论(0) 推荐(0)
  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 弘道者 阅读(769) 评论(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 弘道者 阅读(642) 评论(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 弘道者 阅读(1171) 评论(0) 推荐(0)
  2020年7月19日
摘要: 最近调试机顶盒没有遥控板 发现adb也可以模拟遥控板 应急一下蛮方便的 下面是输入一段文字 adb shell input text "demotest" 下面是输入特定键 adb shell input keyevent keycode 其中keycode是数字,不同的数字代表不同的操作,如下 电 阅读全文
posted @ 2020-07-19 14:42 弘道者 阅读(625) 评论(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 弘道者 阅读(296) 评论(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 弘道者 阅读(195) 评论(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 弘道者 阅读(2347) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页