starting and stopping redis
Nicholas Saunders
saunders.nicholas at gmail.com
Fri Sep 25 20:48:08 UTC 2020
I was unable to start/stop redis using the "service" command below earlier:
root $
root $ /etc/init.d/redis-server stop
Stopping redis-server (via systemctl): redis-server.service.
root $
root $ service redis-server stop
root $
root $ service redis-server start
root $
root $ service redis-server stop
root $
root $ netstat -peanut | grep redis
root $
root $ service redis-server start
root $
root $ netstat -peanut | grep redis
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN
135 26496268 566336/redis-server
tcp6 0 0 ::1:6379 :::* LISTEN
135 26496269 566336/redis-server
root $
root $ service redis-server stop
root $
root $ netstat -peanut | grep redis
root $
but it seems to be working now. Is that odd to not be able to use the
service command?
I earlier tried systmctl as well, no luck at the time. I had to resort
to that first command. Perhaps using the init.d file (?) explicitly
connected up systemctl and service?
thanks,
Nick
More information about the ubuntu-users
mailing list