Linux Centos Common Commands

Source: Internet
Author: User

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

Linux Centos Common Commands

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.