在5.6版本服务器做备份 /usr/local/mysql/bin/mysqldump -S /tmp/mysql3306.sock -A -p --set-gtid-purged=OFF > backup_20160204.sql 在5.7版本服务器操作 mkdir -p /neworiental ...
分类:
数据库 时间:
2016-07-14 02:28:41
阅读次数:
301
String类String类的常用构造方法
String s1 = new String();
String s2 = new String(“hello”);
String s3 = new String(char tmp[]);
String s4 = new String(char[] value,int offset,int count) 除了以上方法构造String对象之外,Java编译...
分类:
编程语言 时间:
2016-07-13 17:39:37
阅读次数:
151
功能:如题代码:#!/bin/sh
recursive()
{
forfilein$1
do
subfile=`ls$2$3/$file`
forsubsubfilein$subfile
do
#echo$subsubfile
if["$subsubfile"=="$2$3/$file"]
then
rm-rf$3/$file
mv$subsubfile$3/$file
else
recursive`ls$2$3/$file`$2$3/$file;
fi
done
done
}
cd/tmp
..
分类:
系统相关 时间:
2016-07-13 12:09:49
阅读次数:
162
RHEL5—RHEL6下都可以提权 本人测试环境CenOS6.5:该方法只能用作与有root用户切换到普通用户的环境,如果是普通用户直接登录在执行最后一步的时候直接退出登录 $ mkdir /tmp/exploit $ ln /bin/ping /tmp/exploit/target $ exec ...
分类:
系统相关 时间:
2016-07-13 11:40:28
阅读次数:
729
本文介绍了如何配置php.ini实现PHP文件上传功能。其中涉及到php.ini配置文件中的upload_tmp_dir、upload_max_filesize、post_max_size等选项,这些选项是文件上传成败的关键。我们以php.5.3.5的Windows版本为例说明。 php.ini中文 ...
分类:
Web程序 时间:
2016-07-13 01:14:28
阅读次数:
211
\cp -rf source1 source2 source3 .... directory cp (复制档案或目录) 参数: 最后需要注意的,如果来源档有两个以上,则最后一个目的文件一定要是『目录』才行! 范例: 范例一:将家目录下的 .bashrc 复制到 /tmp 下,并更名为 bashrc ...
分类:
系统相关 时间:
2016-07-13 01:01:31
阅读次数:
253
题目比较简单,首先给定两个数组,进行直接交换。
intmain()
{
intarr1[5]={1,2,3,4,5};
intarr2[5]={5,4,3,2,1};
intlen=sizeof(arr1)/sizeof(arr1[0]);
for(inti=0;i<len;i++)
{
inttmp=arr1[i];
arr1[i]=arr2[i];
arr2[i]=tmp;
}
for(inti=0;i<len;i++)
..
分类:
编程语言 时间:
2016-07-12 23:35:01
阅读次数:
238
二、编译安装 编译非常简单,可参考 README 文档,简单步骤如下: cd/tmp/sysbench-0.4.12-1.1./autogen.sh./configure --with-mysql-includes=/usr/local/mysql/include--with-mysql-libs= ...
分类:
其他好文 时间:
2016-07-12 23:05:16
阅读次数:
327
备份指定库mongodump-hip-ddbname-odir//-h后面跟服务器ip-d后面跟database名字不加则备份所有库-o后指定备份到哪里它是一个目录备份所有库mongodump-hip-odir备份指定集合mongodump-dmydb-ctestc-o/tmp/testc//-c指定集合名字导出集合为json文件mongoexport-dmydb-ctestc-o/tm..
分类:
数据库 时间:
2016-07-12 19:45:27
阅读次数:
234
1)使用ant进行jar的打包<native2asciisrc="${project.root}"dest="${prop.tmp}"includes="build.properties"/><propertyfile="${prop.tmp}/build.properties"/><!--Java编译CLASSPATH--><pathid="master-classpath"><filesetdir="${build.lib.dir}"..
分类:
其他好文 时间:
2016-07-11 19:27:18
阅读次数:
279