warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777解决方法:sudo chmod 775 /usr/localtips:775 => root(7) group(7) others(5), 7 => rea...
分类:
其他好文 时间:
2014-09-17 11:54:12
阅读次数:
248
正则表达式定义 正则表达式(regular expression)描述了一种字符串匹配的模式,可以用来检查一个串是否含有某种子串、将匹配的子串做替换或者从某个串中取出符合某个条件的子串等。 列目录时, dir *.txt或ls *.txt中的*.txt就不是一个正则表达式,因为这里*与正则式...
分类:
其他好文 时间:
2014-09-17 11:40:02
阅读次数:
256
[root@jbossshell]#catzabbix.sh#!/bin/bashset-xHOST=`hostname`DIR=/rootserviceiptablesstopAZ(){groupaddzabbixuseraddzabbix-gzabbix-s/sbin/nologintar-zxvf$DIR/zabbix-1.8.5.tar.gzcdzabbix-1.8.5./configure--prefix=/usr/local/zabbix--enable-agentmakemakeinstallm..
分类:
其他好文 时间:
2014-09-16 16:05:31
阅读次数:
176
一、基本使用安装:下载二进制包后可直接解压使用从源码安装则执行命令:./bootstrap; make; make install——尝试执行bootstrap失败使用:cmake dir_path,生成工程文件或makefile文件二、概念out-of-sourcebuild,与in-source...
分类:
其他好文 时间:
2014-09-16 10:42:20
阅读次数:
222
??
1 opendir所需的头文件
#include
#include
2函数声明
DIR *opendir(const char *name);
DIR *fdopendir(int fd);
通过opendir来打开一个文件夹
3readdir依赖的头文件
#include
4函数声明
struct dirent *readd...
系统日志文件 1、建议修改Hadoop系统日志文件默认设置,使之独立于Hadoop的安装目录 默认情况下,Hadoop生成的系统日志文件存放在$HADOOP_INSTALL/logs目录之中,也可以通过hadoop-env.sh文件中的HADOOP_LOG_DIR来...
分类:
其他好文 时间:
2014-09-15 22:59:50
阅读次数:
353
(一) 导出scott用户下的emp表到xx用户下1.1 创建DIRECTORY,用sys用户创建create directory DATA_PUMP_DIR as 'D:\dir_dp';1.2 在该目录上对scott用户授读写权限Grant read,write on directory DAT...
分类:
其他好文 时间:
2014-09-15 19:08:49
阅读次数:
284
html, address,blockquote,body, dd, div,dl, dt, fieldset, form,frame, frameset,h1, h2, h3, h4,h5, h6, noframes,ol, p, ul, center,dir, hr, menu, pre {.....
分类:
Web程序 时间:
2014-09-15 19:06:59
阅读次数:
263
制作ssh rpm 包升级后,ssh无法登录系统,报错如下: PAM?unable?to?dlopen(/lib64/security/pam_stack.so):?/lib64/security/pam_stack.so:?cannot?open?shared?object?file:?No?such?file?or?dir...
分类:
其他好文 时间:
2014-09-15 18:01:09
阅读次数:
705
开学没什么事情,抽出了一点时间学了一下python的最基本的东西,版本是python 2.7.8 通过内置变量__name__可以知道自己现在是处于执行状态还是作为一个模块引入的。 使用help()函数可以查看模块的帮助文档,python会根据注释自动生成帮助文档 使用dir(__builtins_...
分类:
编程语言 时间:
2014-09-15 17:37:09
阅读次数:
184