Tri Nguyen
Tri Nguyen

Intro

In this post I would like to document how I install .Net 6 on Linux Arm64 manually. For detailed instructions, you can read on Microsoft Docs.

Steps

curl https://download.visualstudio.microsoft.com/download/pr/d30e9e2e-10a5-46c6-9b81-1a6a965d6739/6f56a3893b16fa841c8cb34ec9b3768d/aspnetcore-runtime-6.0.2-linux-arm64.tar.gz --output dni.tar.gz
Arm
mkdir -p /usr/share/dotnet
tar zxf dni.tar.gz -C /usr/share/dotnet/
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
dotnet --info
sudo apt-get install supervisor
sudo nano /etc/supervisor/conf.d/{domain}.conf
[program:APP_NAME]
command=/usr/bin/dotnet API_DLL_PATH --urls http://0.0.0.0:API_PORT
directory=API_DIR_PATH
autostart=true
autorestart=true
stderr_logfile=/var/log/API_DOMAIN.err.log
stdout_logfile=/var/log/API_DOMAIN.out.log
environment=ASPNETCORE_ENVIRONMENT=Production
user=www-data
stopsignal=INT

Restart supervisor

sudo service supervisor restart
sudo tail -f /var/log/supervisor/supervisord.log

Comments

If you have any question, you can start a new discussion.