#-*- coding:UTF-8 -*-#-*- author:Zahoor Wang
-*-import codecs, os, sys, platform, stringdef env():return platform.system()def
read_file(uri, charset =...
分类:
编程语言 时间:
2014-05-16 04:30:50
阅读次数:
306
1.配置tomcat的界面访问账号和权限./tomcat/conf目录下tomcat-users.xml添加这里是根据自己的需求添加的一个角色权限2.配置pom.xml文件添加tomcat-maven-plugin插件
org.codehaus.mojo tomcat-maven-plu...
分类:
其他好文 时间:
2014-05-16 04:01:47
阅读次数:
286
分享一个进程查看脚本(rlook),方便进程查看:1、添加脚本,内容如下:#!/bin/kshcd $HOME/binps -u $LOGNAME|egrep
" \progress1| \ progress2| \progress3| \" > $HOME/log/tmp.csclearech.....
分类:
其他好文 时间:
2014-05-16 03:40:17
阅读次数:
341
本人使用的Tomcat版本为apache-tomcat-6.0.18(用的是解压包),在eclipse下能够正常启动,可是当手动通过cmd进入bin目录启动startup.bat个时候提示:The
JAVA_HOME environment variable is not defined co...
分类:
其他好文 时间:
2014-05-16 03:28:36
阅读次数:
334
autoit.au3#include WinWait("打开","",20);
//暂停执行脚本,直到上传对话框出现WinActive("打开")WinWaitActive("打开","",5);
//激活上传窗口ControlFocus("打开", "", "[CLASS:Edit;...
分类:
编程语言 时间:
2014-05-15 21:21:46
阅读次数:
510
批量添加用户#!/bin/bashi=1while [ $i -le 20 ]do
useradd stu$i echo "123456" | passwd --stdin stu$i &> /dev/null
i=$(($i+1))done# 删除用户#!/bin/bash# 批...
分类:
其他好文 时间:
2014-05-15 21:11:33
阅读次数:
218
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html前提:开启TOMCAT,MYsqlMySQL
DBCP Example0. IntroductionVersions of MySQL and JDB...
分类:
数据库 时间:
2014-05-15 20:56:04
阅读次数:
550
1.在web项目中如果直接添加一个资源,那么相对路径相对的是tomcat的bin目录。
2.在包中直接指定资源,那么可以使用以下的相对路径直接获取资源: InputStream in =
this.getClass().getResourceAsStream("jnb.txt");3.在web项目....
分类:
其他好文 时间:
2014-05-15 20:48:19
阅读次数:
257
这段时间在做前端的动态页面,出了很多问题,因为js平时用的很少,所以花了不少无用功。
其中有两点一定要注意:
1.当js中有语法错误时,js脚本会无法执行。
2.当js脚本中有未定义的变量时,后边的语句不能执行。...
分类:
Web程序 时间:
2014-05-15 20:15:19
阅读次数:
250
在eclipse启动tomcat时遇到超时45秒的问题:
Server Tomcat v7.0 Server at localhost was unable to startwithin 45 seconds. If the server requires more time, try increasingthe timeout in the server editor.
网上解决办法...
分类:
其他好文 时间:
2014-05-15 18:31:36
阅读次数:
242