There are two ways to invoke sar. sar followed by an option (without specifying a saXX data file). This will look for the current day’s saXX data file and report the performance data that was recorded until that point for the current day. sar followed by an option, and additionally specifying a saXX data file …
Tag: CentOS
Jun 27 2019
Generate CPU, Memory and I/O report using SAR command
SAR stands for System Activity Report, as its name suggest sar command is used to collect,report & save CPU, Memory, I/O usage in Unix like operating system. SAR command produce the reports on the fly and can also save the reports in the log files as well. In this article we will discuss different examples …
Jun 18 2018
How to Install and Configure GitLab on CentOS 7
Gitlab is an open source, powerful, robust, scalable, secure, as well as efficient software development and collaboration platform for all stages of the DevOps lifecycle. It allows you to plan your development process; code, and verify; package software, and release it with an in-built continuous delivery feature; automate configurations management, and monitor software performance. It …
Jan 19 2018
How to Install PHP 7 in CentOS 7
The CentOS 7 official software repositories have PHP 5.4 that is reached end of life and no longer actively maintained by the developers. Thus you need a newer PHP 7 on your CentOS server. The commands below will help you install PHP 7 on CentOS. All of them are executed as root account or with …
Nov 15 2017
Fail2ban installation and configuration on CentOS
In this article I’ll describe how to protect Asterisk from hacking attempts with Fail2ban in CentOS Linux. Fail2Ban is a standard Linux tool used to scan log files and then block IP’s found in those log files using iptables. Fail2ban depends completely on the application (in this case Asterisk) to detect any intrusion/failure and log …
Nov 06 2017
Enable Apache event MPM with php-fpm
Starting from version 2.4 Apache offers 3 MPM (Multi-processing Module) we can choose from, depending on your needs. The prefork MPM uses multiple child processes without threading. Each process handles one connection at a time without creating separate threads for each. Without going into too much detail, we can say that you will want to …
Nov 02 2017
How To Configure Firewall on CentOS 7
FireSince CentOS 7 Firewalld is available by default on servers as a complete firewall solution. This guide will cover the basics of configuration and management using firewall-cmd administrative tool (if you’d rather use iptables with CentOS, follow this guide). Be sociable 🙂 Share!
Nov 02 2017
How To Migrate from FirewallD to Iptables on CentOS 7
Like most other Linux distributions, CentOS 7 uses the netfilter framework inside the Linux kernel in order to access packets that flow through the network stack. This provides the necessary interface to inspect and manipulate packets in order to implement a firewall system. Most distributions use the iptables firewall, which uses the netfilter hooks to …
Feb 06 2017
Configure logrotate for Asterisk logfiles on CentOS
logrotate is an utility specially designed for ease rotation of large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large. Normally, logrotate is run as a daily cron job. By default it lacks the …
Apr 15 2016
Cloned Hyper-V CentOS6 Server error “device eth0 does not seem to be present, delaying initialization”
In order to have 3 identical nodes for my MariaDB Galera cluster, I cloned a hyper-v install of CentOS6 and after firing up the clone and trying to start networking received the error: “device eth0 does not seem to be present, delaying initialization” We need to get the list of current eth devices:
1 2 |
# ls /sys/class/net eth1 lo |
Be …
- 1
- 2