12 2015 档案

摘要:在RFC2741中这样定义:4.3中有如下段落: Ageneralarchitecturaldivisionoflaborbetweenmasteragentandsubagent: master agent和subagent有这明确的分工: ThemasteragentisMIBignoranta... 阅读全文
posted @ 2015-12-31 13:59 hbg-rohens 阅读(298) 评论(0) 推荐(0) 编辑
摘要:1、统计文件的行数、单词数、字符数 1)行数: wc -l file cat file | wc -l 2)单词数 wc -w file cat file | wc -w 3)统计字符数 wc -c file cat file| wc -c4)不跟任何参数时,三者都打印,打印顺序为行数、单词数、字符... 阅读全文
posted @ 2015-12-30 19:28 hbg-rohens 阅读(213) 评论(0) 推荐(0) 编辑
摘要:1、文件权限1.1 用户有一个称为setuid(S)的特殊权限,它出现在执行权限(x)的位置,setuid权限允许用户以拥有者的权限来执行可执行文件,即使这个可执行文件是由其他用户运行的。具有setuid权限的文件的权限序列如下:-rwS------setuid的使用不是无限制的,为了确保安全,只能... 阅读全文
posted @ 2015-12-28 18:57 hbg-rohens 阅读(1833) 评论(0) 推荐(0) 编辑
摘要:AgentXRoles1、masterAnentityactinginamasteragentroleperformsthefollowingfunctions:-AcceptsAgentXsessionestablishmentrequestsfromsubagents.接受来自于subagent... 阅读全文
posted @ 2015-12-28 11:46 hbg-rohens 阅读(753) 评论(0) 推荐(0) 编辑
摘要:1、在grep中, ^标记着单词的开始, $标记着单词的结束。查看一个单词是否在linux自带的词典中,脚本如下:#bin/sh#文件名:checkword.shword=$1grep "^$1$" /usr/share/dict/american-english -qif [ $? -eq 0 ]... 阅读全文
posted @ 2015-12-21 18:58 hbg-rohens 阅读(196) 评论(0) 推荐(0) 编辑
摘要:#!/bin/sh /etc/rc.common# Copyright (C) 2008-2012 OpenWrt.org#启动顺序START=90#创建PID文件SERVICE_USE_PID=1find_release_info(){ [ -s /etc/openwrt_release ] ... 阅读全文
posted @ 2015-12-19 14:51 hbg-rohens 阅读(2510) 评论(0) 推荐(0) 编辑
摘要:openwrt中启动脚本中经常出现如下一句:SERVICE_USE_PID=1例如lldp启动脚本 lldpd.init中如下:#!/bin/sh /etc/rc.common # Copyright (C) 2008-2012 OpenWrt.orgSTART=90SERVICE_USE_PID=... 阅读全文
posted @ 2015-12-19 14:28 hbg-rohens 阅读(794) 评论(0) 推荐(0) 编辑
摘要:Debian 8 Jessie上安装命令:echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.listecho "deb-src http://ppa.launchpa... 阅读全文
posted @ 2015-12-18 15:49 hbg-rohens 阅读(203) 评论(0) 推荐(0) 编辑
摘要:shell是一个作为用户与linux系统间接口的程序,它允许用户向操作系统输入需要的执行的命令。linux中可以有多个shell。shell的种类:1)ash:贝尔实验室开发的shell,bsh是对ash的符合链接。2)bash:是GNU的Bourne Again Shell,是GNU操作系统的sh... 阅读全文
posted @ 2015-12-17 11:09 hbg-rohens 阅读(171) 评论(0) 推荐(0) 编辑
摘要:打印这个消息后串口无法进行交互procd: - init complete -主要问题是 /etc下inittab脚本中::sysinit:/etc/init.d/rcS S boot::shutdown:/etc/init.d/rcS K shutdown#::askconsole:/bin/as... 阅读全文
posted @ 2015-12-17 10:15 hbg-rohens 阅读(899) 评论(0) 推荐(0) 编辑
摘要:东经正数,西经为负数经度是指通过某地的经线面与本初子午面所成的二面角.在本初子午线以东的经度叫东经,在本初子午线以西的叫西经.东经用“E”表示,西经用“W”表示.北纬为正数,南纬为负数纬度 是指某点与地球球心的连线和地球赤道面所成的线面角,其数值在0至90度之间.位于赤道以北的点的纬度叫北纬,记为N... 阅读全文
posted @ 2015-12-16 09:53 hbg-rohens 阅读(5475) 评论(0) 推荐(0) 编辑
摘要:来源: http://wiki.openwrt.org/doc/techref/preinit_mount#first.boot基本的openwrt启动顺序为: 1、boot loader loads kernel boot loader加载内核2、kernel loads whilst scan... 阅读全文
posted @ 2015-12-15 18:29 hbg-rohens 阅读(1902) 评论(0) 推荐(0) 编辑
摘要:查看操作系统位数命令: getconf LONG_BITroot@hbg:/# getconf LONG_BIT 64查看操作系统信息命令: lsb_release -aroot@hbg:/# lsb_release -aNo LSB modules are available.Distributo... 阅读全文
posted @ 2015-12-15 11:23 hbg-rohens 阅读(247) 评论(0) 推荐(0) 编辑
摘要:make[3]: Entering directory '/home/hbg/test1214/package/feeds/luci/luci'*** Repository layout changed!*** Please change the LuCI url in feeds.conf to ... 阅读全文
posted @ 2015-12-14 14:11 hbg-rohens 阅读(860) 评论(0) 推荐(0) 编辑
摘要:安装方法所在网址: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu在安装jenkins之前,ubutun上需要安装有jdk和jre。建议安装openjdk-7-jre和openjdk-7-jdk版本。安... 阅读全文
posted @ 2015-12-14 11:47 hbg-rohens 阅读(557) 评论(0) 推荐(0) 编辑
摘要:make menuconfig添加luciLuCI--->Collections----- luci添加luci的中文语言包LuCI--->Translations---- luci-i18n-chinese这种方式只能翻译系统自带的一些功能。新增加的功能例如snmp、lldp等相关信息,需要修... 阅读全文
posted @ 2015-12-14 10:02 hbg-rohens 阅读(1859) 评论(0) 推荐(0) 编辑
摘要:解压完别人提供的openwrt代码,编译时,出现如下错误:# configuration written to .config#mips-openwrt-linux-uclibc-gcc: error while loading shared libraries: libstdc++.so.6: c... 阅读全文
posted @ 2015-12-14 09:46 hbg-rohens 阅读(2362) 评论(0) 推荐(0) 编辑
摘要:UCI: UnifiedConfigurationInterface通用配置接口,主要用于集中控制openwrt的配置文件。1、uci使用的配置文件一般放置在设备上的/etc/config目录下,包括一些兼容的应用,譬如snmp,保存在/etc/config/的配置文件是已经被重写后的文件。并且这些... 阅读全文
posted @ 2015-12-11 15:55 hbg-rohens 阅读(1291) 评论(0) 推荐(0) 编辑
摘要:Package/conffiles(optional)由该包安装的配置文件的列表,一行一个文件。BuildPackage宏最重要的一个宏是BuildPackage。它会在 Makefile 的最后一行被引用。它的实现也就是在 package.mk 文件里。如下为其源码:?12345678910111... 阅读全文
posted @ 2015-12-03 15:26 hbg-rohens 阅读(1056) 评论(0) 推荐(0) 编辑
摘要:原因:dns服务器没有了配置信息。 配置dns服务器 ubuntu 的dns服务器信息,放在 /etc/resolv.conf中, 添加dns服务器地址,如192.168.1.1,则在上述文件中加入 nameserver192.168.1.1root@hbg:/etc/network# cd ..r... 阅读全文
posted @ 2015-12-02 13:57 hbg-rohens 阅读(727) 评论(0) 推荐(0) 编辑
摘要:1、查看周围的邻居列表root@hbg:/# lldpcli show neighbors-------------------------------------------------------------------------------LLDP neighbors:-----------... 阅读全文
posted @ 2015-12-02 10:13 hbg-rohens 阅读(4017) 评论(0) 推荐(0) 编辑
摘要:ar71xx / brcm47xx / brcm63xx / ramips是指cpu的系列,ramips是指ralink系列的 阅读全文
posted @ 2015-12-02 09:21 hbg-rohens 阅读(2685) 评论(0) 推荐(0) 编辑
摘要:4、cat命令1)cat -s摆脱多余的空白行 2) cat -T将制表符显示为^I 3) cat -n显示行号4) cat -b跳过空白行,然后显示行号5、find命令 1) find . -print列出当前目录下的所有子目录及其文件和文件夹 find .. -print列出父目录下的所有子目录... 阅读全文
posted @ 2015-12-01 19:02 hbg-rohens 阅读(299) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示