BASH_SRV Telegram 101
🔄 Как узнать, какой процесс держит порт в Linux?

Часто бывает, что нужный порт уже занят, и надо быстро найти, кто его "захватил". Используем lsof и ss.

📌 Вариант 1 — через lsof:


lsof -i :<порт>


🔹 Пример:


lsof -i :80



📌 Вариант 2 — через ss:


ss -tuln | grep :<порт>


🔹 Пример:


ss -tuln | grep :443



🧠 А чтобы сразу получить PID:


fuser <порт>/tcp


🔹 Пример:


fuser 22/tcp


🔥 Идеально подходит, чтобы выяснить, что мешает стартовать nginx, apache, sshd и т.д.

👉@bash_srv
👍81



tgoop.com/bash_srv/101
Create:
Last Update:

🔄 Как узнать, какой процесс держит порт в Linux?

Часто бывает, что нужный порт уже занят, и надо быстро найти, кто его "захватил". Используем lsof и ss.

📌 Вариант 1 — через lsof:


lsof -i :<порт>


🔹 Пример:


lsof -i :80



📌 Вариант 2 — через ss:


ss -tuln | grep :<порт>


🔹 Пример:


ss -tuln | grep :443



🧠 А чтобы сразу получить PID:


fuser <порт>/tcp


🔹 Пример:


fuser 22/tcp


🔥 Идеально подходит, чтобы выяснить, что мешает стартовать nginx, apache, sshd и т.д.

👉@bash_srv

BY Bash Советы




Share with your friend now:
tgoop.com/bash_srv/101

View MORE
Open in Telegram


Telegram News

Date: |

As the broader market downturn continues, yelling online has become the crypto trader’s latest coping mechanism after the rise of Goblintown Ethereum NFTs at the end of May and beginning of June, where holders made incoherent groaning sounds and role-played as urine-loving goblin creatures in late-night Twitter Spaces. It’s yet another bloodbath on Satoshi Street. As of press time, Bitcoin (BTC) and the broader cryptocurrency market have corrected another 10 percent amid a massive sell-off. Ethereum (EHT) is down a staggering 15 percent moving close to $1,000, down more than 42 percent on the weekly chart. Your posting frequency depends on the topic of your channel. If you have a news channel, it’s OK to publish new content every day (or even every hour). For other industries, stick with 2-3 large posts a week. Hui said the messages, which included urging the disruption of airport operations, were attempts to incite followers to make use of poisonous, corrosive or flammable substances to vandalize police vehicles, and also called on others to make weapons to harm police. The public channel had more than 109,000 subscribers, Judge Hui said. Ng had the power to remove or amend the messages in the channel, but he “allowed them to exist.”
from us


Telegram Bash Советы
FROM American