摘要:
今天要归档日志时发现要排除当日的日志不能归档,gz -9 $filename 但发现没有--exclude 选项,故选择使用判断语句进行排除特定文件名。但使用if ..then ..fi 判断字符串是否相等时报错:syntax error near unexpected token `then'原因...
阅读全文
posted @ 2015-01-15 17:03
一天不进步,就是退步
阅读(354)
推荐(0)
摘要:
spring beans下面有如下源文件包: org.springframework.beans, 包含了操作java bean的接口和类。org.springframework.beans.annotation, 支持包,提供对java 5注解处理bean样式的支持。org.springframe
阅读全文
posted @ 2015-01-15 11:51
一天不进步,就是退步
阅读(47487)
推荐(10)
摘要:
Linux/Unix1. Find the Java/Tomcat process id.% ps ax | grep javaYou should see output like this17207 ? Sl 78:36 /usr/java/default/bin/java -Djava.util...
阅读全文
posted @ 2015-01-14 16:12
一天不进步,就是退步
阅读(797)
推荐(0)
摘要:
如果想在脚本里只获取PID,那么可以用如下脚本。目前收集两种方法:方法一$ps x|grep xxx |awk '{print $1}'e.g. ps x|grep java|awk '{print $1}'注释: 1、xxx为执行的命令名称 2、举个例子,获取当前用户下的java进程 【pid】...
阅读全文
posted @ 2015-01-14 15:59
一天不进步,就是退步
阅读(21583)
推荐(0)
摘要:
运行脚本时出现了这样一个错误,打开之后并没有找到所谓的^M,查了之后才知道原来是文件格式的问题,也就是linux和windows之间的不完全兼容。。。具体细节不管,如果验证:vim test.sh:set ff?如果出现fileforma=dos那么就基本可以确定是这个问题了。:set filefo...
阅读全文
posted @ 2015-01-14 15:55
一天不进步,就是退步
阅读(229)
推荐(0)
摘要:
1. 查询当前机器运行的进程总数:ps -ef | wc -lps -ef | grep httpd | wc -l2. ulimit命令表 1. ulimit 参数说明选项 [options]含义例子-H设置硬资源限制,一旦设置不能增加。ulimit – Hs 64;限制硬资源,线程栈大小为 6...
阅读全文
posted @ 2015-01-12 21:51
一天不进步,就是退步
阅读(325)
推荐(0)
摘要:
reference from:http://www.codejava.net/frameworks/spring/sending-e-mail-with-spring-mvcTable of contents:1.Spring framework’s support for e-mail2.Requ...
阅读全文
posted @ 2015-01-12 16:01
一天不进步,就是退步
阅读(827)
推荐(0)
摘要:
官方地址:http://spring.io/blog/2014/12/23/spring-xd-1-1-m2-and-1-0-3-releasedOn behalf of the Spring XD team, I am very pleased to announce the second mil...
阅读全文
posted @ 2015-01-10 22:58
一天不进步,就是退步
阅读(382)
推荐(0)
摘要:
1. Add Partition ToolPartitions act as unit of parallelism. Messages of a single topic are distributed to multiple partitions that can be stored and s...
阅读全文
posted @ 2015-01-10 22:56
一天不进步,就是退步
阅读(440)
推荐(0)
摘要:
In this post, we want to talk about JDBC Transactions and how we can manage the operations in a database.The most popular DBMS like MySQL and Oracle h...
阅读全文
posted @ 2015-01-10 22:55
一天不进步,就是退步
阅读(426)
推荐(0)