Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Nice tutorial, just one error/typo
sudo chown 600 /swapfile
should be
sudo chmod 600 /swapfile
In “Initial Server Setup with CentOS 7” you mention that you cover fail2ban in this tutorial. I see no mention of that here at all. Did you miss it or omit it for a reason?
When I try to run this command: firewall-cmd --permanent --add-service=http
I got: Error: INVALID_ZONE
How to fix this?
This is a good writeup! Someone asked us, so just to clarify a bit for any 'nix newcomers:
sudo sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab'
This is adding a line in /etc/fstab file to mount & use the newly created swap area at every boot. The command sh is basically copying the following into that file:
/swapfile none swap sw 0 0
You could manually edit that line (or others in the future) by using:
vi /etc/fstab
Hope that helps :) PS your comment editor is throwing me to the bottom of page footer when using code button (Chrome 39.0.2171.71)
I would love to get this all working with Cloudconfig but unfortunately it seems that cloudconfig isn’t working on centos7 at all (even the simplest things don’t work such as creating a new user).
Droplet is created, but thats it… no new user, no key imported, nothing… Any Hints on this? (BTW: belows settings works well on ubuntu)
#cloud-config
users:
- name: someuser
groups: sudo
sudo: ['ALL=(ALL) NOPASSWD:ALL']
ssh-authorized-keys:
- ssh-dss
AAABBBCCCDDD...
runcmd:
- sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin yes/' /etc/ssh/sshd_config
- sed -i -e '$aAllowUsers someuser' /etc/ssh/sshd_config
- service sshd restart
How about running “sudo yum update” every time, you get new droplet. Is it not recommended?
What is the CentOS 7.x alternative for fail2ban? I understand this program is only compatible with the old default firewall “iptables” shipped with 6.x and earlier.
Centos/RHEL 7 now uses chrony as the default daemon for NTP.
Chrony should be considered for all systems which are frequently suspended or otherwise intermittently disconnected and reconnected to a network. Mobile and virtual systems for example.
13. CONFIGURING NTP USING THE CHRONY SUITE - 13.1.2. Choosing Between NTP Daemons
Heads up in case you decide to change the default SSH port. IIRC, there is no need to specify the port number to firewalld if you change it correctly with semanage port -a -t ssh_port_t -p tcp 4444. You have to do this anyway on RHEL/CENTOS; then adding the ssh service to firewalld automagically adds both the default (22) and your new (4444) to the firewall rule.
What is the benefit of setting timezone and enable ntp? What should I set timezone for an Amsterdam droplet? Should I set the timezone to my local timezone?