Windows服務(wù)器
Windows服務(wù)器上需要安裝相關(guān)的軟件,可通過圖形界面進(jìn)行下載和安裝
1、在服務(wù)器上安裝TntDrive軟件:
2、配置TntDrive
單擊“Add New Mapped Drive”,進(jìn)入到配置界面:
PS:配置時有以下幾個注意點
Storage Type : S3 Compatible Storage
Rest Endponit:s3.pek3a.qingstor.com
Access Key ID : ?API密鑰ID
Secret Access Key為API密鑰內(nèi)容
Amazon S3 Bucket為“QingStor的Bucket名稱”
配置完成后,即可使用“網(wǎng)盤”


Linux服務(wù)器
Linux服務(wù)器上需要安裝必要的運(yùn)行環(huán)境和軟件,具體步驟如下:
在服務(wù)器上安裝必要環(huán)境
1、如果你的操作系統(tǒng)是Ubuntu 14.04:
sudo apt-get install automake autotools-dev g++ git libcurl4-gnutls-dev libfuse-dev libssl-dev libxml2-dev make pkg-config
2、如果你的操作系統(tǒng)是Centos 7:
sudo yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel
安裝s3fs
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
./configure
make
sudo make install
配置
1、建立密鑰文件
echo your_bucket_name:your_key_id:your_key_secret > /etc/passwd
示范:
echo PRRIFCZPDSLJFPVEZHIL:MscunKWtmWJ02F6o1s3pYEWDvouUeHGn8QmVEoaF > /etc/passwd
2、設(shè)置訪問權(quán)限
chmod 640 /etc/passwd
chmod 600 /etc/passwd
3、創(chuàng)建掛載點
mkdir /tmp/s3fs
4、掛載目錄
s3fs owenpp /tmp/s3fs -o passwd_file=/etc/passwd -o url=http://s3.pek3a.qingstor.com
PS: 此范例中,筆者的bucket name為“owenpp”, 掛載目錄為"/tmp/s3fs"