Exceptionless安装、配置与使用

一、准备篇

二、安装篇

安装NET 4.6.1

安装(Java JDK 1.8+)

安装ElasticSearch 1.7.5

  1. 解压ElasticSearch到目录(D:\ElasticSearch 1.7.5)

安装Exceptionless

  1. 解压Exceptionless到目录(D:\Exceptionless)
  2. 蒋D:\Exceptionless的elasticsearch.yml复制到D:\Elasticsearch-1.7.5\bin目录
  3. 执行elasticsearch.bat,打开链接地址http://localhost:9200/,看到相关信息则成功
  4. 部署ElasticSearch服务,执行service.bat install|remove|start|stop|manager
  5. IIS部署Exceptionless,路径选择D:\Exceptionless\wwwroot,端口可自定义

二、配置篇

配置Exceptionless

  1. web.config中的ElasticSearchConnectionString为ElasticSearch的站点http://localhost:9200,修改,注意后面的#
  2. 修改app.config.*.js中的.constant(‘BASE_URL’, ‘http://localhost:50000‘)
  3. Exceptionless服务器选择具体IP地址,不使用http://localhost:50000/#
  4. 邮箱配置,修改配置文件web.config
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    <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 &lt;邮箱账号&gt;">
    <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>

三、使用篇

使用Exceptionless

  1. 打开链接地址http://localhost:50000,创建账户-->创建项目,根据提示使用Exceptionless
Mickey wechat
微信公众号