安装步骤

  1. 首先exceptionless依赖elasticsearch,而elasticsearch需要java环境,所以先安装jdk

  2. 下载exceptionless:

    • 下载完成之后解压进入目录中:

    • 右击已管理员身份运行:Start.bat。如果报错,则用powershell进入到该目录,然后运行。他会帮我们下载elasticsearch和kabana。

  3. 进入到wwwroot文件夹中修改web.config文件:

    1. <?xml version="1.0" encoding="utf-8"?>
      <configuration>
      <connectionStrings>
      <!--exceptionless默认用户名和密码是存在内存中,这里设置存放在redis中-->
      <add name="RedisConnectionString" connectionString="" />
      <!--elasticSearch的地址-->
      <add name="ElasticSearchConnectionString" connectionString="http://localhost:9200" />
      <add name="LdapConnectionString" connectionString="" />
      </connectionStrings>
      <appSettings>
      <!-- Base url for the ui used to build links in emails and other places. -->
      <!--exceptionless的地址,注意后面一定要加个!号,不然激活邮箱的地址会失效-->
      <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 will not be sent)
      QA: Use this mode when deployed to staging. (Outbound emails restricted)
      Production: Use this mode when deployed to production.
      -->
      <add key="WebsiteMode" value="Production" />
      <!-- Controls whether users can signup. -->
      <add key="EnableAccountCreation" value="true" />
      <!-- Controls whether daily summary emails are sent -->
      <add key="EnableDailySummary" value="true" />
      <!--
      Email Client Settings (Uncomment the section below to change the default email settings)
      There are three valid SmtpEncryption settings: None, SSL and StartTLS
      -->
      <add key="SmtpHost" value="smtp.qq.com" />
      <add key="SmtpPort" value="465" />
      <add key="SmtpEncryption" value="SSL" />
      <add key="SmtpFrom" value="1983702356@qq.com" />
      <add key="SmtpUser" value="1983702356@qq.com" />
      <add key="SmtpPassword" value="jhmvvgpwfbaoeagi" /> <!-- 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" />
      </appSettings>
      <system.net>
      <defaultProxy enabled="true" />
      </system.net>
      <system.web>
      <authentication mode="None" />
      <compilation targetFramework="4.6" debug="false" />
      <httpRuntime targetFramework="4.6" maxRequestLength="10000" maxUrlLength="1024" />
      <customErrors mode="RemoteOnly" defaultRedirect="~/error.html" />
      </system.web>
      <system.webServer>
      <modules runAllManagedModulesForAllRequests="true">
      <remove name="FormsAuthentication" />
      <remove name="RewriteModule" />
      <remove name="RoleManager" />
      <remove name="WebDAVModule" />
      </modules>
      <urlCompression doStaticCompression="true" />
      <httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024">
      <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
      <staticTypes>
      <add mimeType="text/*" enabled="true" />
      <add mimeType="message/*" enabled="true" />
      <add mimeType="application/javascript" enabled="true" />
      <add mimeType="application/json" enabled="true" />
      <add mimeType="*/*" enabled="false" />
      </staticTypes>
      </httpCompression>
      <httpProtocol>
      <customHeaders>
      <remove name="Server" />
      <remove name="X-Powered-By" />
      <remove name="X-AspNet-Version" />
      </customHeaders>
      </httpProtocol>
      <handlers>
      <remove name="OPTIONS" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACE" />
      <remove name="TRACEVerbHandler" />
      <remove name="WebDAV" />
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
      </handlers>
      <security>
      <requestFiltering allowDoubleEscaping="true">
      <requestLimits maxAllowedContentLength="10000000" />
      </requestFiltering>
      </security>
      <!--<rewrite><rules><clear /><rule name="Redirect HTTP to HTTPS"><match url="^(.*)$" /><conditions><add input="{HTTPS}" pattern="^OFF$" /><add input="{HTTP_HOST}" matchType="Pattern" pattern="\:9001$" negate="true" /><add input="{HTTP_HOST}" matchType="Pattern" pattern="^local-app.exceptionless.io$" negate="true" /></conditions><action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /></rule><rule name="Redirect HTTPS to HTTP"><match url="^(.*)$" /><conditions><add input="{HTTPS}" pattern="^ON$" /><add input="{HTTP_HOST}" matchType="Pattern" pattern="^local-app.exceptionless.io$" /></conditions><action type="Redirect" url="http://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /></rule><rule name="Redirect exceptionless.io to be.exceptionless.io"><match url="^(.*)$" /><conditions><add input="{HTTP_HOST}" matchType="Pattern" pattern="^exceptionless.io$" /></conditions><action type="Redirect" url="https://be.{HTTP_HOST}/{R:1}" redirectType="SeeOther" /></rule><rule name="PushState" stopProcessing="true"><match url=".*" /><conditions logicalGrouping="MatchAll"><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /><add input="{REQUEST_FILENAME}" pattern=".*[^.]*\.[\d\w]+$" negate="true" /><add input="{REQUEST_URI}" matchType="Pattern" pattern="api/(.*)" negate="true" /></conditions><action type="Rewrite" url="/" /></rule></rules></rewrite>-->
      </system.webServer>
      <location path="error.html">
      <system.web>
      <httpModules>
      <clear />
      </httpModules>
      </system.web>
      <system.webServer>
      <modules>
      <clear />
      </modules>
      </system.webServer>
      </location>
      <location path="exceptionless.png">
      <system.web>
      <httpModules>
      <clear />
      </httpModules>
      </system.web>
      <system.webServer>
      <modules>
      <clear />
      </modules>
      </system.webServer>
      </location>
      <location path="favicon.ico">
      <system.web>
      <httpModules>
      <clear />
      </httpModules>
      </system.web>
      <system.webServer>
      <modules>
      <clear />
      </modules>
      </system.webServer>
      </location>
      <location path="index.html">
      <system.web>
      <httpModules>
      <clear />
      </httpModules>
      </system.web>
      <system.webServer>
      <modules>
      <clear />
      </modules>
      </system.webServer>
      </location>
      <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
      <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="System.Web.Cors" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="Microsoft.AspNet.SignalR.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="SimpleInjector" publicKeyToken="984cb50dea722e99" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="Microsoft.Owin.FileSystems" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-5.6.4.0" newVersion="5.6.4.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="SimpleInjector.Extensions.ExecutionContextScoping" publicKeyToken="984cb50dea722e99" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
      </dependentAssembly>
      <dependentAssembly>
      <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-1.2.1.0" newVersion="1.2.1.0" />
      </dependentAssembly>
      </assemblyBinding>
      </runtime>
      <location path="index.html">
      <system.webServer>
      <staticContent>
      <clientCache cacheControlMode="DisableCache" />
      </staticContent>
      </system.webServer>
      </location>
      </configuration>
  4. 如果你修改了Exceptionless的默认路由,记得改下app.config.77fc9ddd679d37dc.js文件中的地址。

  5. 然后启动elasticsearch、redis。再将exceptionless部署到iis即可。
  6. 打开http://localhost:50000,注册一个账号,然后登入:

