近来做项目,需要jboss定期重新启动。不想再看到jboss启动那个黑洞洞的窗口,就想着把它注册为服务,然后在net start。恰好objectweb上有个open source的javaservice,能够实现将jboss,tomcat注册为服务的功能,呵呵,得来全不费功夫,以下是配置步骤。有需...
分类:
编程语言 时间:
2014-07-16 23:26:05
阅读次数:
285
1,设置A机时间服务器: a,修改 /etc/ntp.conf,如下: # Undisciplined Local Clock. This is a fake driver intended for backup# and when no outside source of synchroniz.....
分类:
系统相关 时间:
2014-07-10 12:15:56
阅读次数:
253
IntersectRect 两矩形相交形成的新矩形The IntersectRect function calculates the intersection of two source rectangles and places the coordinates of the intersecti....
分类:
其他好文 时间:
2014-07-10 10:33:52
阅读次数:
272
// 产生连接字符串 string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=student.xls;" + "Extended Properties=...
分类:
其他好文 时间:
2014-07-07 23:50:13
阅读次数:
228
source命令用法:source FileName作用:在当前bash环境下读取并执行FileName中的命令。注:该命令通常用命令“.”来替代。如:source .bash_rc 与 . .bash_rc 是等效的。source命令(从 C Shell 而来)是bash shell的内置命令。点...
分类:
系统相关 时间:
2014-07-07 22:15:15
阅读次数:
293
iOS下做和UIImage相关功能有段时间,这里总结列下相关经验。1. 基本框架image IO image IO可以通过URL或者dataProvider来生成CGImageSourceRef,然后可以在source上获取第几张图片或者缩略图;根据http://www.mindsea.com/2....
分类:
移动开发 时间:
2014-06-30 13:00:30
阅读次数:
389
GNU Autotools can not only handle making (compiling and linking), distributing, transplanting source code for different platforms, but can also track ...
分类:
其他好文 时间:
2014-06-30 12:33:53
阅读次数:
400
最近公司产品需要增加一个功能,就是版本自动更新,使用apt-get 实现。apt-get 软件源配置的方法,参见本人资源里的共享。下面是代码中作为升级的一部分。 FILE *fp;
char buffer[256];
char source_ok[] = "Reading package lists...";
if(0 > system("mv -f /etc/apt/sources....
分类:
其他好文 时间:
2014-06-30 08:37:47
阅读次数:
228
We must have already been familiar with proprietary Fortran programming environments, for example,Compaq Visual Fortran IDE (which is actually a combi...
#include#includechar *find_char(char const *source_str, char const *desc_str);int main(void){ char *source_str = "ABCDEF"; char *desc_str = "MMD...
分类:
其他好文 时间:
2014-06-29 19:32:34
阅读次数:
171