logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

NET-SNMP 中snmp做agent的一些笔记

最近做snmp,用的就是net-snmp。 做个记录以备后用。当然记录的有点乱。 1. snmp_agent.c snmpd收到包后,会调用handle_snmp_packet()             |             |netsnmp_handle_request()  2. snmpd.c  * Infinite while-loo

通过http代理,下载git协议的repo

http://www.vpsee.com/2011/07/how-to-use-git-through-a-http-proxy/主要参考了这个帖子。1. 如果是http或者https协议的,那比较简单export http_proxy="http://proxy_ip_address:port"export https_proxy="http://proxy_ip_

#git
matchit.vim 和 filetype

matchit.vim插件扩展了%匹配字符的范围,并且根据不同的filetype来做不同的匹配。要使用很简单。To get the latest version:1. Download matchit.zip.2. Extract matchit.zip to ~/.vim (on Unix/Linux) or ~/vimfiles (on Windows).3. Run :helptags ~/

#windows#vim#unix +1
vmlinux是如何炼成的--kernel makefile

引子kernel的makefile包含的内容还真是多,我就是想看看要是我自己添加一个目录编译到内核里,要怎么做。就是这么个不起眼的实验,引发了一堆的故事。最简单的例子添加 一个目录,叫test, 添加了test.c 和 Makefile。文件内容很简单,如下。cat Makefile## Makefile for the linux

#linux
linux perf使用经验之一二

linu perf使用经验之一二perf是一个非常强大的工具,之前听说但一直没有怎么用过。现在记录下来以便事后查找。编译除了从包管理器中安装,还可以从源代码里直接编译。非常简单,clone好内核源代码. cd linux/tools/perfmake怎么样, so easy吧。开跑哥是个急性子,别的先不想管,先看看这个东西能跑成什么样子。估计各位看官也是差不多,那咱就先跑几个来先看看。看看程序总体

device mapper的使用

http://www.ibm.com/developerworks/cn/linux/l-devmapper/index.html这个页面讲了点原理,可以看一下。dmsetup命令显示当前的device mapper的信息dmsetup lsdmsetup infodmsetup status显示设备的依赖关系dmsetup depssda

使用jenkins做自动测试

下载 jenkins.warhttps://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins使用tomcathttps://wiki.jenkins-ci.org/display/JENKINS/Tomcat貌似有时候需要设置一下 JENKINS_HOME 这个环境变量好了接下来启动 tomcat将jenk

#测试#git#tomcat
Virtual address space for Linux process

  Program code and data. Code begins at the same fixed address, followed by data locations thatcorrespond to global C variables. The code and data areas are initialized directly from the

#linux
软Raid5阵列LVM逻辑 数据恢复和阵列扩容 别人的blog

http://blog.zol.com.cn/1164/article_1163428.htmlhttp://blog.zol.com.cn/1164/article_1163486.html软RAID是建立在磁盘分区上的,因此在创建RAID阵列前先要给磁盘分区,且分区类型是Linux的软RAID分区。建立分区#fdisk /dev/sdb命

#linux#虚拟机
到底了