[root@localhost src]# pwd /usr/local/src [root@localhost src]# ls redis-6.2.7.tar.gz [root@localhost src]# tar xf redis-6.2.7.tar.gz [root@localhost src]# ls redis-6.2.7 redis-6.2.7.tar.gz root@localhost src]# cd redis-6.2.7 [root@localhost redis-6.2.7]# ls 00-RELEASENOTES COPYING MANIFESTO runtest-cluster src BUGS deps README.md runtest-moduleapi tests CONDUCT INSTALL redis.conf runtest-sentinel TLS.md CONTRIBUTING Makefile runtest sentinel.conf utils [root@localhost redis-5.0.5]# make [root@localhost redis-5.0.5]# ll /usr/local/redis 总用量 0 drwxr-xr-x. 2 root root 134 5月 8 19:32 bin [root@localhost redis-5.0.5]# mkdir /usr/local/redis/etc [root@localhost redis-5.0.5]# cp redis.conf /usr/local/redis/etc/ [root@localhost redis-5.0.5]# #启动redis [root@localhost bin]# pwd /usr/local/redis/bin [root@localhost bin]# ./redis-server /usr/local/redis/etc/redis.conf 15781:C 08 May 2022 19:37:04.867 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 15781:C 08 May 2022 19:37:04.867 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=15781, just started 15781:C 08 May 2022 19:37:04.867 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf 15781:M 08 May 2022 19:37:04.867 * Increased maximum number of open files to 10032 (it was originally set to 1024). _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 5.0.5 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 15781 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' 15781:M 08 May 2022 19:37:04.868 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 15781:M 08 May 2022 19:37:04.868 # Server initialized 15781:M 08 May 2022 19:37:04.868 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 15781:M 08 May 2022 19:37:04.868 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 15781:M 08 May 2022 19:37:04.868 * DB loaded from disk: 0.000 seconds 15781:M 08 May 2022 19:37:04.868 * Ready to accept connections