# autoreportservice **Repository Path**: CodeUnion/autoreportservice ## Basic Information - **Project Name**: autoreportservice - **Description**: 自动化报表服务,主要用来发送自动化的对外发送数据报表 1. 可视化配置 2. 多数据源支持 3. 自动化发送报表 4. 支持文件中转站 - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-10-22 - **Last Updated**: 2025-08-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AutoReportService ### 自动化报表服务,主要用来自动化的对外发送数据报表 ### 安装部署 1. 使用Systemctl简易部署 创建服务定义文件: ``` sudo vim /etc/systemd/system/ars.web.service ``` 编辑文件: ``` [Unit] Description=自动化报表服务-大数据组 端口 10000 .NET Web Core(merlin) [Service] WorkingDirectory=/custom/dotnet/wwwroot/ars.web/ ExecStart=/usr/bin/dotnet /custom/dotnet/wwwroot/ars.web/ARS.Web.dll --urls 'http://0.0.0.0:10000' Restart=always # Restart service after 10 seconds if the dotnet service crashes: RestartSec=10 KillSignal=SIGINT SyslogIdentifier=dotnet core ARS.Web User=root Environment=ASPNETCORE_ENVIRONMENT=Production Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false [Install] WantedBy=multi-user.target ``` 创建日志文件 (软连接到外边) ``` ln -s /custom/dotnet/logs/ars.web/logs /custom/dotnet/wwwroot/ars.web ln -s /custom/dotnet/logs/files/exportExcel /custom/dotnet/wwwroot/ars.web ln -s /custom/dotnet/logs/files/exportExcel /custom/dotnet/services/ars.service/ ln -s /custom/dotnet/logs/ars.web/logs /custom/dotnet/services/ars.service/ ``` ### 报错信息解决 如果出现以下问题 1. The type initializer for 'Gdip' threw an exception. 安装 yum install libgdiplus 即可解决