TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you set up a VPS for personal projects?

7 点作者 mmwtsn大约 8 年前
I have manually followed DigitalOcean&#x27;s guides in the past with success[1][2]. Do you go beyond what the linked guides recommend or use a configuration management solution (e.g. Ansible)? I&#x27;m curious what, if anything, people are doing.<p>[1] https:&#x2F;&#x2F;www.digitalocean.com&#x2F;community&#x2F;tutorials&#x2F;initial-server-setup-with-ubuntu-14-04 [2] https:&#x2F;&#x2F;www.digitalocean.com&#x2F;community&#x2F;tutorials&#x2F;additional-recommended-steps-for-new-ubuntu-14-04-servers

4 条评论

mattbillenstein大约 8 年前
Bash scripts -- write scripts, check them into git, make sure they are idempotent and repeatable. Whenever you start something new, reuse them and fix whatever broke since the last time.<p>For testing the scripts, I&#x27;ve used virtualbox -- install the latest ubuntu server LTS into a VMinstall your ssh keys, dotfiles, etc but leave it otherwise bare-bones. Then, clone it (this takes just a few seconds) and do your testing inside the clone. When you need a clean environment, delete the clone and create a new one... Makes for fast iteration on testing that install scripts always work. Don&#x27;t configure anything by hand -- learn enough sed&#x2F;awk&#x2F;grep&#x2F;etc to modify what configs you need without invoking an editor.<p>If you need to scale this up to something real and in production on multiple systems -- then start learning Ansible &#x2F; Salt &#x2F; etc. Doing in those systems what you now have documented in bash scripts will be some work, but doable.
soulchild37大约 8 年前
I wrote Chef script (<a href="https:&#x2F;&#x2F;github.com&#x2F;cupnoodle&#x2F;rails-server-starter-pack" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cupnoodle&#x2F;rails-server-starter-pack</a>) for setting up Rails stack in VPS. Chef is similar to Ansible, I think it is quite handy.
newsat13大约 8 年前
Depends on what you mean by &quot;personal projects&quot;. I have never used the likes of ansible for personal projects. Are you thinking of installing rails, django or a lamp stack? Or setting up a VPN? Really depends on the use cases.
smt88大约 8 年前
Is there a reason you&#x27;re doing this stuff manually instead of using something like Elastic Beanstalk or Lambda on AWS (or the equivalents on Azure or Google)?