CentOS
-
Additional Recommended Steps for New CentOS 7 Servers
Introduction After setting up the bare minimum configuration for a new server, there are some additional steps that are highly recommended in most cases. In this guide, we’ll continue the configuration of our servers by tackling some recommended, but optional procedures. Prerequisites and Goals Before you start this guide, you should run through the CentOS 7 initial server setup guide. This is necessary in order to set up your user accounts, configure privilege elevation with sudo, and lock down SSH…
-
How To Create Temporary and Permanent Redirects with Nginx
Introduction HTTP redirection is way to point one domain or address to another. There are a few different kinds of redirects, each of which mean something different to the client browser. The two most common types are temporary redirects and permanent redirects. Temporary redirects (response status code 302 Found) are useful if a URL temporarily needs to be served from a different location. For example, if you are performing site maintenance, you may wish to use a temporary redirect from…
-
How To Install MySQL on CentOS 7
Introduction MySQL is an open-source database management system, commonly installed as part of the popular LEMP (Linux, Nginx, MySQL/MariaDB, PHP/Python/Perl) stack. It uses a relational database and SQL (Structured Query Language) to manage its data. CentOS 7 prefers MariaDB, a fork of MySQL managed by the original MySQL developers and designed as a replacement for MySQL. If you run yum install mysql on CentOS 7, it is MariaDB that is installed rather than MySQL. If you’re wondering about MySQL vs.…
-
How To Install Git on CentOS 7
Introduction Version control has become an indispensable tool in modern software development. Version control systems allow you to keep track of your software at the source level. You can track changes, revert to previous stages, and branch off from the base code to create alternative versions of files and directories. One of the most popular version control systems is git. Many projects maintain their files in a Git repository, and sites like GitHub, GitLab, and Bitbucket have made sharing and…
-
How To Install Suricata on CentOS 8 Stream
Introduction Suricata is a Network Security Monitoring (NSM) tool that uses sets of community created and user defined signatures (also referred to as rules) to examine and process network traffic. Suricata can generate log events, trigger alerts, and drop traffic when it detects suspicious packets or requests to any number of different services running on a server. By default Suricata works as a passive Intrusion Detection System (IDS) to scan for suspicious traffic on a server or network. It will…
-
How To Install and Use LinuxBrew on a Linux VPS
Status: Deprecated This article is deprecated and no longer maintained. Reason Homebrew now provides mainline support for Linux. See Instead This article may still be useful as a reference, but may not work or follow best practices. We strongly recommend using a recent article written for the operating system you are using. How to Install and Use Homebrew on Linux Intro LinuxBrew is a Linux-fork of the popular Mac OS X HomeBrew package manager. LinuxBrew is package-management-software, which enables installing…
-
How To Add and Delete Users on a CentOS 7 Server
Introduction When you first start using a fresh Linux server, adding and removing users is often one of the first things you’ll need to do. In this guide, you will learn how to create user accounts, assign sudo privileges, and delete users on a CentOS 7 server. Prerequisites To complete this tutorial, you will need: A CentOS 7 server with a non-root sudo-enabled user. If you are logged in as root instead, you can drop the sudo portion of all…
-
How To Install Java on CentOS, Rocky Linux, RHEL, and Fedora
Introduction This tutorial will show you how to install Java on current versions of RPM-based Linux distributions: Red Hat Enterprise Linux, CentOS, Fedora, and Rocky Linux. Java is a popular programming language and software platform that allows you to run many server-side applications. This tutorial covers installing the latest, default version of Java, as well as cherry-picking any older versions for installation, and switching between multiple versions in your environment as needed. Prerequisites Before you begin this guide, you should…
-
How To Automate Ruby On Rails Application Deployments Using Capistrano
Introduction If you are not already fed up with repeating the same mundane tasks to update your application servers to get your project online, you probably will be eventually The joy you feel whilst developing your project tends to take a usual hit when it comes to the boring bits of system administration (e.g. uploading your codebase, amending configurations, executing commands over and over again, etc.) But do not fear! Capistrano, the task-automation-tool, is here to help. In this DigitalOcean…