要求:1.创建目录/tmp/scripts2.切换工作目录至此目录中3.复制/etc/pam.d目录至当前目录,并重命名为test4.将当前目录的test及其里面的文件和子目录的属主改为redhat5.将test及其子目录中的文件的其它用户的权限改为没有任何权限#!/bin/bash//程序开始
#File:chmod.sh
#Date:20..
分类:
系统相关 时间:
2016-01-13 13:13:13
阅读次数:
280
publicstaticStringgetStrUnicode(StringinStr){ StringBufferunicode=newStringBuffer(); charc; intbit; Stringtmp=null; for(inti=0;i<inStr.length();i++){ c=inStr.charAt(i); if(c>255){ unicode.append("\\u"); bit=(c>>>8); tmp=Int..
分类:
其他好文 时间:
2016-01-13 11:04:01
阅读次数:
141
在替换OCR的时候,需要先加一个转换磁盘组,才可以顺利改变冗余模式,但是不添加转换磁盘组呢?
先添加一个磁盘组TMP:
[root@rac1 raw]# /u01/app/11.2.0/grid/bin/ocrconfig -add TMP
PROT-30: The Oracle Cluster Registry location to be added is not accessible
[...
分类:
其他好文 时间:
2016-01-12 13:53:04
阅读次数:
160
11gR2数据库启动之后,发现TMP磁盘组未MOUNT:
GROUP_NUMBER NAME STATE TYPE TOTAL_MB FREE_MB USABLE_FILE_MB
------------ ------------------------------ ----------- ------ -------...
分类:
其他好文 时间:
2016-01-12 12:02:32
阅读次数:
217
哈希表的使用Hashtable hashtable = new Hashtable();hashtable.ContainsValue(tmp);//判断哈希表中有没有tmphashtable.add(tmp,tmp);//加入哈希表DataSet的使用SqlDataAdapter sda = ne...
1.前往沙盒目录:在Finder上点->前往->前往文件夹,输入/Users/username/Library/Application Support/iPhone Simulator/ 前往2.沙盒结构:每个沙盒含有3个文件夹:Documents, Library 和 tmp。Documents:...
分类:
移动开发 时间:
2016-01-11 13:54:38
阅读次数:
163
[root@localhost ~]# df -h 查看是否空间不足在查看mysql数据目录情况mysql> show variables like '%dir%';+-----------------------------------------+------------------------...
分类:
数据库 时间:
2016-01-11 12:09:46
阅读次数:
223
在使用gcc make时报错:Fatal error error writing to tmp No space left on devicefiniteVolume/ddtSchemes/EulerDdtScheme/EulerDdtSchemes.C:40: fatal error: error...
分类:
其他好文 时间:
2016-01-09 13:54:23
阅读次数:
489
Int64id=0;inttmp=(int)readInt();---------》Int64tmp=(Int64)readInt();id=id+tmp*256*256*256*256;--->如果tmp是int类型,那么tmp*256*256*256*256==0-->必须改为Int64tmp,这样才能正确计算出非0的实际值Debug.Log("Entityid"+id);
分类:
其他好文 时间:
2016-01-08 00:38:29
阅读次数:
146
roleInfo存储的是网络的map数据,key值roleID长度居然是7,而本地定义的key2="roleID"长度是6,导致tmp[key2]总是取不到值。最后通过string.Compare通过指定长度比对,再通过tmp[key]取值才解决问题。对应为什么key值roleID长度是7,暂时未找到原因。