Check port occupancy command
sudo lsof -i :9000
After the colon is the port number you need to check.
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!

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.

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

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.

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.

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 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".

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.

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.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

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
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
Visual web development tools

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.