- Installer package: Yum Install package name
- Download package: wget Package URL
- Unzip the TAR package: TAR-ZXVF package name
- Compiling and installing the local package: Make
- View all open ports on-premises: NETSTAT-NLTP
- View the specified port and its process Id:netstat-ano | Find "Port"
- Count the number of connections established by the specified port: Netstat-ano | grep 6379 | Wc-l
- View the PID number of the program that is running: Ps-ef | grep process Name
- Force Delete directory and all files under it: RM-RF redis-3.2.8
- To view more information about a process on a port:SS -TANP| grep 6379
- Add the "&" symbol at the end of the command to let the command run in the background
- Shared Directory settings: Vi/etc/profile
- Once the shared directory settings are complete, update: Source/etc/profile
- Whether the Linux ports are listening properly: Curl localhost:8072
- Does Linux open a firewall: Systemctl status Firewalld
- When Linux starts, the firewall policy changes to OFF: Systemctl disable FIREWALLD
- Set the current system's Firewall service to stop: Systemctl stop Firewalld
Linux Centos Common Commands