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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Which OS do you use for hosting web apps?

3 点作者 redxblood将近 11 年前
I'm looking into options, so i wanna hear what other people use.I have the files for a web application, i only need the server now. I've heard Ubuntu is good, but some say Xubuntu, others windows server. I never used Linux, so this is a good time for me to learn if neccesary. Ideas?

6 条评论

rahimnathwani将近 11 年前
First decide whether you want to rent a virtual server or you want to use a PaaS like Heroku. If the latter, then OS is irrelevant, so I&#x27;m assuming you&#x27;ve decided on a virtual server.<p>Use a flavour of Linux. I recommend Debian. Others will recommend CentOS. There are other options, but probably stick with one of these two.<p>What are you using for your development environment? It might be good to have a local VM of the same distro, even if you&#x27;re not ready to switch to linux on the desktop. Otherwise you might push stuff to live which break on linux, even if they work on, say, Windows or Mac. I&#x27;m thinking of stuff like whether filenames are case sensitive, and the default encoding of files read into Unicode objects (Python can behave differently on Windows and Linux).<p>Of course, this is all assuming you&#x27;re using something cross-platform, and not a Windows-specific dev stack.
LarryMade2将近 11 年前
It sounds like you are not really a systems expert... so my recommendation would be Ubuntu, mainly because of the answers you will be able to find via Google compared to CentOS.<p>CentOS is a remix of Redhat&#x27;s server, so support is generally secondhand and also a lot of the community are pretty sysadmin savvy, so you may get lost in the terse explanations and lack of hand holding.<p>On Ubuntu you get a wider audience, a lot of &quot;how to&quot; guides as well as a lot of &quot;what do I do now&quot; discussion forums to glean from. As to the flavor of ubuntu, you will only be doing a few things in the GUI (copy files, maybe a backup program, etc.) most of the meat is accessing and editing the config files via a terminal. I Would go with xubuntu as the GUI is not as resource intensive as the others.
ericcope将近 11 年前
I&#x27;ve read that CentOS is the best Linux distribution for public facing applications because they take security very seriously. If you choose Ubuntu, use the LTS version so its not moving so frequently but still maintained. I use CentOS and Ubuntu for my web apps. I don&#x27;t use Windows because my apps are all LAMP based and switching to Windows offers no benefit. If your Application is .Net based, you pretty much are required to use Windows (unless is Mono compatible)...
CyberFonic将近 11 年前
I use Google AppEngine for hosting WebApps. Lets me focus on the applications and the environment is robust, scalable, etc. You can run the AppEngine SDK on Mac, Linux and Windows so you can use whatever environment you are already comfortable with.<p>If you really want to get down to the hardware, consider CoreOS.
ryanicle将近 11 年前
I&#x27;ve been using CentOS for years. It has served pretty well for my needs.
hashtag将近 11 年前
For a long time, was using CentOS. In recent years, Ubuntu.