{"id":586,"date":"2024-02-05T11:43:26","date_gmt":"2024-02-05T02:43:26","guid":{"rendered":"https:\/\/centos.ihavenomoney.co.kr\/?page_id=586"},"modified":"2024-04-08T17:20:14","modified_gmt":"2024-04-08T08:20:14","slug":"dotnet-%ec%84%a4%ec%b9%98","status":"publish","type":"page","link":"https:\/\/centos.ihavenomoney.co.kr\/?page_id=586","title":{"rendered":"dotnet 6.0 \uc124\uce58"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><strong>1.Microsoft \ud328\ud0a4\uc9c0 \ub9ac\ud3ec\uc9c0\ud1a0\ub9ac \ucd94\uac00<\/strong>:<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo rpm -Uvh https:\/\/packages.microsoft.com\/config\/centos\/7\/packages-microsoft-prod.rpm<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">1.1 8.0 \uc77c \uacbd\uc6b0<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo rpm -Uvh https:\/\/packages.microsoft.com\/config\/centos\/8\/packages-microsoft-prod.rpm<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. .NET SDK \uc124\uce58<\/strong>:<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo yum install dotnet-sdk-6.0<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.1 \ub610\ub294 .NET Runtime\ub9cc \ud544\uc694\ud55c \uacbd\uc6b0:<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo yum install aspnetcore-runtime-6.0<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. \uc124\uce58 \ud655\uc778<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">dotnet --version<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3.1 .NET SDK\uc758 \ubc84\uc804\uc744 \ucd9c\ub825<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" >dotnet --list-runtimes\n\nMicrosoft.AspNetCore.App 6.0.28 [\/usr\/share\/dotnet\/shared\/Microsoft.AspNetCore.App]\nMicrosoft.NETCore.App 6.0.28 [\/usr\/share\/dotnet\/shared\/Microsoft.NETCore.App]\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4 .package \uc608\uc2dc<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" >dotnet add package Pomelo.EntityFrameworkCore.MySql --version 6.0.0\ndotnet add package Microsoft.EntityFrameworkCore.Design --version 6.0.0<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5. publish \uc608\uc2dc<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" >dotnet publish --configuration Release\ndotnet \/var\/www\/helloworld\/bin\/Release\/net6.0-windows\/InMemoryCacheCore.dll<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">6. Kestrel \uc608\uc2dc<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" >sudo cat appsettings.json\n\n{\n  \"Logging\": {\n    \"LogLevel\": {\n      \"Default\": \"Information\",\n      \"Microsoft.AspNetCore\": \"Warning\"\n    }\n  },\n  \"Kestrel\": {\n    \"Endpoints\": {\n      \"Http\": {\n        \"Url\": \"http:\/\/***.143.21.175:50002\"\n      },\n      \"Https\": {\n       \"Url\": \"https:\/\/***.143.21.175:60020\"\n     }\n   }\n  },\n  \"AllowedHosts\": \"*\"\n}\n<\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.Microsoft \ud328\ud0a4\uc9c0 \ub9ac\ud3ec\uc9c0\ud1a0\ub9ac \ucd94\uac00: 1.1 8.0 \uc77c \uacbd\uc6b0 2. .NET SDK \uc124\uce58: 2.1 \ub610\ub294 .NET Runtime\ub9cc \ud544\uc694\ud55c \uacbd\uc6b0: 3. \uc124\uce58 \ud655\uc778 3.1 .NET SDK\uc758 \ubc84\uc804\uc744 \ucd9c\ub825 4 .package \uc608\uc2dc 5. publish \uc608\uc2dc 6. Kestrel \uc608\uc2dc<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-586","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=586"}],"version-history":[{"count":5,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/586\/revisions"}],"predecessor-version":[{"id":608,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/586\/revisions\/608"}],"wp:attachment":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}