会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tanghuimin0713
心若自由,身沐长风
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
12
下一页
2017年2月15日
创建vpn连接时自动修改路由
摘要: vim /etc/ppp/ip-up.local #!/bin/sh/sbin/ip route replace default dev ppp0 chmod 755 /etc/ppp/ip-up.local
阅读全文
posted @ 2017-02-15 07:41 tanghuimin0713
阅读(34)
评论(0)
推荐(0)
2017年2月14日
CentOS虚拟机使用VPN联网
摘要: 主机: CentOS,已能VPN联网 虚拟机: CentOS 方法:虚拟机网络连接方式设置为NAT即可。
阅读全文
posted @ 2017-02-14 07:43 tanghuimin0713
阅读(73)
评论(0)
推荐(0)
2017年2月10日
CentOS安装wireshark
摘要: yum install wireshark-gnome yum install libpcap
阅读全文
posted @ 2017-02-10 08:06 tanghuimin0713
阅读(2011)
评论(0)
推荐(0)
2017年2月9日
CentOS 6配置PPTP VPN客户端
摘要: 1. yum install ppp pptp pptp-setup 2. pptpsetup --create greenVPN --server xxx --username xxx --password xxx --encrypt 3. pppd call greenVPN 4. ip rou
阅读全文
posted @ 2017-02-09 21:39 tanghuimin0713
阅读(54)
评论(0)
推荐(0)
2016年10月24日
cscope usage
摘要: 1) Reference: Linux 平台下阅读源码的工具链 程序员的利器 – cscope 2) cscope help: :help cscope :help cscope-suggestions :cs help 3) Generate index files: find fullpath/
阅读全文
posted @ 2016-10-24 12:35 tanghuimin0713
阅读(405)
评论(0)
推荐(0)
2016年9月22日
添加自启动脚本
摘要: step1: 将对系统的自定义配置写入文件/home/thm/shell_script/myConfig step2: 切换到root用户,echo /home/thm/shell_script/myConfig >> /etc/rc.local done!
阅读全文
posted @ 2016-09-22 21:41 tanghuimin0713
阅读(149)
评论(0)
推荐(0)
2016年8月2日
SO_REUSEADDR & SO_REUSEPORT
摘要: Wonderful explaination about SO_REUSEADDR and SO_REUSEPORT. http://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-h
阅读全文
posted @ 2016-08-02 17:56 tanghuimin0713
阅读(182)
评论(0)
推荐(0)
2016年7月7日
for循环中删除map中的元素,valgrind检测提示error:Invalid read of size 8
摘要: 上述代码编译运行皆没有问题,但是用valgrind检测会提示错误: Why? 此代码可以实现功能要求,但是健壮性并不好,假设在map.erase之后再次使用map当前的iterator,即 代码运行就会出现错误,因为it目前指向的对象已经被删掉了。 为了避免程序出现这样的错误,我们应该保证在iter
阅读全文
posted @ 2016-07-07 21:26 tanghuimin0713
阅读(5506)
评论(0)
推荐(0)
2015年6月7日
国内外开源镜像服务器站点汇总
摘要: 参考:http://blog.csdn.net/longerzone/article/details/8437871http://www.douban.com/note/375227086/1、Linux官方镜像kernel镜像站:http://mirrors.kernel.org/Fedora官方...
阅读全文
posted @ 2015-06-07 21:01 tanghuimin0713
阅读(4387)
评论(1)
推荐(0)
2015年6月5日
kvm初体验之九:vm创建快照
摘要: 1. 准备一个磁盘格式为qcow2的vm(raw格式的磁盘无法创建快照)方法一:从头安装一个磁盘格式为qcow2的vm [root@tanghuimin vm]# qemu-img create -f qcow2 -o preallocation=metadata /vm/vm2.qcow2 2G ...
阅读全文
posted @ 2015-06-05 07:59 tanghuimin0713
阅读(460)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
12
下一页
公告