How to access Redis log file -


have redis setup ruby on ubuntu server, can't figure out how access log file. tutorial says should here:

/var/log/redis_6379.log 

but can't find /var/ folder

found with:

sudo tail /var/log/redis/redis-server.log -n 100 

so if setup more standard should be:

sudo tail /var/log/redis_6379.log -n 100 

this outputs last 100 lines of file.

where log file located in configs can access with:

redis-cli config * 

the log file may not shown using above. in case use

tail -f `less  /etc/redis/redis.conf | grep logfile|cut -d\  -f2` 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -