I can do start bench using bench start.
But I need to stop server. How is it possible?
If the process is still running then you will need to kill the process using kill -9 pid
command.
To find the pid
use
lsof -i :your_bench_port
command
Thanks,
makarand
Now showing
12:42:31 system | redis_socketio.1 started (pid=12720)
12:42:31 redis_socketio.1 | 12726:M 30 Jan 12:42:31.051 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:42:31 redis_socketio.1 | 12726:M 30 Jan 12:42:31.054 # Creating Server TCP listening socket 127.0.0.1:12000: bind: Address already in use
12:42:31 system | redis_socketio.1 stopped (rc=1)
12:42:31 system | watch.1 started (pid=12728)
12:42:31 system | redis_queue.1 started (pid=12730)
12:42:31 redis_queue.1 | 12733:M 30 Jan 12:42:31.062 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:42:31 redis_queue.1 | 12733:M 30 Jan 12:42:31.062 # Creating Server TCP listening socket 127.0.0.1:11000: bind: Address already in use
12:42:31 system | redis_queue.1 stopped (rc=1)
12:42:31 system | worker_long.1 started (pid=12729)
12:42:31 system | web.1 started (pid=12732)
12:42:31 system | schedule.1 started (pid=12734)
12:42:31 system | worker_default.1 started (pid=12739)
12:42:31 system | redis_cache.1 started (pid=12741)
12:42:31 redis_cache.1 | 12749:M 30 Jan 12:42:31.086 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:42:31 redis_cache.1 | 12749:M 30 Jan 12:42:31.086 # Creating Server TCP listening socket 127.0.0.1:13000: bind: Address already in use
12:42:31 system | redis_cache.1 stopped (rc=1)
12:42:31 system | socketio.1 started (pid=12740)
12:42:31 system | worker_short.1 started (pid=12746)
12:42:31 system | sending SIGTERM to worker_long.1 (pid 12729)
12:42:31 system | sending SIGTERM to watch.1 (pid 12728)
12:42:31 system | sending SIGTERM to web.1 (pid 12732)
12:42:31 system | sending SIGTERM to schedule.1 (pid 12734)
12:42:31 system | sending SIGTERM to worker_default.1 (pid 12739)
12:42:31 system | sending SIGTERM to socketio.1 (pid 12740)
12:42:31 system | sending SIGTERM to worker_short.1 (pid 12746)
12:42:31 system | worker_short.1 stopped (rc=-15)
12:42:31 system | worker_long.1 stopped (rc=-15)
12:42:31 system | web.1 stopped (rc=-15)
12:42:31 system | schedule.1 stopped (rc=-15)
12:42:31 system | socketio.1 stopped (rc=-15)
12:42:31 system | worker_default.1 stopped (rc=-15)
12:42:31 system | watch.1 stopped (rc=-15)
You have to kill the process on port 12000, 11000, 13000. You can use the following commands
To kill a process on specific port (8000):
sudo lsof -t -i tcp:8000 -s tcp:listen | sudo xargs kill
One more solution is to restart your machine.