`
maypol
  • 浏览: 27984 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
<taskdef resource="net/sf/antcontrib/antlib.xml"/> <target name="upload_single"> <propertycopy name="svn.code.path" from="${module}.${version}" /> <ant inheritAll="false" antfile="./deploy_func.xml" target="main ...

ssh public key

cd /root/.ssh ssh-keygen -t rsa 回车三次 cp id_rsa.pub authorized_keys 把id_rsa和id_rsa.pub 传输到windows sercuteCRT 添加ssh终端,选择id_rsa即可实现无密码登陆
set USER=username set PASSWD=passwd set LOCAL_PATH=%CD% rem ***delete*** rd /q /s %LOCAL_PATH%\onetrack svn checkout --username %USER% --password %PASSWD% --no-auth-cache --force "http://*****path" %LOCAL_PATH%\onetrack
修改链接数 show parameter processes alter system set processes=2000 scope=spfile; 查看连接个数 select count(*) from v$session where status='ACTIVE'; Too many open files in system echo "9234560">/proc/sys/fs/file-max linux Too many open files in system 查看各个进程打开的文件数据量 # lsof -n |awk '{print $2 ...

awk 函数写法

tid=1235 filename=ab.txt awk -F '#'  -v rea_id=${tenantid} -v real_filename=${filename}  '{                printf("insert into ab (a1, a2, d3, e4, f5, g6) values (")>>real_filename;     #1-2     printf("%d,%d,",$1,$2)>> real_filename;     #3,date     tmpdate3_1=subst ...
linux Too many open files in system 查看最大可以打开的文件数量 [root@CCN-BJ-3-578 fs]# cat /proc/sys/fs/file-max 65536 查看各个进程打开的文件数据量 [root@CCN-BJ-3-578 home]# lsof -n |awk '{print $2 " " $3}'|sort|uniq -c |sort -nr|more 查看和修改最大值 ulimit -a ulimit -n 2048

ant zip打包

    博客分类:
  • ant
   <zip destfile="${artifacts}/${version}_SRC.zip">             <fileset dir="${basedir}">                 <exclude name="build/" />                 <exclude name="project/package/" />                 <exclude name="project/targe ...

ant cpoy语句

    博客分类:
  • ant
<copy todir="${app.upgrade}/pkg/" failonerror="false">                <fileset dir="${artifacts}">                   <include name="${run.basename}*.tar.gz" />                </fileset> </copy>           <exec dir="${ ...
<target name="parallel" depends="clean, update" description="并行执行打包任务"> <parallel failonany="true">   <antcall target='a.package' />   <antcall target='b.db.package' />   <antcall target='source' /> </parallel> &l ...

linux常用命令5

1.gunzip解压时,报File too large 解决方法: 打开/etc/security/limits文件,修改相应的文件大小约束值: default:         fsize = -1         core = 4194304         cpu = -1        data = 4194304         rss = 4194304         stack = 2097152         nofiles = -1 2.安装oracle时,ORA-21561: OID generation failed 解决方法:/etc/hosts加上主机名称 host ...
java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:216) -》 位置:使用DES加密(aaa.java)。 原因:IBM JDK JCE默认策略是Restricted,而我们用的是Unrestricted,需要下载专门的Unrestricted包。http://www.ibm.com/developerworks/java/jdk/security/50/ 解决:已下载Unrestricted.jar,覆盖jre/lib/security下面的local_ ...
<target name="upload" description="上传remote目录的内容到服务器上" >         <!--登录到服务器,创建远程工作目录 -->         <telnet server="${host}" userid="${username}" password="${password}" timeout="600">             <read>${host.prompt}< ...

删除其他用户

#!/usr/bin/sh while [ 1 ] do   ps_types="`who -R|grep -v '10.71.175.39'|grep -v grep|awk '{print $2}'`"   #echo ${ps_types}   for ps_t in "${ps_types}"   do     ps -u $LOGNAME|grep csh|grep -v grep|awk -v ps_t="${ps_t}" 'BEGIN{split(ps_t,psarray," ")}{ for (i ...
rem =telnet= @del %TFILE% @echo on error resume next >>%TFILE% @echo dim WshShell>>%TFILE% @echo Set WshShell = WScript.CreateObject("WScript.Shell")>>%TFILE% @echo WshShell.run"cmd">>%TFILE% @echo WshShell.AppActivate"c:\windows\system32\cmd.exe" ...

常用bat命令

    博客分类:
  • bat
set COPY_JAR_DEST_DIR=D:\workspace del /F/Q %COPY_JAR_DEST_DIR%\*.jar cd /d %GV_DIR%\bus_gv_idl\install call %JIBX_PATH%\ant.bat -f build.xml taskname for /d %%i in (%GV_DIR%\*) do ( if not "%%~ni"=="bus_gv_test" jar -cf %COPY_JAR_DEST_DIR%\%%~ni.jar -C %%i\%TARGET_CLASS_PATH% . ...
Global site tag (gtag.js) - Google Analytics