Check Listening Ports in Linux (Ports in use)

Image
  How to Check for Listening Ports in Linux (Ports in use) When troubleshooting network connectivity or application-specific issues, one of the first things to check should be what ports are actually in use on your system and which application is listening on a specific port. This article explains how to use the  netstat ,  ss  and  lsof  commands to find out which services are listening on which ports. The instructions are applicable for all Linux and Unix-based operating systems like macOS. What is Listening Port Network port is identified by its number, the associated IP address, and type of the communication protocol, such as TCP or UDP. Listening port is a network port on which an application or process listens on, acting as a communication endpoint. Each listening port can be open or closed (filtered) using a firewall. In general terms, an  open port  is a network port that accepts incoming packets from remote locations. You can’t have two s...

How To extend the tmfs file system size .

  

Issue Number 1 .

On one of my Linux Server, Oracle database was not running because of tmpfs . Oracle Team wants to extend the tmfs file system size from 2 GB to 4GB.




Solution: tmpfs is a RAMs temporary file system that is generally mounted on /dev/shm. To extend the tmfs   use the below steps :



  1.  Check The Size of tmps

# df -h /dev/shm/
Filesystem Size Used Avail Use% Mounted on
tmpfs      2.0G 148K 2.0G   1% /dev/shm

2.  Edit the /etc/fstab file. And Change the Size below 
Change the size as shown below :

tmpfs /dev/shm tmpfs size=4g 0 0

3. remount the file system using mount command

# mount -o remount tmpfs

Comments

Popular posts from this blog

Check Listening Ports in Linux (Ports in use)

What is Cyber Attacks ? And How many type of Cyber Attacks in 2022 .