Unzip file uploaded to Azure Websites

后端 未结 6 959
你的背包
你的背包 2021-01-02 07:27

I uploaded a zip of my Wordpress site to an Azure website. When I try to FTP in with Winscp it works, but I can\'t use unzip transfer.zip in the command interface.

H

6条回答
  •  暖寄归人
    2021-01-02 08:22

    This is possible using the Azure portal's console.

    1. Navigate to portal.azure.com.
    2. Locate your website (Browse->Websites, click on name of the website you uploaded your ZIP file too)
    3. Scroll down until you see the "Console" button. By default, this is on the righthand side about three-quarters of the way to the bottom of the icon list (or "blade" in Azure portal parlance). The icon looks like this:

    Azure portal console icon

    1. Navigate to the directory you uploaded your ZIP to using the cd command, just as you would on a typical console or shell window.

    2. Execute unzip archive.zip where archive.zip is the name of your ZIP file.

    Note that as of today, the unzip command will not output any progress reports; it runs silently. So, if you have a large archive that takes some time unzip, it may appear as if the command has hung, but in fact it is working and you just need to wait.
    Update Sep 2018: The unzip command outputs its progress to the console, e.g.:

    Archive:  archive.zip
       creating: archive/
      inflating: archive/203439A9-33EE-480B-9151-80E72F7F2148_PPM01.xml  
       creating: archive/bin/
      inflating: archive/bin/some.dll
    

提交回复
热议问题