I’ve used CentOS for quite a few years and have always been extremely happy with how solid and reliable it has been. However of late, I’ve felt that it’s (or at least my version 6.6) lagging in terms of latest software. So am thinking about reformatting the server with a new OS.
Which of the three do you recommend and if possible, why?
CentOS needed to be version 7+ to run Docker, so if you’re trying to move off of an install running on 6.6 I’d suggest you try CentOS 7.1 first, because CentOS is what your organization knows (if that’s true; if it’s not true, disregard this whole sentence).
If you are okay with changing the disto to debian-based, I’m going to suggest Ubuntu LTS because that’s what most Discourse installs are on.
Like riking says, Ubuntu LTS x64 is the default, so unless you have very strong reasons to do otherwise, I’d follow that recommendation.
There are many side projects that can give you an excuse to toy around with exciting new platforms, but I don’t think Discourse - a (ideally) always-on community engine - is it.
I should mention there are other non-Discourse sites on the server too, hence not automatically choosing Ubuntu.
I’m leaning towards CentOS 7 as it’s what I know and all the years we’ve been using CentOS it has been rock solid. I am a little concerned about Ubuntu as I keep hearing negative remarks about it (using more cpu/resources, security, bugs, etc). Most people I talk to in dedicated server hosting generally tend to recommend CentOS.
However I am still open to Ubuntu - particularly as the Discourse team (and other smart people like DHH/Basecamp) use it, making me think it can’t be that bad then!
If you are looking at running openstack, ubuntu is a good choice. If you are fond of the Red Hat manner of doing things, Fedora 22 is a good choice. That they just reworked their package management system to dnf as opposed to yum is annoying. I like Linux, almost any of them. The only “caveat” is package management and the freshness of their respective repos. Centos sort of puts me in mind of Debian, unless you tie it into a bunch of current repos and mess with setting priorities. Fedora obviously stays ahead of the pack but now you have to issue dnf instead of yum to work with software installs. That said, I agree with @codinghorror in that Debian ships with versions that are already out of date before you even get it installed.
Just taken out a new server to play with (and to transfer the sites onto before reformatting the old one and transferring them back to it).
First impressions of Ubuntu not good, tried to set the hostname with hostnamectl set-hostname but got some odd results:
root@rock ~ # hostnamectl set-hostname rock.newserver.com
root@rock ~ # dnsdomainname
dnsdomainname: Name or service not known
root@rock ~ # hostname -f
hostname: Name or service not known
root@rock ~ # uname -n
rock.newserver.com
Looks to me like hostnamectl updates /etc/hostname and sends a D-Bus signal. hostnamectl --static should equal hostname. According to the manpage, hostname -f == hostname --fqdn == dnshostname.
The FQDN (Fully Qualified Domain Name) of the system is the name that the resolver(3)
returns for the host name, such as, ursula.example.com. It is usually the hostname
followed by the DNS domain name (the part after the first dot). You can check the
FQDN using hostname --fqdn or the domain name using dnsdomainname.
The recommended method of setting the FQDN is to make the hostname be an alias for
the fully qualified name using /etc/hosts, DNS, or NIS. For example, if the hostname
was "ursula", one might have a line in /etc/hosts which reads
127.0.1.1 ursula.example.com ursula
I guess you want to put a record like that in /etc/hosts?
Just a quick update to this thread - I ended up going with CentOS 7 as it just felt right to me.
They take a little getting used to, but I really like systemctl and FirewallD which was actually a breeze to set up (never really got my head around iptables). I am no longer having problems with Docker dropping connection to the internet now either