本文介绍了在DevOps部署后,在wwwroot上的访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我已使用Azure DevOps将.Net Core Web应用程序部署到Azure App Service.现在,当我尝试使用Kudu在'D:\ home \ site \ wwwroot'中创建文件时,它说:I've deployed a .Net Core web application to Azure App Service using Azure DevOps. Now, when I try to create file in 'D:\home\site\wwwroot' using Kudu it says:我注意到'D:\ home \ site \ wwwroot'目录中的权限与我使用发布配置文件部署的类似Web应用程序中的权限不同I've noticed that the persmissions on the 'D:\home\site\wwwroot' directory are different than in a similar web app that I deployed using Publish Profile有问题的应用程序上的Get-Acl结果:Get-Acl result on the problematic app:PS D:\home\site\wwwroot> Get-Acl "D:\home\site\wwwroot"Get-Acl "D:\home\site\wwwroot" Directory: D:\home\sitePath Owner Access---- ----- ------wwwroot IIS APPPOOL\luncher-dev NT AUTHORITY\SYSTEM Allow FullControl...在其他类似应用上获取Acl结果:Get-Acl result on other similar app:PS D:\home\site\wwwroot> Get-Acl "D:\home\site\wwwroot"Get-Acl "D:\home\site\wwwroot" Directory: D:\home\sitePath Owner Access---- ----- ------wwwroot BUILTIN\Administrators Everyone Allow DeleteSubdirectoriesAndFiles,... Azure DevOps的相应发布管道Corresponding Release pipeline from Azure DevOps如何使wwwroot目录可写?How can I make the wwwroot directory writable?推荐答案更改此APP设置键WEBSITE_RUN_FROM_PACKAGE = 1 to 0此设置使wwwroot成为只读文件系统.This setting makes wwwroot as a read-only file system.对于从程序包运行",当wwwroot文件夹变为只读时,将严格执行此操作With Run From Package, this is strictly enforced as the wwwroot folder becomes read-only 这篇关于在DevOps部署后,在wwwroot上的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-15 12:03