Redis error

When I use the “redis-server” command;

“Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf”

I get an error.

The redis.conf file is in the etc directory, I am not using the redis-server /etc/redis.conf directory but I keep getting the same error.

When I check with ‘systemctl status redis’ command, I get the following error;

redis.service - Redis persistent key-value database
Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/redis.service.d
└─limit.conf
Active: failed (Result: exit-code) since Mon 2023-10-30 08:44:55 UTC; 3min 56s ago
Process: 650871 ExecStart=/usr/bin/redis-server /etc/redis.conf --supervised systemd (code=exited, status=1/FAILURE)
Main PID: 650871 (code=exited, status=1/FAILURE)

Oct 30 08:44:55 ufuk-yeni-160gb systemd[1]: Starting Redis persistent key-va…
Oct 30 08:44:55 ufuk-yeni-160gb systemd[1]: Started Redis persistent key-val…
Oct 30 08:44:55 ufuk-yeni-160gb systemd[1]: redis.service: main process exit…E
Oct 30 08:44:55 ufuk-yeni-160gb systemd[1]: Unit redis.service entered faile…
Oct 30 08:44:55 ufuk-yeni-160gb systemd[1]: redis.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

To solve this, I changed ‘supervised no’ to ‘supervised systemd’ in ‘/etc/redis.conf’. I restarted Redis, but I get the same errors again.

redis-cli ping command gives ‘PONG’ response. In Litespeed cache settings, redis shows as ‘history’. I am not sure if redis is working.