02.【基础】sdk和runtime区别及让你一睹为快使用CLI在CentOS上快速搭建Console,WebApi,MVC三大应用模型


提示:以下是本篇文章正文内容,下面案例可供参考

一、需要安装的软件

  1. 虚拟机安装CentOS系统 (Centos7)

  2. Xshell

link CentOS 习惯的问题,用习惯还是很便捷的。。。

  1. Filezilla FTP
    (文件的 上传/下载)

二、.net core 安装包的选择

  1. .net core Runtime【跑netcore 程序的】 (CoreCLR)
    .net core SDK (开发工具包 【runtime(jre) + Rolysn(编译器) + (FCL) + netCore CLI】) 【给程序员使用的】

    CLI => MSbuild

jdk ,jre

三、一睹为快之使用CLI在 CentOS上进行开发

1.CLI

Console程序

MVC 程序

WebApi程序

[root@jstw2u93qc2egg mywebapi]# dotnet run
Using launch settings from /data/netcore-dk/mywebapi/Properties/launchSettings.json…
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
User profile is available. Using ‘/root/.aspnet/DataProtection-Keys’ as key repository; keys will not be encrypted at rest.
warn: Microsoft.AspNetCore.Server.Kestrel[0]
Unable to bind to https://localhost:5001 on the IPv6 loopback interface: ‘Cannot assign requested address’.
warn: Microsoft.AspNetCore.Server.Kestrel[0]
Unable to bind to http://localhost:5000 on the IPv6 loopback interface: ‘Cannot assign requested address’.
Hosting environment: Development
Content root path: /data/netcore-dk/mywebapi
Now listening on: https://localhost:5001
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.

如何将 locahost 改成 0.0.0.0 。

  1. 通过VS开发工具安装

    有哪些AppModel


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

啸啸说

你的鼓励将是我创作的最大力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值