要正確刪除Redis的pidfile,可以按照以下步驟操作:
ps -aef | grep redis
kill -9 <redis_pid>
其中,<redis_pid>為Redis進程的PID。
<redis_pid>
rm <pidfile_path>
其中,<pidfile_path>為Redis的pidfile路徑。
<pidfile_path>
ls <pidfile_path>
通過以上步驟,您可以正確刪除Redis的pidfile。