gpt4 book ai didi

php - 创建、配置 PHP Web 应用并将其部署到 Azure

转载 作者:行者123 更新时间:2023-12-02 23:32:48 26 4
gpt4 key购买 nike

所以最近我一直在尝试在 azure 上工作。我想制作一个 php 网站并将其连接到位于 azure 上的数据库。我正在关注这个教程。<强> https://azure.microsoft.com/en-us/documentation/articles/app-service-web-php-get-started/

我遇到了一个问题。每次我执行此命令 azure site create --git 我都会得到

Server failed to authenticate your request. Verify that certificate is valid and is associated with this subscription

最佳答案

以下是通过 git 在 Azure Web Apps Server 上部署 PHP 项目的步骤:

  • 1、登录Azure manage portal ,点击底部的“NEW”,选择“COMPUTE”=>“WEB APP”=>“QUICK CREATE”并在URL部分输入服务器名称,创建一个新的空Web应用程序。
    enter image description here

  • 2、点击左侧导航栏的“WEB APP”按钮,在这个仪表板中我们可以看到我们上面创建的网站,点击网站名称进入管理页面。

enter image description here

  • 3、在仪表板页面中,单击“快速浏览”栏中的“设置部署表单源代码控制”,选择“本地Git存储库”创建git存储库。现在在部署页面中,我们可以看到通过git部署项目的指南。

  • 4、在本地项目根目录下,运行以下命令进行部署,如页面所示:

enter image description here

此外,我们可以简单地使用FTP工具将项目上传到Azure服务器,请看这个简单的示例: http://blogs.technet.com/b/sams_blog/archive/2014/11/14/azure-websites-deploy-php-website-using-ftp.aspx

关于php - 创建、配置 PHP Web 应用并将其部署到 Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38027360/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com