我试图安装NodeJS在EC2上。
I am trying to setup NodeJS on EC2.
我跟着官方指南,这是成功的在我的本地机器。然而,当在EC2上编译源文件code,它永远结束(2小时计)。我猜想它是与CPU限制或暂停。
I followed the official guide and it was successful on my local machine. However when compile the source code on EC2, it takes forever to finish (2 hours and counting). I guess it has something to do with CPU limit or timeout.
我不熟悉Linux和makefile文件。有没有一种方法来绕过?谢谢你,
I am not familiar with Linux and makefiles. Is there a way to bypass that? Thanks,
我您使用的是微型实例猜测。是的,这将需要一段时间 - 微实例获得大量的CPU一小会儿,然后得到严格上限,如果你使用的CPU一段时间。编译的node.js是CPU密集型的。
I'm guessing you're using a micro instance. Yep, it's going to take a while - micro instances get lots of CPU for a short while, then get severely capped if you use CPU for a while. Compiling node.js is CPU intensive.
在光明的一面,你只需做一次。一旦它的完成,使一个AMI,您可以启动与尽可能多的服务器的node.js pre装,只要你喜欢。
On the bright side, you only have to do it once. Once it's finished, make an AMI and you can launch as many servers with node.js pre-installed as you like.