目录
一、部署
按官网资料安装
rpm --import https://packages.microsoft.com/keys/microsoft.asc
sh -c 'echo -e "[packages-microsoft-com-prod]
name=packages-microsoft-com-prod
baseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/dotnetdev.repo'
yum update
安装依赖
yum -y install libunwind libicu
安装sdk 2.0环境
yum install dotnet-sdk-2.0.0
创建工作目录并上传代码
touch /mnt/app
scp或git app.git
启动.net
cd /mnt/app
dotnet test.dll
curl测试
curl http://localhost:5000