nopCommerce环境的搭建

背景 

最近帮一兄弟搭建一个nopCommerce环境,把搭建步骤记录下来,免得以后忘记了。

    步骤

    1.安装XP和IIS5.1。XP上只能安装IIS5.1,不能安装IIS6或者IIS7。
    2.安装MS SQL Server Express 2005/2008。
    3.安装MS SQL Server Management Studio 2005/2008。
    4.安装nopCommerce的文件到IIS上。
    5. 如果想通过自动安装会有以下错误提示:


    6.配置MS SQL Server。
    参考http://blogs.msdn.com/sql_protocols/archive/2007/03/31/named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server.aspx
    关键点是
    Enable Named Pipes
    nop2 
    Enable remote connection
    nop3
    Start SQL Server(SQLEXPRESS) & SQL Server Browser
    nop4
    7.在SQL Server上建立一个空数据库叫做nopCommerce,名字不重要,只要和连接串名字一样就可以了。
    8.安装数据库脚本
    参考http://www.nopcommerce.com/Documentation/Installation.aspx
    执行nopCommerce_1.30\NopCommerceStore\Install\Scripts下nopCommerce_createData.sql和nopCommerce_createDatabase.sql脚本。
    如果需要例子数据则需要执行nopCommerce_createSampleData.sql。
    9.修改连接串
    修改ConnectionStrings.config文件。参考http://www.nopcommerce.com/Boards/Topic.aspx?TopicID=854
    <connectionStrings>
    <
    add name="NopSqlConnection" connectionString="Data Source=putTheNameOfYourServerHere;Initial Catalog=NameOfYourDatabase;Integrated Security=False;Persist Security Info=False;User ID=YourUserID;Password=YourPassword;Connect Timeout=120"/>
    </
    connectionStrings>
     
    10.搭建完成
    nop5
    posted @ 2009-08-26 09:15  Jake Lin  阅读(5429)  评论(4编辑  收藏  举报