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