[RUBY] [Cloud9] Address already in use [Solution]

Appearance of [Address already in use]

Web server: Puma library: Sinatra is in use on cloud9.

When I changed the contents of the rb file and tried to restart the server in the terminal,

$ ruby  ○○.rb -o $IP -p $PORT Against

〜〜〜〜〜〜〜〜〜   Address already in use Was returned. When I looked it up, I got an error that I couldn't open it because Sinatra was already running in another terminal.

However, another terminal is not open in the first place, what should I do?

[Solution] Immediately before, it seemed that the cause was that I closed the tab without closing the terminal while using cloud9. So

$ killall ruby When I finished everything with the kill command and started it again, it was solved successfully.

If you don't understand it, it's a kill command!

Recommended Posts

[Cloud9] Address already in use [Solution]
Use java.time in Jackson
`bind': Address already in use --bind (2) for 127.0.0.1:3000 (Errno :: EADDRINUSE) How to deal with the error
Invalid route name, already in use: Error resolution for'new_user_session'
Use OpenCV in Java
Microservices in Spring Cloud
Use MouseListener in Processing
Use images in Rails
What to do when Address already in use is displayed after executing rails s
Use PostgreSQL in Scala
Use PreparedStatement in Java
Solution for error with for db Cannot start service db: Ports are not available: listen tcp 0.0.0.0:5432: bind: address already in use in Docker
How to use Ubuntu Server 20.10 (Groovy Gorilla) in Sakura's cloud
Use ruby variables in javascript.
Use Redis Stream in Java
Use multiple checkboxes in Rails6!