The previous record ubuntu1804server notes compiled and installed redis5, the next step is to configure redis5
URL: https://www.cnblogs.com/qumogu/p/12435694.html
Step 1 copy redis5 profile
We need to build a directory to store configuration files
sudo mkdir /etc/redis
The preferred redis.conf from the installation directory service configuration file to ubuntu system configuration directory
sudo cp /usr/local/redis/redis.conf /etc/redis/
Step 2, prepare in advance two directories , one for persistent data storage redis rdb file of a directory to store log files
sudo mkdir / var / lib / redis
sudo mkdir /var/log/redis
Step 3, the profile focuses Item Description
vim /etc/redis/redis.conf
1, binding ip default is 127.0.0.1 - >> bing 127.0.0.1
2, the development of the port, the default port is 6379 - >> port 6379
3, whether to start the daemon, the default is no, we changed to yes - >> daemonize yes
4, log file configuration, default is "" built before air, we use the directory - >> logfile "/var/log/redis/redis_server.log"
5, the default is 16 databases, 0-15 -. >> databases 16
6, the default persistent data named dump.rdb - >> dbfilename dump.rdb
7, the default configuration file directory is a directory ./, we built prior to storage folder - >> dir / var / lib / redis /
Other configurations, security needs to be modified in the practical application