Linux Debian uses seven cow cloud storage to develop Golang programs. (1)

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Want to write some Golang program, temporarily not rent server.

Seven cattle were found to support golang development. Intend to try under:

My system is Debian. Windows should look something like this:

Previous experience in developing googleappengine. The seven Bulls also have similar command lines, but no interface.


You need to use the Qrsync command-line accessibility tool

Address: http://docs.qiniutek.com/v3/tools/qrsync/


Interestingly, this command-line tool was developed with Golang. So multiple operating systems are supported. Windows,linux,mac System.

a total of 3 files were extracted after the tool was decompressed: Qboxrsctl qrsb qrsync

1, the first to apply for seven cattle account, you can try 3 months. Create a profile based on your account number:

first set up a configuration file, such as called Conf.json, the contents are as follows:

{"Access_key": "Please apply your access key here", "Secret_key": "Dont Send your secret key to anyone", "bucket": "Bucket N Ame on Qiniu resource Storage "," Sync_dir ":" Local directory to Upload "," Debug_level ": 1}

Access_key,secret_key is configured for account assignment. Https://dev.qiniutek.com/account/keys

The bucket is the space name of the application (more puzzling) https://dev.qiniutek.com/buckets/

2, first of all to help set the domain name, otherwise it does not show: [new add domain name help]

3, the synchronization of the file directory, the execution of the command qrsync+ configuration file :

: ~/qbox$ qrsync./conf.json
Syncing/home/test/qbox = Golang ...
Progress File:/home/test/.qrsync/3o4-v4jo2xk4mxmiw7cdgg==.log
Sync done!

When there is Sync done! Description synchronization file succeeded

4, like I applied for a space go (no one uses it)

uploaded a index.html file, which can be accessed after synchronization: http://go.qiniudn.com/

5, suffering from the current API is not complete, can only grope across the river.

No research has been made at this time. Cond.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.