会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
弘道者
天道酬勤
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
23
下一页
2020年12月26日
_ZNK10libtorrent5entry4dictB5cxx11Ev错误
摘要: 是这样的编译完libtorrent就手动编译make_torrent.cpp 结果报错 g++ -o test make_torrent.cpp -ltorrent-rasterbar -lboost_system -lpthread 报错如下: /tmp/ccwZnN4Y.o: In functi
阅读全文
posted @ 2020-12-26 11:58 弘道者
阅读(295)
评论(0)
推荐(0)
编辑
2020年12月25日
virtualbox虚拟机压缩
摘要: 现在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 弘道者
阅读(194)
评论(0)
推荐(0)
编辑
2020年12月23日
centos6新的yum源
摘要: 国内阿里云和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 弘道者
阅读(5301)
评论(3)
推荐(1)
编辑
2020年12月18日
ubuntu配置网络
摘要: 第一个问题ifconfig只有lo网卡 其实是有其他的网卡的只是没有配置 可以用ifconfig -a来查看 我这里是 enp0s17 第二部配置这个网卡 编辑/etc/netplan/50-cloud-init.yaml 把里面的网卡改成enp0s17 重启虚拟机就OK了
阅读全文
posted @ 2020-12-18 11:40 弘道者
阅读(247)
评论(0)
推荐(0)
编辑
2020年12月17日
centos7手动安装cmake3的二进制文件
摘要: 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 弘道者
阅读(673)
评论(0)
推荐(0)
编辑
2020年9月19日
bash脚本打印字符串一个空格的内容
摘要: 打印字符串里面第一个空格前的内容 ps -ef|awk '{print $1}' 这里用ps来做源字符串 其中$1表示第一列,$1表示第二列分割内容 要实现倒数也很简单 比如打印倒数第一列 ps -ef|awk '{print $NF}' 倒数第二行 ps -ef|awk '{print $(NF-
阅读全文
posted @ 2020-09-19 19:39 弘道者
阅读(619)
评论(0)
推荐(0)
编辑
2020年9月9日
gethostbyname的线程安全
摘要: 最近线上遇到一个问题 导致程序崩溃 最后查到是gethostbyname的问题 把代码精简了 如下: bool test(char* host,int port) { hostent *m_phostent=gethostbyname(host); if(m_phostent==NULL)retur
阅读全文
posted @ 2020-09-09 18:04 弘道者
阅读(1075)
评论(0)
推荐(0)
编辑
2020年7月19日
使用adb代替遥控板
摘要: 最近调试机顶盒没有遥控板 发现adb也可以模拟遥控板 应急一下蛮方便的 下面是输入一段文字 adb shell input text "demotest" 下面是输入特定键 adb shell input keyevent keycode 其中keycode是数字,不同的数字代表不同的操作,如下 电
阅读全文
posted @ 2020-07-19 14:42 弘道者
阅读(496)
评论(0)
推荐(0)
编辑
2020年7月9日
编译iftop
摘要: 编译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 弘道者
阅读(263)
评论(0)
推荐(0)
编辑
2020年7月1日
Too many open files
摘要: nginx出现错误Too many open files 可以通过命令查看系统打开文件数的限制 血的教训 编辑/etc/security/limits.conf在末尾添加如下内容 root soft nofile 1000000 root hard nofile 1000000 添加完效果如下 上面
阅读全文
posted @ 2020-07-01 20:34 弘道者
阅读(171)
评论(0)
推荐(0)
编辑
上一页
1
···
5
6
7
8
9
10
11
12
13
···
23
下一页