最新文章

  1. CSS清除浮动float方法总结
  2. 原生js拖拽
  3. Jmeter工作原理
  4. Lighttpd虚拟主机和多域名的配置
  5. 关于SQL Server的WITH(NOLOCK)和(NOLOCK)
  6. C#程序:如何创建xml文件以及xml文件的增、删、改、查
  7. Windows Azure功能更新:SQL Server AlwaysOn和Notification Hub 正式商用
  8. 找出生成json中的error_code,并加以处理
  9. IBM developer:Kafka ACLs
  10. Acdream1201 SuSu&#39;s Power
  11. 2802:小游戏利用bfs来实现
  12. #004 C语言大作业学生管理系统试着做
  13. 《Java大学教程》—第12章 案例研究--第2部分
  14. 专题8:javascript中事件
  15. js里获取页面高度和文档高度
  16. IO复用\阻塞IO\非阻塞IO\同步IO\异步IO
  17. SQL EXCEPT INTERSECT
  18. django-后台sms管理系统的css框架
  19. (网络流) Island Transport --Hdu -- 4280
  20. CentOS 6.5系统安装编译安装MySQL 5.6详细过程

热门文章

  1. frps服务端与nginx可共用443端口
  2. PAT (Basic Level) Practice 1013 数素数 分数 20
  3. 图片 css剪切,等比例缩放
  4. 【Java8新特性】- Lambda表达式
  5. Java学生管理系统(详解)
  6. Java登录专题-----创建用户(一)
  7. 如何使用IDEA创建一个简单的java工程?
  8. faker
  9. Linxu常用命令
  10. 【JavaWeb】学习笔记——Ajax、Axios