---
title: "交易中心810问题"
author: "泡泡"
date: "2008-08-13T22:11:27Z"
tags: []
slug: "810"
draft: false
lastmod: "2008-08-13T22:11:27Z"
id: 227820
url: "https://chensimiaojava.iteye.com/blog/227820"
---

**1 使用sftp上传或下载文件.**  
在SecureCRT中"连接sftp标签"  
使用cd 改变Server端目录  
使用lcd改变本地目录  
使用get backup-2008-8-03.zip 下载工具  
使用put backup-2008-8-03.zip 上传工具

**4 在linux打包和解压缩**  
打包  
tar -czvf ziped.tar.gz filepath/*  
tar -xzvf ziped.tar.gz filepath

-z 使用gzip的filter  
\-c 创建一个新的archive  
\-v verbose  
\-f 指定filename

**5 在做替换操作的时候，一定要备份!!**

**6 配置JIRA发Email，一定要把WEB-INF/lib/ javamail.jar 和activation.java放到common/lib下面。**

 

**10 mvn -DskipTest install 可以让Install不单元测试**

**12 HessianRefundServiceImpl，Webx里面Hessian的访问方式.**

**调试的时候遇到的奇怪问题,发现实际上已经设置了，但是运行的时候却是没有设置，可能调试的时候遇到的是两个类，那么在运行的时候，需要观察他的HashCode是否一样。**

 

**14 将TradeManager搞定，**  
**能在本地的JBoss中将TradeManager跑起来，如果需要了解Webx的话，可以从TradeManager入手。**

 

**15 问afei搞定notify-1.1.1和notify-1.1-SNAPSHOT的问题**  
**主要的问题是在同一个项目的的两个外部依赖使用了不同的依赖关系，比如payway依赖了notify-1.1-SNAPSHOT，而TradeManager依赖了notify-1.1.1，所以会在antx -p RELEASE reactor 的时候出错，依赖关系在repository中设置的。所以需要修改module.xml或**

 

**16 自己在Spring中做一个Hessian的访问，才能够明白里面的技术细节。**  
**没做**

 

**17 CC里面关掉Notify消息。**  
**在单元测试的时候，是否关闭掉或Mock掉Notify消息。**  
**需要在两个地方关掉，RefundManagerImpl和工作流引擎**

 

**18 在Mysql数据库中，创建一个用户jiradb,然后赋给所有的权限，并允许远程访问。**  
**create user jiradb identified by 'jiradb';**  
**grant select,insert,update,delete on jiradb.* to [jiradb@'%'](mailto:jiradb@'%');**  
**flush privileges;**

 

**19 payway的日志的问题**  
**使用StringBuilder，构建了一个比较漂亮的日志输出。**

 

**20 mvn pom.xml配置**  
**将资源文件指定到Resource中**  
 **&lt;testResources&gt;**  
  **&lt;testResource&gt;**  
  **&lt;directory&gt;scr/test/java&lt;/directory&gt;**  
  **&lt;includes&gt;**  
  **&lt;include&gt;\*\*/\*.xml&lt;/include&gt;**  
  **&lt;include&gt;\*\*/\*.xml&lt;/include&gt;**  
  **&lt;include&gt;\*\*/\*.jpg&lt;/include&gt;**  
  **&lt;include&gt;\*\*/\*.xls&lt;/include&gt;**  
  **&lt;/includes&gt;**  
  **&lt;/testResource&gt;**  
 **&lt;/testResources&gt;**  

 

**21 使用Telnet到服务器上，可以使用下面的命令得到默认页的html**  
**GET / HTTP/1.0**

 

**22 通过ProxyPass来访问Apache，允许这3个Module**  
**LoadModule proxy\_module /opt/taobao/install/httpd/modules/mod\_proxy.so**  
**LoadModule proxy\_connect\_module /opt/taobao/install/httpd/modules/mod\_proxy\_connect.so**  
**LoadModule proxy\_http\_module /opt/taobao/install/httpd/modules/mod\_proxy\_http.so**

**&lt;VirtualHost 61.129.70.239&gt;**  
    **ServerAdmin [cao@redsaga.com](mailto:cao@redsaga.com)**  
    **DocumentRoot /home/linkage/site**  
    **DirectoryIndex index.htm index.html index.php**  
    **ServerName  buytest.redsaga.com**  
    **ErrorLog logs/buy-redsaga-error\_log**  
    **CustomLog logs/buy-redsaga-access\_log combined**  
    **ProxyPass / ajp://127.0.0.1:18125/buytest/**  
    **ProxyPassReverse / ajp://127.0.0.1:18125/buytest/**  
    **ProxyPassReverseCookieDomain buytest.redsaga.com buytest.redsaga.com**  
    **ProxyPassReverseCookiePath / /**  
**&lt;Directory "/home/linkage/site"&gt;**  
        **AllowOverride All**  
    **&lt;/Directory&gt;**  
**&lt;/VirtualHost&gt;**

 

**23 查看SVN的版本信息 svn --version，需要2根杠**