How to configure NTP and timezone on CentOS

How to configure NTP on CentOS 7

This will be pretty short tutorial about NTP. I will show you how to install and configure NTP on your server. What is NTP? NTP stands for Network Time Protocol and it keeps the server synchronised with correct time. Moreover you can synchronise all servers to one of your server to make sure that all […]

Yum - package manager

Yum package manager – tips and tricks

Yum is a package manager on CentOS. You will probably use it pretty often to install some software. In this article I will show you how to configure it, how to speed up packages installation and how to use something more than just yum install package-name. Create list of installed packages One of the first […]

Ansible variables

Ansible tutorial – part 4

In this part we will focus on Ansible variables. How to use them in playbooks, tasks and templates. What is the purpose of variables in Ansible? Imagine the situation where you have two servers. On each of them you need to install nginx. But each server requires a bit different configuration. Let’s take simplest case – […]

Ansible templates and handlers

Ansible tutorial – part 3

In this part we will use templates and handlers in Ansible. Ansible templates Templates are simple text files that we can use in Ansible. Most of the time you will use them to replace configuration files or place some documents on the server. Start from creating new directory inside our nginx role and name it […]

ansible-tasks

Ansible tutorial – part 2

This is part 2 of Ansible tutorial. In this part you will learn how to create playbooks, what are roles and tasks and how to use privileges escalation in Ansible. Playbooks Playbooks are essential feature of Ansible. In Playbooks we specify what and how our server will be configured and provisioned. Go to our directory that […]

Ansible tutorial - part 1

Ansible tutorial – part 1

What you will learn in part 1 of this tutorial? What is Ansible? How to install Ansible on Windows/Linux/MacOS? How to prepare test environment for Ansible? Intro to Inventory files. First connection to the server. First thing first – what is Ansible? Ansible is a simple yet powerful tool for configuration management and orchestration of your […]

Varnish on CentOS - full guide

Varnish – how to make websites fly?

In this episode we will make our websites fly with Varnish on CentOS. What exactly is Varnish? Varnish is an HTTP accelerator designed for websites with high traffic. It can speed up you website significantly, especially when you have more reads than writes. It’s designed to handle heavily loaded websites as well as APIs. It’s […]

How to configure SSH on CentOS

How to configure secure SSH on CentOS

Hello everyone! In this tutorial I will show you how to increase server security by tuning up configuration of SSH. Before you begin There are basically two requirements for this tutorial: You need to have working SSH keys. You need to be able to login to your server by using them. After completing this tutorial, SSH […]