上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 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) 编辑
摘要: 主机: CentOS,已能VPN联网 虚拟机: CentOS 方法:虚拟机网络连接方式设置为NAT即可。 阅读全文
posted @ 2017-02-14 07:43 tanghuimin0713 阅读(73) 评论(0) 推荐(0) 编辑
摘要: yum install wireshark-gnome yum install libpcap 阅读全文
posted @ 2017-02-10 08:06 tanghuimin0713 阅读(1996) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 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 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 上述代码编译运行皆没有问题,但是用valgrind检测会提示错误: Why? 此代码可以实现功能要求,但是健壮性并不好,假设在map.erase之后再次使用map当前的iterator,即 代码运行就会出现错误,因为it目前指向的对象已经被删掉了。 为了避免程序出现这样的错误,我们应该保证在iter 阅读全文
posted @ 2016-07-07 21:26 tanghuimin0713 阅读(5404) 评论(0) 推荐(0) 编辑
摘要: 参考: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 阅读(4075) 评论(1) 推荐(0) 编辑
摘要: 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 阅读(427) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页