@using System.IO @using ZoomLa.Common @using ZoomLa.Safe @functions{ public bool CheckDirAuth(string ppath) { try { if (File.Exists(ppath + "\\a.txt")) { return true; } using (FileStream fs = new FileStream(ppath + "\\a.txt", FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)) { fs.Close(); fs.Dispose(); } if (File.Exists(ppath + "\\a.txt")) { System.IO.File.Delete(ppath + "\\a.txt"); return true; } else { return false; } } catch (Exception) { return false; } } string Check_Basic_L = "", Check_File_L = "", Check_File2_L = ""; public void CheckEnviorment() { string html = ""; string rightTlp = "
{0}
"; string errorTlp = "
{0}
"; //需要检测的文件 string[] dirs = "/Config/,/js/,/UploadFiles/,/Template/".Split(','); //string[] configs = "".Split(','); string[] dlls = "Zoomla.Safe,ZoomLa.BLL,ZoomLa.Components,ZoomLa.Common,ZoomLa.Web,ZoomLa.SQLDAL,ZoomLa.Model".Split(','); string[] files = new string[] { "AppSettings.config", "ConnectionStrings.config", "CRM_Dictionary.xml", "MakeSendList.config", "log.config", "Pages.config" }; string[] files2 = new string[] { "URLRoute.config", "URLRewrite.config", "globalization.config", "Guest.config", "Site.config", "OrderStatus.xml", "StationGroup.config", "WaterConfig.config" }; //检测环境 //html += string.Format(rightTlp, "NetCore版本验证通过"); //--------------------------------- if (File.Exists(function.VToP("/App_Data/data.sql"))) { html += string.Format(rightTlp, "数据库脚本文件存在"); } else { html += string.Format(errorTlp, "数据库脚本文件不存在"); } //--------------------------------- string dllhtml = string.Format(rightTlp, "程序集文件完整性验证通过"); //foreach (string dll in dlls) //{ // if (!File.Exists(function.VToP("/Bin/" + dll + ".dll"))) // { // dllhtml = string.Format(errorTlp, "" + dll + "程序集文件不完整性是否下载"); // break; // } //} html += dllhtml; //--------------------------------- foreach (string dir in dirs) { if (CheckDirAuth(function.VToP(dir))) { html += string.Format(rightTlp, dir.Replace("/", "") + "目录权限验证通过"); } else { html += string.Format(errorTlp, dir.Replace("/", "") + "目录权限验证未通过"); } } Check_Basic_L = html; //---------------------------------文件检测 string filehtml = "", filehtml2 = ""; foreach (string file in files) { if (File.Exists(function.VToP("/Config/" + file))) { filehtml += string.Format(rightTlp, file + "文件验证通过"); } else { filehtml += string.Format(rightTlp, file + "文件不存在"); } } Check_File_L = filehtml; foreach (string file in files2) { if (File.Exists(function.VToP("/Config/" + file))) { filehtml2 += string.Format(rightTlp, file + "文件验证通过"); } else { filehtml2 += string.Format(rightTlp, file + "文件不存在"); } } Check_File2_L = filehtml2; } } @{ CheckEnviorment(); } @section head{ Zoomla!逐浪CMS安装进程... } @section content{

Zoomla!逐浪CMS安装进程

  • NoSQL安装模式

    轻便的安装模式,安装完成后读取template/v5模板,你只要定义系统的Data数据和模板,就能轻松完成一个轻量级站点,且可以视需要部署数据库进程[此模式无管理后台,无编程经验者慎入]。

  • 标准数据库安装模式

    基于标准的数据库模式安装,这是我们推荐的安排模式并可以获得最完整的功能.

软件许可协议

运行环境检测

@Html.Raw(Check_Basic_L)
@Html.Raw(Check_File_L)
@Html.Raw(Check_File2_L)

配置数据库连接

默认为MSSQL数据库,新手敬请移步查阅教程
数据源地址
如local或远程主机名 @**@
数据库名称
@**@
数据库用户
@* 有权限访问该数据库的用户名!*@
数据库口令
@**@

配置网站信息

网站名称
用于标识平台名称 @**@
网站标题
平台的标题定义 @**@
网站地址
用http://或https://开头 @**@
电子邮箱
定义E-amil用于平台邮件收发
超管帐号
如库中有重名管理员覆盖并重置为最高管理员权限、密码,否则创建之。
管理密码
不少于6位字母数字组合 @* *@
确认密码
再输一次相同密码 @* *@
增强认证
即后台管理认证码-用于增强安全,初始为不开通管理认证码功能。 @**@

完成安装

已经成功安装点此进入首页

重装请新定义配置文件
} @section script{ }