主 PID:261452(代码=killed,信号=ABRT)Linux Ubuntu

主 PID:261452(代码=killed,信号=ABRT)Linux Ubuntu

当我在 vps 服务器上运行我的项目 asp.net core 时 - 我收到此错误。

sudo systemctl status employeeservicefile.service

● employeeservicefile.service - Running ASP.NET Core on Ubuntu 18.04 Webserver APACHE
 Loaded: loaded (/etc/systemd/system/employeeservicefile.service; enabled; vendor preset: 
  enabled)
 Active: activating (auto-restart) (Result: signal) since Sat 2021-09-18 11:46:43 CEST; 4s ago
Process: 261452 ExecStart=/usr/bin/dotnet /var/www/employee/RealEstate.dll (code=killed, 
 signal=ABRT)   
Main PID: 261452 (code=killed, signal=ABRT)

当我进入我的域名时,它只显示我的项目文件而不是网站,我该如何解决这个问题?

服务文件

[Unit]
Description=Running ASP.NET Core on Ubuntu 20.04 Webserver APACHE
[Service]
  WorkingDirectory=/var/www/employee/
   ExecStart=/usr/bin/dotnet /var/www/employee/RealEstate.dll
   Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-example
User=www-data
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
[Install]
WantedBy=multi-user.target

GNU nano 4.8 /etc/apache2/sites-available/employee.conf

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName mydomain.com
    ServerAlias www.mydomain.com
    DocumentRoot /var/www/employee/

<Directory /var/www/employee/>
   Options Indexes FollowSymLinks
   AllowOverride None
   Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

systemctl 状态 apache2.service

主动运行无错误

相关内容