Тёмный

Easiest way to deploy .net core api to red hat linux vm 

Ved Prakash
Подписаться 136
Просмотров 3,2 тыс.
50% 1

CREATE DEPLOYMENT PACKAGE LIKE THIS ONLY ( ITS EASIEST AND WORKING, TRUST ME)
dotnet publish -f netcoreapp2.2 -c Release -r rhel.7-x64 --self-contained false /p:MicrosoftNETPlatformLibrary=Microsoft.NETCore.App
===========================================================================
COMMANDS USED IN VIDEO:
$ sudo yum install scl-utils
$sudo yum install rh-dotnet22 -y
$ scl enable rh-dotnet22 bash
$ dotnet --info
INSTALL APACHE:
yum install httpd
service httpd start
DISABLE FIREWALL:
systemctl stop firewalld
systemctl disable firewalld
To access url from outside system Modify Program.cs
.UseUrls("* :5000/")
FINALLY CREATE PACKAGE LIKE THIS :
dotnet publish -f netcoreapp2.2 -c Release -r rhel.7-x64 --self-contained false /p:MicrosoftNETPlatformLibrary=Microsoft.NETCore.App
===========================================================================
COMMANDS TO ENABLE SUBSCRIPTION:
$sudo subscription-manager register
$ sudo subscription-manager list --available
$ sudo subscription-manager attach --pool=appropriate pool ID from the subscription
$ sudo subscription-manager repos --enable=rhel-7-server-dotnet-rpms
$ sudo subscription-manager repos --enable=rhel-7-workstation-dotnet-rpms
$ sudo subscription-manager repos --enable=rhel-7-hpc-node-dotnet-rpms
$ sudo subscription-manager list --consumed
I will also give commands to remove subscriptions in case you do some mistake .
you can clean the subscriptions refresh and enable repositories again.
sudo subscription-manager remove --all
sudo subscription-manager unregister
sudo subscription-manager clean
sudo subscription-manager register
sudo subscription-manager refresh
sudo subscription-manager attach --auto
sudo subscription-manager repos --enable rhel-7-server-extras-rpms
sudo subscription-manager repos --enable rhel-7-server-optional-rpms
sudo subscription-manager repos --enable rhel-server-rhscl-7-rpms
HOW TO Install GUI ON Red hat linux system
• Azure: Installing GUI ...

Опубликовано:

 

30 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1   
Далее
Deploy a .NET Core API with Docker (Step-by-Step)
36:17
Deploying DotNet Core to Linux | Blazor Deploy Linux
11:21
ХУДШИЕ ВЫБОРЫ в США
13:20
Просмотров 540 тыс.
Red Hat Quay  - Presentation and Demo
21:40
Просмотров 831
Linux New User Guide: 10 Things I Wish I Knew
23:31
Просмотров 473 тыс.
.Net 8 API Role Based Authorization
9:15
Просмотров 6 тыс.
How to Deploy ASP.NET Core 5/6 on LINUX | The Easy Way
32:17
The Tragedy of systemd
47:18
Просмотров 1,1 млн
Packaging and deploying .NET Core for Linux - Part 1
32:49