CentOS 7安装Azcopy

Posted hengzi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS 7安装Azcopy相关的知识,希望对你有一定的参考价值。

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:

[[email protected] ~]# 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

上传成功。

 

以上是关于CentOS 7安装Azcopy的主要内容,如果未能解决你的问题,请参考以下文章

版本管理 GitLab 的安装及管理 (CentOS 7)

CentOS yum 命令出现 [Errno 14] curl#6 - &quot;Couldn&#39;t resolve host ...&quot; 的解决方法(代码片段

CentOS 7.6 搭建Gitlab教程

centos 7部署并汉化Gitlab及基础操作

续:纠正:ubuntu7.04可以安装,而且完美的安装 ! for《Oracle-10.2.0.1,打补丁10.2.0.5:在 debian 版本4不含4以上,及 ubuntu 7.04不含(代码片段

如何在 CentOS 7 上安装 Docker