Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Linux systems come with a default configuration that optimizes system performance based on average user workloads. However, specific tasks require more resources than others. For instance, running a large database server or a high-traffic web server necessitates a higher number of open files than usual. If the maximum open file limit isn’t increased to accommodate these demanding tasks, it may result in system errors or inefficiencies. This article will provide a comprehensive guide to increasing the open file limit in Linux, thereby optimizing system performance and maximizing productivity. What is the Open File Limit in Linux? In Linux, the ‘open…

Read More

Gzip compression are used for transferring data in compressed format to end users. This reduced website page load time and increases performance. If you are not sure that your site is running with gzip compression or not on Nginx server, Then you can use online gzip compression sites (Given at end of post) to confirm. If it’s already enabled with gzip you don’t need to do anything. But if gzip is not enabled, follow below steps. Read: How to enable Gzip Compression on Apache Server Enable Gzip in Nginx To enable gzip compression in Nginx server, Add the following content…

Read More

Latest Linux operating systems like CentOS/RedHat 7 and Fedora 21 has stopped using iptables and start now using dynamic firewall daemon firewalld which provides a dynamically managed firewall. It supports for network and zones to assign a level of trust to a network, connections, and interfaces. Firewalld also provides an interface for services or applications to add firewall rules directly. This article will help you to disable firewalld service and then install and use iptables on CentOS and Red Hat 7 Systems. Visit here to read more about firewalld. Disable Firewalld Service Before installing and using iptables services on CentOS…

Read More

One of the most important aspects of running a Linux server is ensuring that it is secure. This means protecting against unauthorized access and preventing potential attackers from exploiting vulnerabilities in your system. One way to enhance the security of your Linux server is to disable root SSH login and create a sudo user. In this article, we’ll provide a step-by-step guide for doing just that. Step 1: Create a Sudo User The first step in enhancing the security of your Linux server is to create a sudo user. This user will have elevated privileges and will be able to…

Read More

Apache is the most popular web server for Linux web servers. Most of the Linux system administrator’s start with Apache (httpd) web server from there learning phase, Even I also used Apache web server during learning. At the initial level the System administrator works with Apache. Most of them used default configuration but they don’t know how Apache works, how it handles incoming connection or multiple processes. Apache uses one of following MPM (Multi-Processing Module) for handling incoming requests and processes them. Both have their own working type. Below is some basic details about both MPM and there working. Prefork…

Read More

Today while deploying a war file (development site code) in Tomcat 8, I faced the following issue regarding upload limit size in Apache Tomcat server. So I decided to increase limit Tomcat upload file size limit to higher than the default. The default upload limit is set to 50 MB. Caused by: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException the request was rejected because its size (128382112) exceeds the configured maximum (104828800) Increasing Upload Size Limit You can increase the Tomcat server upload file size limit by the editing webapps/manager/WEB-INF/web.xml configuration file and searching for the below content. sudo nano /path/to/tomcat/webapps/manager/WEB-INF/web.xml Update the following section: <multipart-config>…

Read More

In the world of database management, ensuring the safety and integrity of your data is paramount. PostgreSQL, with its robust set of tools, offers powerful methods for backing up and restoring databases. This comprehensive guide aims to equip database administrators and developers with the knowledge needed to effectively dump and restore PostgreSQL databases, ensuring that data is securely backed up and can be restored when needed. Introduction PostgreSQL, an advanced open-source relational database management system, offers various methods for data backup and recovery. Among these, the pg_dump and pg_restore commands are widely used for their versatility and effectiveness in managing…

Read More

If you’ve spent any significant amount of time working in a Linux environment, you’re likely familiar with the SCP (Secure Copy) command. This handy tool enables you to securely transfer files between different hosts over a network using the SSH (Secure Shell) protocol. However, there might be instances where you encounter the error message: ‘bash: scp: command not found’. This article aims to help you troubleshoot this error, getting you back to work as soon as possible. What Causes the Error? The error message ‘bash: scp: command not found’ typically appears when the SCP command isn’t installed or accessible on…

Read More

This guide is designed to assist you in finding out the size of databases and tables on your PostgreSQL server, making it easier to manage your data effectively. To start, you’ll need to access your server via the command line and establish a connection with the PostgreSQL server. Here’s how you can determine the sizes of your databases and tables in PostgreSQL using straightforward commands. 1. Determine PostgreSQL Database Size Using SQL Queries To find out how much space your PostgreSQL database occupies, follow these steps: First, open a terminal and log into the PostgreSQL command interface: sudo -u postgres…

Read More

PostgreSQL is a powerful open-source relational database management system, known for its robustness and extensibility. As a database administrator or developer, one of the fundamental tasks you’ll often need to perform is listing databases and tables within PostgreSQL. In this step-by-step tutorial, we will walk you through the process of listing databases and tables using various methods and PostgreSQL commands. Listing Databases in PostgreSQL Open your terminal or command prompt. To access the PostgreSQL command-line interface (psql), type the following command, replacing your_username with your actual PostgreSQL username: psql -U your_username You will be prompted to enter your password. Once…

Read More