摘要: 很多情况下,我们希望限制ftp用户只能在其主目录下(root dir)下活动,不允许他们跳出主目录之外浏览服务器上的其他目录,这时候我就需要使用到chroot_local_user,chroot_list_enable,chroot_list_file这三个选项了。以下是对三个配置项的解释: 本文原 阅读全文
posted @ 2016-06-17 18:15 日月玉朱猪 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 特殊变量 变量 含义 $0 当前脚本的文件名 $# 传递给脚本或函数的参数个数。 $* 传递给脚本或函数的所有参数。 $? 上个命令的退出状态,或函数的返回值。 $$ 当前Shell进程ID。对于 Shell 脚本,就是这些脚本所在的进程ID。 $@ 传递给脚本或函数的所有参数。被双引号(" ")包 阅读全文
posted @ 2016-06-17 17:58 日月玉朱猪 阅读(191) 评论(0) 推荐(0) 编辑
摘要: sed 's/pattern/replace_string/' file sed.txt中对每行的第一个lifeng用lf替换 sed 's/lifeng/lf/' sed.txt (源文件内容不会变的) 要替换所有内容,命令尾部加参数g sed 's/lifeng/lf/g' sed.txt 要从 阅读全文
posted @ 2016-06-17 17:55 日月玉朱猪 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 查看服务 service --status-all service iptables status service iptables start service iptables stop 软链接 ln -s a b a是源文件 b是链接名 一些文件操作 scp /usr/1.txt root@17 阅读全文
posted @ 2016-06-17 17:53 日月玉朱猪 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Hive 命令行常用命令 加载数据 load data local inpath '/home/IVR_CSR_MENU_MAP.txt' into table ivr_csr_menu_map; 分区的: load data local inpath '/home/lftest/lf1.txt' 阅读全文
posted @ 2016-06-17 17:40 日月玉朱猪 阅读(2171) 评论(0) 推荐(0) 编辑
摘要: Hbase Shell 常用命令 1.hbase shell 进入hbase 2.list 查看表 3.创建一个表member(f1为列族) create 'member', 'f1' 4.查看表描述 describe 'member' 5.scan浏览表中数据 scan 'member' 6.删除 阅读全文
posted @ 2016-06-17 17:32 日月玉朱猪 阅读(247) 评论(0) 推荐(0) 编辑