stop cassandra server on mac os x

后端 未结 7 1174
走了就别回头了
走了就别回头了 2021-02-05 08:33

How do I stop cassandra server running on a single node in my mac os x? Cassandra script doesn\'t have -stop option. Only way other than restart the mac os x, was to do a \"ps\

7条回答
  •  無奈伤痛
    2021-02-05 09:05

    Another approach is to see which OS process has the Cassandra port open, like this:

    lsof -i :9160
    

    Sample output:

    COMMAND   PID  USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
    java    30253 aswan  214u  IPv4 0xffffff80190dcc20      0t0  TCP *:netlock1 (LISTEN)
    

    Then you can use "kill -9 [pid]" on that process.

提交回复
热议问题