将netcore打包好的程序,部署到CentOS系统中

 

  • 进入开发好的程序目录,执行打包命令,生成auth目录,并将打包好的目录上传到CentOS的home目录
 dotnet publish -o auth

 

  • 执行运行命令
 dotnet Howdy.Net6API.AuthenticationCenter.dll

  • 使用postman进行测试

 

注:此种方式,适合电源稳定,不断电场景,如经常断电,则服务会自动关闭

posted @ 2024-01-10 22:51  低调码农哥!  阅读(16)  评论(0编辑  收藏  举报