标签:type UI 文件 sign file .net sage tco mit
Azcopy是Azure存储一个非常好用的工具。本文将介绍如何在CentOS7下安装的过程。
1 安装.net core 1.1.1版本
.net core 1.1.1的下载信息在github上:
https://github.com/dotnet/core/blob/master/release-notes/download-archives/1.1.1-download.md
在下载安装前,先装两个库:
yum install libunwind libicu
然后下载.net core的包:
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=843420
下载后解压到制定目录:
mkdir -p /opt/dotnet && tar zxf dotnet.tar.gz -C /opt/dotnet
2 安装azcopy
下载azcopy的包:
wget -O azcopy.tar.gz https://aka.ms/downloadazcopyprlinux
解压:
tar -xf azcopy.tar.gz
安装:
./install.sh
安装完成后,可以运行azcopy:
[root@hwmig01 ~]# azcopy ------------------------------------------------------------------------------ azcopy 6.0.0-netcorepreview Copyright (c) 2017 Microsoft Corp. All Rights Reserved. ------------------------------------------------------------------------------ # azcopy is designed for high-performance uploading, downloading, and copying data to and from Microsoft Azure Blob, and File storage. # Command Line Usage: azcopy --source <source> --destination <destination> [options] # Options: [--source-key] [--dest-key] [--source-sas] [--dest-sas] [--verbose] [--resume] [--config-file] [--quiet] [--parallel-level] [--source-type] [--dest-type] [--recursive] [--include] [--check-md5] [--dry-run] [--preserve-last-modified-time] [--exclude-newer] [--exclude-older] [--sync-copy] [--set-content-type] [--blob-type] [--delimiter] [--include-snapshot] ------------------------------------------------------------------------------ For azcopy command-line help, type one of the following commands: # Detailed command-line help for azcopy --- azcopy --help # Detailed help for any azcopy option --- azcopy --help source-key # Command line samples --- azcopy --help sample You can learn more about azcopy at http://aka.ms/azcopy. ------------------------------------------------------------------------------
上传文件测试:
azcopy --source ./ --destination https://testfg.blob.core.chinacloudapi.cn/file --dest-key xxxxxxx
[2017/10/18 07:43:58] Transfer summary: ----------------- Total files transferred: 16 Transfer successfully: 16 Transfer skipped: 0 Transfer failed: 0 Elapsed time: 00.00:00:10
上传成功。
标签:type UI 文件 sign file .net sage tco mit
原文地址:http://www.cnblogs.com/hengwei/p/7686992.html