I started the server in a separate mode (-d), how can I connect to it so that I can kill the server).
You can see the ruby ββprocess id:
ps aux | grep ruby username 17731 0.1 1.6 3127008 67996 ?? S 2:00PM 0:01.42 /Users/username/.rvm/rubies/ruby-1.9.2-p180/bin/ruby script/rails s -d
and kill the process by id:
kill -9 17731
You can use pgrep ruby with kill -9 :
pgrep ruby
kill -9
kill -9 `pgrep ruby`
Another way:
kill -9 `cat tmp/pids/server.pid`
Source: https://habr.com/ru/post/897132/More articles:Delayed_job vs Appoxy SimpleWorker - ruby-on-railswhat is wrong with this byte-byte sequence generator? - javaRails 3: Real-time Server Load? - ruby-on-rails-3Implementing CDI in JSP - java-eeDoes Silverlight Styling make carriages disappear? - silverlight-4.0Split string at position in C # - stringWhy does HttpServlet in java implement serializable? - javaIs there a good test for compilers optimizing C ++? - c ++Does VS2008 C ++ optimizer sometimes produce slower code? - c ++Groovy: Difference with a.intersect (b) and b.intersect (a) - arraysAll Articles