linux
文章平均质量分 77
blackproof
这个作者很懒,什么都没留下…
展开
-
Linux learning 安装yun,maven,无线网卡驱动,休眠设置
nstall yum-----------------------------添加yum163源: 1 进入到/etc/yum.repos.d/目录中去 cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS5-Base-163.repo 2 然后备份系统原来的yum源,并且把163源改为现在使用的源。 mv /etc/yum.repos.d/CentOS-Base原创 2014-06-01 00:57:13 · 199 阅读 · 0 评论 -
Linux yum no package available
163.combaseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=osgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5#rel原创 2014-06-08 11:57:34 · 1242 阅读 · 0 评论 -
linux 学习 安装软件 flash,显卡驱动,rar
原创 2014-06-15 14:21:26 · 317 阅读 · 0 评论 -
linux命令
后十行,输入:tail notes2.要指定从 notes 文件末尾开始读取的行数,输入:tail -n 20 notes3.要从第 200 字节开始,每次显示一页 notes 文件,输入:tail -c +200 notes | pg4.要跟踪文件的增长,输入:tail -f accounts这显示 accounts 文件的最后十行。tail 命令继续显示添加到 accounts 文件中的行。显示会一直继续,直到您按下 Ctrl-C 按键顺序来停止。 三原创 2014-08-19 11:54:01 · 74 阅读 · 0 评论 -
crontab教程
原创 2014-10-11 09:50:06 · 92 阅读 · 0 评论 -
shell脚本传参
原创 2014-10-28 20:23:51 · 92 阅读 · 0 评论 -
linux内核笔记一
2这是建立软连接,是在p2上创建一个文件,存储的是p1的值(所以可以指向目录,或是空任何地址) linux线程同步方法1.同步-原子锁2.临界区3.非抢占式内核(传统unix)4.禁止中断(不建议)5.信号量(每个数据结构一个信号量[一个整数,一个等待进程链表,两个原子方法down up]当int>=0,允许链表中进程运行,并调用down;当int<0,不允许进程访问;进程可以调用up方法)6.自旋锁,跟信号量类似,但是避免了进程原创 2014-11-14 19:24:44 · 80 阅读 · 0 评论 -
rz失败问题
s and effective error detection. ZModem is very user friendly, allowing either the sending or receiving party to initiate a file transfer. ZModem supports multiple file (”batch”) transfers, and allows the use of wildcards when specifying filenames. ZModem原创 2014-11-20 15:06:06 · 685 阅读 · 0 评论 -
hadoop hive hbase shell小贴
port.log 2>&1 & hadoop distcp hftp://nn.xxx.xx.com:50070/user/nlp/warehouse/t_m_user_key_action /user/nlp/warehouse/dw1 hadoop hive 分区建立alter table xxxx drop partition (logday='20150909',hour='12'); ALTER TABLE xxx原创 2015-02-27 11:40:24 · 236 阅读 · 0 评论 -
linux chown和chmod
录(包含其下文件)的持有者改为hadoop chmod改变用户组对应的权限例如chmod -R 755 bin 将目录(包括其下文件)的权限改为755分别表示User、Group、及Other的权限。r=4,w=2,x=1user为读写执行,group为读执行,other为读执行(用ls -l 则显示rwxr-rx-r)---------------------------------------------------------------------------------原创 2013-01-14 16:52:36 · 110 阅读 · 0 评论 -
linux learning 入门,hadoop搭建
ode bin/hdfs namenode -format sbin/hadoop-daemon.sh start namenode bin/hdfs namenode -bootstrapStandby sbin/hadoop-daemon.sh start namenode 如果没有active standy,则zkfc又问题,可以手动hdfs haadmin -transitionToActive hadoop100 主namenode(tole原创 2013-01-29 17:46:40 · 81 阅读 · 0 评论 -
linux learning1
est?.c | wc -l 以testX.c的文件有几个ps命令是显示进程 ps -e // pe -ef 加入&为后台运行命令//-------------------------------shell 编程--------------------vi test.c点击i或a进入编辑模式如#!bashdateps -ecd /按下exc计入命令模式:进入底行模式 w wq 存盘 退出sh test.c 运行shell文件原创 2012-03-24 21:33:33 · 95 阅读 · 0 评论 -
linux learning 入门,hadoop搭建
hadoop hdfs ha搭建 一台机子 bin/hdfs zkfc -formatZK 每台namenode sbin/hadoop-daemon.sh start zkfc 每台journalnode sbin/hadoop-daemon.sh start journalnode 每台namenode bin/hdfs namenode...原创 2013-01-29 17:46:40 · 107 阅读 · 0 评论 -
shell脚本传参
喜欢用第二种方法shell传函数方法法一: 使用全局变量 [html] view plaincopy g_result="" function testFunc() { g_result='local value' } testFunc echo $g_result 方法二: 把...原创 2014-10-28 20:23:51 · 71 阅读 · 0 评论 -
linux内核笔记一
linux内核笔记 linux 硬连接 软连接ln p1 p2普通的连接是硬连接,实在目录树上新增一个节点,指向连接节点(无法指向目录,或是有环)ln -s p1 p2这是建立软连接,是在p2上创建一个文件,存储的是p1的值(所以可以指向目录,或是空任何地址) linux线程同步方法1.同步-原子锁2.临界区3.非抢占式内核(传统unix)...原创 2014-11-14 19:24:44 · 80 阅读 · 0 评论 -
diff和patch
svn修改的patch文件svn diff MergeRegionInputFormat.java > testpath给MergeRegionInputFormat打patch文件,升级为最新patch版svn patch MergeRegionInputFormat < testpath原创 2015-03-09 17:33:17 · 78 阅读 · 0 评论