一、准备篇
- 下载NET 4.6.1.aspx “NET 4.6.1”)
- 下载Java JDK 1.8+,当使用Windows时,JAVA_HOME环境变量须配置
- 下载IIS Express 8+
- 下载PowerShell 3+
- 下载ElasticSearch 1.7.5(Elasticsearch 2.x is not yet supported)
- 下载Exceptionless,Extract the latest Exceptionless release artifact ZIP to your machine
二、安装篇
安装NET 4.6.1
安装(Java JDK 1.8+)
安装ElasticSearch 1.7.5
- 解压ElasticSearch到目录(D:\ElasticSearch 1.7.5)
安装Exceptionless
- 解压Exceptionless到目录(D:\Exceptionless)
- 蒋D:\Exceptionless的elasticsearch.yml复制到D:\Elasticsearch-1.7.5\bin目录
- 执行elasticsearch.bat,打开链接地址http://localhost:9200/,看到相关信息则成功
- 部署ElasticSearch服务,执行service.bat install|remove|start|stop|manager
- IIS部署Exceptionless,路径选择D:\Exceptionless\wwwroot,端口可自定义
二、配置篇
配置Exceptionless
- web.config中的ElasticSearchConnectionString为ElasticSearch的站点http://localhost:9200,修改
,注意后面的# - 修改app.config.*.js中的.constant(‘BASE_URL’, ‘http://localhost:50000‘)
- Exceptionless服务器选择具体IP地址,不使用http://localhost:50000/#
- 邮箱配置,修改配置文件web.config123456789101112131415161718192021222324252627282930313233343536373839404142434445464748<appSettings><!-- Base url for the ui used to build links in emails and other places. --><add key="BaseURL" value="http://localhost:50000/#" /><!-- Controls whether SSL is required. Only enable this if you have SSL configured. --><add key="EnableSSL" value="false" /><!--Dev: Use this mode when debugging. (Outbound emails restricted)QA: Use this mode when deployed to staging. (Outbound emails restricted)Production: Use this mode when deployed to production.--><add key="WebsiteMode" value="Production" /><!-- Email addresses that match this comma delimited list of domains and email addresses will be allowed to be sent out in Dev and QA mode --><add key="AllowedOutboundAddresses" value="exceptionless.io,codesmithtools.com,qq.com" /><!-- All emails that do not match the AllowedOutboundAddresses will be sent to this address in Dev and QA mode --><add key="TestEmailAddress" value="noreply@exceptionless.io" /><!-- Controls whether users can signup. --><add key="EnableAccountCreation" value="true" /><!-- Controls whether daily summary emails are sent --><add key="EnableDailySummary" value="true" /><!-- Folder used to store event post data --><add key="StorageFolder" value="|DataDirectory|\storage" /><!-- Runs the jobs in the current website process --><add key="RunJobsInProcess" value="true" /><add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /><add key="SmtpHost" value="smtp.qq.com" /><add key="SmtpPort" value="25" /><add key="SmtpEnableSsl" value="false" /><add key="SmtpUser" value="邮箱账号" /><add key="SmtpPassword" value="邮箱密码或授权码" /></appSettings><system.net><mailSettings><smtp from="Exceptionless <邮箱账号>"><network host="localhost" port="25" /></smtp></mailSettings><defaultProxy enabled="true" /></system.net>#--------------------------------------------------------------------------------------------------<system.net><mailSettings><smtp from="xxx@qq.com"><network host="smtp.qq.com" port="25" userName="xxx@qq.com" password="xxx" /></smtp></mailSettings><defaultProxy enabled="true" /></system.net>