Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
现在,我有一个 LAMP 并在 VPS (512M) 上很好地运行了一个 codeigniter 网站。我想在 Rails 上构建另一个站点。我该怎么办?有没有推荐的教程?恐怕记忆太紧了。因为我的vps现在只有大约256M内存!
您可以使用乘客运行。它将编译一个 apache 模块,然后您可以使用它来运行 Rails 网站。您还可以使用任何其他方法,例如 Unicorn。512M 的 RAM 不是很多,但对于较小的 Rails 应用程序来说应该足够了,特别是如果您稍微调整一下设置。我曾经有一个 512M VPS,但由于 VPS 内存不足,我偶尔会遇到崩溃,所以要小心这个。与 apache 相比,使用小型 VPS nginx 可能是更好的选择。