Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
netstat -antpLinuxで使用しているポートを見つけることができることを知っています。
netstat -antp
Rubyを使用して空きポートを見つけるにはどうすればよいですか? netstat -antp出力を実行して解析できることはわかっていますが、もっと簡単な解決策はありますか?
selenium-webdriverGemfile にある場合は、そのソケット ポーラーを使用できます。
selenium-webdriver
free_port = Selenium::WebDriver::PortProber.above(3000)