# Redis minimal configuration file # Specify the Redis server port port 6379 # Specify the directory for storing data files dir /var/lib/redis # Specify the log file (empty string for standard output) logfile "" # Bind to localhost to accept connections only from the local machine bind 127.0.0.1 # Set the database number (default is 16) databases 16 # Disable protected mode to allow connections only from localhost protected-mode yes
Arch Redis start service file is located at /usr/lib/systemd/system/redis.service
the config file use Chinese locale, so we need to add locale config to the service file.