Unzip file uploaded to Azure Websites

后端 未结 6 972
你的背包
你的背包 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:11

    One way is to upload the command line version of 7-Zip, it's a standalone .EXE file.

    Next, from the Azure Preview Portal Azure portal (2014), navigate to your Website, click on the console tile and type the unzip command:

    7za x thezipfile.zip
    

    An alternative to the portal is to use the console from Kudu. Insert "SCM" between your Website name and azurewebsites.net like this to launch Kudu:

    yoursitename.scm.azurewebsites.net
    

    One advantage in using Kudu is that you can upload files directly in the browser just by drag&dropping them.

    Pretty cool.

提交回复
热议问题