Skip to main content

Posts

Showing posts with the label CentOS

What is Load average? and what's good load average for Linux servers?

If you're employing a Linux server, you're probably at home with the term load average/system load. By time to time measuring of the load average is helpful to understanding how your servers are performing; if overloaded, Whenever you would like to kill or optimize the processes which consumes higher amount of resource, or provide more and more resources to balance the workload. But how does one determine if your server has sufficient load capacity, and when do you have to be worried? Let's dive in and see. What is a load average? The load average is that the average system load on a Linux server for an outlined period of your time. In other words, it's the CPU demand of a server that features sum of the running and therefore the waiting threads. Typically, the highest or the uptime command will provide the load average of your server with output that appears like: These numbers are the averages of the system load over a period of 1, five, and quarter-hour. Before step...

Basic Commands for CentOS 7

Basic Configuration Query or System Locale localectl Display the Current Time and Date date timedatectl Sync Date and Time timedatectl Configure SSH /etc/ssh/ssh_config /etc/ssh/sshd_config Jobs And Services List all Services systemctl -at service ls /etc/systemd/system/*.service ls /usr/lib/systemd/system/*.service List Services that are Running systemctl -t service –state=active Start and Stop services. Replace <service> with the name of the service systemctl start <service> systemctl stop <service> Enable and Disable Services. Replace <service> with the name of the service systemctl enable <service> systemctl disable <service> Check Service Status. Replace <service> with the service name systemctl status <service>             <service> with the service name systemctl is-enabled <service> Configure Logs /etc/rsyslog.conf /etc/rsyslog.d/*.conf View Logs /var/log journalctl Find Files find Cr...