Иногда бывает ситуация когда dev-сервер по какой-либо причине не закрылся и висит в процессах, занимая порт.
Это может быть из-за падения IDE или просто сам забыл погасить и закрыл терминал.
Для таких случаев я набросал простую функцию с командой:
kill_on_port() {
port=$(lsof -t -i:$1)
echo "KILL PROCESS:" $port
sudo kill -9 $port
}
alias killonport="kill_on_port $@"
Код поместить в ~/.bashrc и рестартнуть систему.
Если во время старта dev-сервера получаете ошибку что порт уже занят, просто выполните команду, подставив свой порт.
Bash
kill_on_port 8000
Скорее всего бесполезно, если другой процесс назначен на перезапуск вашего dev-сервера в случае падения.
Имя команды можете изменить на любое другое.
#linux
🌍 EDGE MARKET FEATURED EVENT
Will the MV Hondius cruise ship be sunk after evacuation?
Real world events are becoming tradable intelligence markets.
Follow live sentiment, market positioning, and community forecasting in real time on EdgeMarket.
⚡ AI Verified Markets
⚡ Decentralized Forecasting
⚡ Real Time Event Sentiment
⚡ Web3 Prediction Infrastructure
📊 Event Link:
https://edgemarket.ai/bnb/social-media/will-the-mv-hondius-cruise-ship-be-sunk-after-evacuation/statistics/6a02f01be789807ba8aa0b55
#EdgeMarket#PredictionMarkets#Web3#Crypto#SIGNAL#GlobalEvents#Forecasting
🚀 Binance Wallet Introduces Prediction Markets for Real-World Outcomes
Binance Wallet announced on X the introduction of Prediction Markets, a new feature provided by Predictdotfun. This service allows users to take positions on various real-world outcomes, ranging from cryptocurrency trends to global events. The platform aims to simplify the process by eliminating the need for complicated wallet setups and gas fees, making it more accessible to users.
The Prediction Markets feature is designed to cater to a wide audience, offering opportunities to engage with real-world events in a straightforward manner. By removing technical barriers such as wallet configurations and transaction fees, Binance Wallet seeks to enhance user experience and broaden participation. However, it is important to note that this service is available only in selected regions, which may limit access for some users.
This initiative reflects Binance Wallet's ongoing efforts to innovate and expand its offerings in the digital asset space. By integrating Prediction Markets, the platform provides users with a unique way to interact with and speculate on real-world events, potentially attracting a diverse range of participants interested in both cryptocurrency and global developments. As the service rolls out, users in eligible regions can explore this new feature and engage with the dynamic world of prediction markets.
#BinanceWallet#PredictionMarkets#Cryptocurrency#GlobalEvents#DigitalAssets#Fintech#Blockchain#CryptoTrading#UserExperience#Innovation