search
HomeOperation and MaintenanceMac OSCheck the port usage on mac and end the process

Check the port usage on mac and end the process

May 11, 2020 pm 05:15 PM
macportprocess

Check the port usage on mac and end the process

Check port occupancy command

sudo lsof -i :9000

After the colon is the port number you need to check.

Check the port usage on mac and end the process

End the process occupying the current port number

There is a column named PID in the header. This column indicates that the current port number is occupied. Port process.

sudo kill -9 27374

The above is the detailed content of Check the port usage on mac and end the process. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:博客园. If there is any infringement, please contact admin@php.cn delete
Understanding the Current macOS: A Concise GuideUnderstanding the Current macOS: A Concise GuideApr 13, 2025 am 12:02 AM

macOSSonoma is the latest operating system version released by Apple in 2023. 1. It enhances the user experience through new features such as desktop widgets. 2. Rely on the SwiftUI framework to implement these functions. 3. The basic usage includes adding widgets. 4. Advanced usage such as using Automator to create workflows. 5. Common error handling includes checking system resources. 6. Performance optimization is recommended to clean the cache regularly.

How to open macos terminalHow to open macos terminalApr 12, 2025 pm 05:39 PM

Open a file in a macOS terminal: Open the terminal to navigate to the file directory: cd ~/Desktop Use open command: open test.txtOther options: Use the -a option to specify that a specific application uses the -R option to display files only in Finder

How to take screenshots of macosHow to take screenshots of macosApr 12, 2025 pm 05:36 PM

There are four screenshot methods on macOS: shortcut keys, touch bars, preview apps, and third-party apps. After the screenshot, the image will be automatically saved to PNG format on the desktop, and you can adjust the format, delay, save position, and floating thumbnail settings through System Preferences.

How to record macos screenHow to record macos screenApr 12, 2025 pm 05:33 PM

macOS has a built-in "Screen Recording" application that can be used to record screen videos. Steps: 1. Start the application; 2. Select the recording range (the entire screen or a specific application); 3. Enable/disable the microphone; 4. Click the "Record" button; 5. Click the "Stop" button to complete. Save the recording file in .mov format in the "Movies" folder.

How to open a terminal for macosHow to open a terminal for macosApr 12, 2025 pm 05:30 PM

The following five methods can be used to open a macOS terminal: Use Spotlight Search through application folders Use Launchpad to use shortcut keys Command Shift U through terminal menus

How to view the system name of macosHow to view the system name of macosApr 12, 2025 pm 05:24 PM

How to view system name in macOS: 1. Click the Apple menu; 2. Select "About Native"; 3. The "Device Name" field displayed in the "Overview" tab is the system name. System name usage: identify Mac, network settings, command line, backup. To change the system name: 1. Access About Native Machine; 2. Click the "Name" field; 3. Enter a new name; 4. Click "Save".

How to install fonts for macosHow to install fonts for macosApr 12, 2025 pm 05:21 PM

Steps to install fonts in macOS: Download the font file from a reliable source. Use the font preview program or terminal to install it into the system font folder (the sudo command is required to share it by users). Verify the installation in Font Book. Select the installed font to use in the application.

Who developed mac osWho developed mac osApr 12, 2025 pm 05:15 PM

The developer of macOS is Apple, which features Unix kernel, ease of use, a rich application ecosystem, seamless integration with Apple devices, and excellent performance. As of this stage, the latest version of macOS is macOS Ventura.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.