1. 到官网下载Windows环境下的MongoDB。http://www.mongodb.org/  这个就不赘述了。

      2. 如下图所示,进入解压后的MongoDB目录下的bin文件夹下,使用Mongo启动服务器。启动服务器的必要条件是配置DataBase的目录,通过参数--dbpath e:\mongodb\data 配置DB目录。

  mongod --dbpath e:\mongodb\data 命令已经能够启动MongoDB服务器了,但不能关闭CMD,否则MongoDB服务器会立即关闭。通过http://localhost:27017/可查看是否启动服务器成功。

管理员登录,执行以下命令:

  mongod --dbpath e:\mongodb\data --logpath e:\mongodb\logs\log.txt --install

  --dbpath 配置数据库的存贮位置,后跟目录

    --logpath 配置日志文件,后跟日志文件的位置 

  --install 安装Windows服务

  上述三个参数为必要参数。

如下图,启动Windows服务,

地址栏输入http://localhost:27017/

显示如下字样,恭喜你,配置完毕。

posted @ 2011-10-12 15:07 sig556 阅读(41) 评论(0) 编辑
摘要: Win7 和 IIS7 默认不支持WCF, 要使其支持WCF,需要执行如下操作: 1. 以管理员(Administrator)方式运行C:\Windows\System32\cmd.exe 2. 执行命令: "%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y (其中windir需要替换为你的windows安装目录) 添加脚本映射即可WCF常见错误之密钥集不存在,The process must have access rights阅读全文
posted @ 2011-07-14 14:28 sig556 阅读(176) 评论(0) 编辑

创建证书:

makecert.exe -sr CurrentUser -ss My -a sha1 -n CN=WCfServer -sky exchange -pe

1.服务器端:

system.serviceModel>
        <bindings>
            <wsHttpBinding>
                <binding name="MtomBindingConfiguration"  messageEncoding="Mtom" maxReceivedMessageSize="1073741824" receiveTimeout="00:10:00">
                    <!--<security  mode="Transport">-->
                    <!--<transport clientCredentialType="Certificate"></transport>-->
                    <security >
                        <message clientCredentialType="Certificate"/>
                    </security>
                    <readerQuotas maxArrayLength="1073741824" />
                </binding>
            </wsHttpBinding>
        </bindings>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
        <services>
            <service behaviorConfiguration="Service.WebServiceBehavior" name="Service.WebService">
                <endpoint address="" binding="wsHttpBinding" contract="IService.IWebService" bindingConfiguration="MtomBindingConfiguration" >
                    <!--<endpoint address="http://localhost:2397/WebService.svc" binding="wsHttpBinding" contract="IService.IWebService" bindingConfiguration="MtomBindingConfiguration" >-->
                </endpoint>
            </service>
        </services>
        <behaviors>
            <serviceBehaviors>
                <behavior name="Service.WebServiceBehavior">
                    <serviceMetadata httpGetEnabled="true"  />
                    <serviceDebug includeExceptionDetailInFaults="true" />
                    <serviceCredentials>
                        <clientCertificate>
                            <authentication certificateValidationMode="PeerTrust"/>
                            <!--<authentication  customCertificateValidatorType="WebServiceHost.X509Validation,WebServiceHost" certificateValidationMode="Custom"/>-->
                        </clientCertificate>
                        <serviceCertificate findValue="dlrfidWebServiceServer" storeName="My" storeLocation="CurrentUser" x509FindType="FindBySubjectName"/>
                    </serviceCredentials>
                </behavior>
            </serviceBehaviors>
        </behaviors>
    </system.serviceModel>
    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
    </system.webServer>

客户端:

 

 <system.serviceModel>
        <bindings>
            <wsHttpBinding>
                <binding name="WSHttpBinding_IWebService" closeTimeout="00:01:00"
                 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
                 maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Mtom"
                 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                     maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <reliableSession ordered="true" inactivityTimeout="00:10:00"
                     enabled="false" />
                    <security mode="Message">
                        <transport clientCredentialType="Windows" proxyCredentialType="None"
                         realm="" />
                        <message clientCredentialType="Certificate" negotiateServiceCredential="true"
                         algorithmSuite="Default" />
                    </security>
                </binding>
            </wsHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://localhost:2397/WebService.svc" binding="wsHttpBinding"
             bindingConfiguration="WSHttpBinding_IWebService" contract="WebService.IWebService"
             name="WSHttpBinding_IWebService" behaviorConfiguration="CustomBehavior">
                <identity>
                    <certificate encodedValue="AwAAAAEAAAAUAAAAeYh82ab7DzX7VgeBGszEb+mJREMgAAAAAQAAABkCAAAwggIVMIIBgqADAgECAhBQMedwa/rKvkXo0TVGSWNgMAkGBSsOAwIdBQAwITEfMB0GA1UEAxMWZGxyZmlkV2ViU2VydmljZVNlcnZlcjAeFw0xMTA1MjAwODM2MzRaFw0zOTEyMzEyMzU5NTlaMCExHzAdBgNVBAMTFmRscmZpZFdlYlNlcnZpY2VTZXJ2ZXIwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMB5FBsK9MI5dmWviNY630BsR/9v6U1jZYPAkeZvHur/ylA/xX9Gk61R+Lf4w/tZKO6L71uKkHP8fouyO9xaZSTvB3IMc8g8+sg241gTbc+2V284TrpLukaUHUEHnDnWwyXE8iQjXwtM6Do3aaJl5tXOENwuSeJITMMM0a/Oa1RHAgMBAAGjVjBUMFIGA1UdAQRLMEmAEHIh43krSAoBbjxTloPkPyChIzAhMR8wHQYDVQQDExZkbHJmaWRXZWJTZXJ2aWNlU2VydmVyghBQMedwa/rKvkXo0TVGSWNgMAkGBSsOAwIdBQADgYEAGHb2SjF3/loPJTuQtWMEP8fLrrEcWoqi7dkzqDUvTXtW0lFIH5xgG8EQublAJYGZBFUcXCmm/wLOd4Bhj9IvlbuvB08zVzf4amO8YWJyeKImJ0yJKwaH2lwL3JsXV5saQC2JqAhQfPS/7Z6sd3D3ECySgVYOE2fkDBDd52QXX0Y=" />
                </identity>
            </endpoint>
        </client>
        <behaviors>
            <endpointBehaviors>
                <behavior name="CustomBehavior">
                    <clientCredentials>
                        <clientCertificate findValue="dlrfidWebServiceServer" storeName="My" storeLocation="CurrentUser" x509FindType="FindBySubjectName" />
                        <serviceCertificate>
                            <authentication certificateValidationMode="PeerTrust"/>
                        </serviceCertificate>
                    </clientCredentials>
                </behavior>
            </endpointBehaviors>
        </behaviors>

    </system.serviceModel>

 

 makecert -sr LocalMachine -ss My -a sha1 -n CN=Webabcd -sky exchange -pe
