Build Golang and Redis environments on Raspberry Pi

Source: Internet
Author: User

Today I turned over the old data and found something. When the company's servers were not in place (startups had no way).

Talking about the server, a colleague took out his raspberry Pi.

I think, I can do it. Go would have supported multiple platforms. Redis is written in C and should not be a problem.

Finally, although the middle walk a little detour, but fortunately, can run up.

Golang:

1. Download the 1.4.2 source package from the official website. Do not download directly from GitHub or use the 1.5 version of the source code. Both of these will be problematic on pi.

2. Execute the following command.

[Email protected] ~/go1.4.2/src $ sudo./all.bash# Building C Bootstrap tool.cmd/dist
Then there will be "# Building packages and commands for Linux/arm."

Then the test will be done, the direct appearance of "All TESTS PASSED" means you're done.


Redis:

I download the source code from the official website.  Redis is still the same, unzip, make. But in the test link will be reported a little bit of cluter error.

But I do not use it temporarily, do not affect the use, regardless. But it really takes a long time to compile Redis on pi, much slower than on a PC.


Finally the environment is put up, and really ran a period of time, haha. I heard that the next-door lab uses PI to cluster the system, so it does seem to be feasible.

blog:http://blog.csdn.net/xcl168




Build Golang and Redis environments on Raspberry Pi

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.