`
文章列表
1、下载mongo http://www.mongodb.org/downloads 2、将下载的tgz文件解压 tar -zxvf mongodb-linux-x86_64-1.8.2.tgz 解压后的目录是“mongodb-linux-x86_64-1.8.2” 3、(可选)建议创建创建一个mongo软链接到具体的安装目录mongodb-linux-x86_64-1.8.2 ln -s mongodb-linux-x86_64-1.8.2 mongodb 4、创建data目录和log目录 进入mongodb安装目录,mkdir data和mkdir log 5、在安装目录下创建配置文 ...
开发环境配置、测试环境以及线上环境的配置肯定是不一样的,比如:数据库配置、配置路径、log级别等。用以下两种方式,可以方便切换环境。 1、用spring3.1 profile http://radiumxie.iteye.com/blog/1851919 2、用maven profile http://blog.csdn.net/kangojian/article/details/6733006

mongo 命令说明

登陆mongo ./mongo 127.0.0.1:11017 数据库备份 ./mongodump -h 127.0.0.1:11017 -d monitor -o ~/monitor-20140923.dump 数据库恢复 ./mongorestore -h 127.0.0.1:11017 -d monitor ~/monitor-20140923.dump/* 数据导入导出 http://blog.csdn.net/liuzhoulong/article/details/6849978
http://wuyuans.com/2012/05/github-simple-tutorial/ http://www.cnblogs.com/chjw8016/archive/2012/11/08/2760290.html 创建tag git tag -a v1.0 -m 'first version' 共享tag,我们在执行git push的时候,tag是不会上传到服务器的,比如现在的github,创建tag后git push,在github网页上是看不到tag的,为了共享这些tag,你必须这样: git push origin --tags 删除远程tag git push ...
方法是服务器端设置HttpServletResponse header,如果不需要直接下载,那么就不需要设置。 Response.AddHeader "content-disposition","attachment; filename=fname.txt"
pom.xml文件里指定打包的编码 <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.6</source> <target>1.6</target> ...
1、启动 ./haproxy -f ha.conf 2、关闭 kill `cat ~/haproxy1.4.24/ha.pid` 3、查看是否已启动成功 netstat -ntpl |grep haproxy
1、服务端修改/etx/exports 文件,配置规则    eg:       /home/test/work *(insecure,rw,async,no_root_squash)      查看当前机器已经export的目录      showmount -e 2、服务端检查nfs是否已开启 service nfs status,没有则开启 service nfs start(restart) 3、客户端mount    mount -t nfs ip:/home/test/work/work /home/test/work    查看是否mount成 ...

ie7 ie8 访问 QC

    博客分类:
  • qc
http://xitong.iteye.com/blog/1720924
项目里需要对方法进行监控,记录执行时间超长的方法。很自然会想用到AOP动态代理加强方式来解决。于是呼就了下面的代码,下面的是测试代码(项目代码不好贴),有需要测试代码的,可下载附件: DemoMethodInterceptor类: public class DemoMethodInterceptor implements MethodInterceptor { @Override public Object invoke(MethodInvocation invocation) throws Throwable { System.out.println ...
安装velocity插件 Name:Veloeclipse Value:http://veloeclipse.googlecode.com/svn/trunk/update/ Eclipse4.4安装velocity插件Veloeclipse.ui_2.0.8 http://www.ijiuwen.com/blog/950376493154304
下载的是仅仅是oracle的客户端(10.1.0.2),用plsqldev链接oracle时,需要配置oci.dll和oracle home。找到Tools->Prefercences->Connection
转自: http://www.cnblogs.com/redcreen/archive/2011/05/04/2037057.html
转自: http://www.cnblogs.com/redcreen/archive/2011/05/05/2038331.html java application项目(非web项目) 改进前: -Xms128m -Xmx128m -XX:NewSize=64m -XX:PermSize=64m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=78 -XX:ThreadStackSize=128 -Xloggc:logs/gc.log -Dsun.rmi.dgc.server.gcInterval=3600000 ...
-Xms512m -Xmx512m -Xmn128m -XX:PermSize=128m -XX:MaxPermSize=128m -Xverify:none -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=85 -XX:+DisableExplicitGC
Global site tag (gtag.js) - Google Analytics