Linux下编译安装Redis以及主从复制配置(3)

[28584] 16 Apr 23:48:55.614 # Server started, Redis version 3.0.0
[28584] 16 Apr 23:48:55.614 # 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.
[28584] 16 Apr 23:48:55.614 # 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.
[28584] 16 Apr 23:48:55.614 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
[28584] 16 Apr 23:48:55.615 * DB loaded from disk: 0.000 seconds
[28584] 16 Apr 23:48:55.615 * The server is now ready to accept connections on port 6379


#给执行权限

chmod +x /etc/init.d/redis

#开机启动

chkconfig redis on

#启动服务

service redis start


#下面是启动记录

[root@localhost ~]# service redis start

Starting Redis Server:

[root@localhost ~]#                _._                                                 

_.-``__ ''-._                                           

_.-``    `.  `_.  ''-._          Redis 3.0.0 (00000000/0) 64 bit

.-`` .-```.  ```\/    _.,_ ''-._                                 

(    '      ,      .-`  | `,    )    Running in stand alone mode

|`-._`-...-` __...-.``-._|'` _.-'|    Port: 6379

|    `-._  `._    /    _.-'    |    PID: 28584

`-._    `-._  `-./  _.-'    _.-'                                 

|`-._`-._    `-.__.-'    _.-'_.-'|                                 

|    `-._`-._        _.-'_.-'    |                 

`-._    `-._`-.__.-'_.-'    _.-'                                 

|`-._`-._    `-.__.-'    _.-'_.-'|                                 

|    `-._`-._        _.-'_.-'    |                                 

`-._    `-._`-.__.-'_.-'    _.-'                                 

`-._    `-.__.-'    _.-'                                     

`-._        _.-'                                         

`-.__.-'                                             

[28584] 16 Apr 23:48:55.614 # Server started, Redis version 3.0.0

[28584] 16 Apr 23:48:55.614 # 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.

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/580554b0bebbc0b1481d4319b04bd99e.html