centos 7.x
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo 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'
微软
sudo yum update
sudo yum install libunwind libicu
sudo yum install dotnet-sdk-2.1.4
守护进程(Supervisor)
Supervisor不是唯一的 但是微软推荐的
我是参照这篇文章 成功的
http://blog.csdn.net/u010584641/article/details/60467644
安装 nginx
yum install nginx
创建服务启动
systemctl enable nginx.service
直接启动后台服务
先写一个服务配置
[Unit] Description=SpiderWeb [Service] ExecStart=/usr/bin/dotnet /*/demo.dll --server.urls http://*:5000 ExecReload=/usr/bin/dotnet /*/demo.dll restart ExecStop=/usr/bin/dotnet /*/demo.dll stop [Install] WantedBy=default.target