certmgr -add -r LocalMachine -s My -c -n Webabcd -s TrustedPeople

 

posted @ 2011-05-24 17:23 sig556 阅读(70) 评论(0) 编辑

1.IIS+PHP

1.1找到date.timezone去掉前面分号,修改为date.timezone = Asia/Shanghai

如果不改以上的date.timezone可能打开网页会提示500错误,去掉注释分号;

1.2找到extension_dir去掉前面分号,修改为extension_dir = "D:/PHP/ext"

 

posted @ 2010-10-27 11:02 sig556 阅读(79) 评论(0) 编辑

1.安装x11和gnome,apt-get install x-window-system-core  apt-get install gnome-core

输入startx,进入图形界面,修改 sudo gedit /etc/inittab 命令修改最后一行的3为5就可以了

posted @ 2010-08-08 11:57 sig556 阅读(29) 评论(0) 编辑
摘要: 现在做的项目,用到了编辑器,而FCK都出到了2.6.3所以就把他改成自己想要的,发现跟原来的不一样了,还要重新找,现在就把过程发给大家分享一下吧!一、自定义 FCKeditor 的 BasePathBasePath 即FCKeditor在网站中的相对路径,默认值是 /fckeditor/,最好在Web.config appSettings中对其进行配置:Code highlighting prod...阅读全文
posted @ 2010-07-27 10:44 sig556 阅读(1188) 评论(0) 编辑
摘要: 软件测试计划模板<一>一、 测试项目简介及撰写计划人信息等简单描述测试的项目概况(参考功能说明书)。由哪个部门,什么人,为什么项目写的测试计划,完成后由谁评审等等二、 测试所需的软硬件配置,须注明已经具备的和缺少的。1、硬件配置:2、软件系统配置:包括系统软件和应用软件三、测试组组成及人力资源要求1、本项目的测试人员姓名及分工,指定测试负责人。2、需要配合的相关部门和人员四、测试的内容...阅读全文
posted @ 2010-07-24 10:54 sig556 阅读(657) 评论(0) 编辑
摘要: 文档 测试流程 测试计划,测试用例,测试报告测试有文档测试,单元测试,集成测试,系统测试,压力测试,性能测试,安装测试,界面测试,兼容性测试,回归测试.人员:测试人员,代码管理人员,文案人员.. 页面链接检查:每一个链接是否都有对应的页面,并且页面之间切换正确。可以使用一些工具,如LinkBotPro、File-AIDCS、HTML Link Validater、Xenu等工具。LinkBotPr...阅读全文
posted @ 2010-07-23 09:46 sig556 阅读(208) 评论(0) 编辑
摘要: 1.流程的意义  从一个软件企业的长远发展来看,如果要提高产品的质量首先应当从流程抓起,规范软件产品的开发过程。这是一个软件企业从小作坊的生产方式向集成化规范化的大公司迈进的必经之路,也是从根本上解决质量问题,提高工作效率的一个关键手段。   软件产品的开发同其它产品(如汽车)的生产有着共同特性,即需要按一定的过程来进行生产。在工业界,流水线生产方式被证明是一种高效的,且能够比较稳定的保证产品质量...阅读全文
posted @ 2010-07-23 09:19 sig556 阅读(249) 评论(0) 编辑
摘要: 一些常用的正则表达式 收藏 "^\d+$"  //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$"  //正整数 "^((-\d+)|(0+))$"  //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$"  //负整数 "^-?\d+$"    //整数 "^\d+(\.\d+)?$"  //非负浮点数(正浮点数 + 0) "^(([0-9]+\.[0...阅读全文
posted @ 2010-07-22 10:12 sig556 阅读(31) 评论(0) 编辑