Redis process monitoring¶
Redis process monitoring involves verifying that the server is running and accessible on the network.^[600-developer__big-data__redis__redis-01-install.md]
Checking Process Status¶
To confirm that the Redis process is active, you can check the running processes.^[600-developer__big-data__redis__redis-01-install.md] The standard command is:
ps -ef | grep redis | grep -v grep
This allows you to verify the existence of the redis-server process (often called redis-server when started from the src directory).^[600-developer__big-data__redis__redis-01-install.md]
Checking Network Connectivity¶
In addition to the process ID, it is important to ensure the server is listening on the correct port.^[600-developer__big-data__redis__redis-01-install.md] You can verify network connectivity using the following commands:
netstat -tlanp | grep 6379^[600-developer__big-data__redis__redis-01-install.md]lsof -i:6379^[600-developer__big-data__redis__redis-01-install.md]
Interactive Verification¶
Finally, you can verify the server's status by using the redis-cli tool to send a ping command.^[600-developer__big-data__redis__redis-01-install.md] If the server is running correctly, it will respond with PONG.^[600-developer__big-data__redis__redis-01-install.md]
Sources¶
- 600-developer__big-data__redis__redis-01-install.md
Related¶
- [[Redis]]
- [[netstat]]
- [[lsof]]