redis sentinel怎么跑守护进程以及日志记录位置的?
问题描述

redis sentinel怎么跑守护进程的?直接在前台显示了.redis-server可以通过修改配置文件来使用守护进程,以及指定日志目录,但sentinel启动只能在前台跑。。。
怎样修改配置也让sentinel跑守护进程
[root@redis_01 redis]# redis-server /etc/redis/sentinel.conf --sentinel7980:X 23 Nov 18:02:41.348 * Increased maximum number of open files to 10032 (it was originally set to 1024)._._ _.-``__ ’’-._ _.-`` `. `_. ’’-._ Redis 3.0.5 (00000000/0) 64 bit .-`` .-". "/ _.,_ ’’-._ ( ’ , .-` | `, ) Running in sentinel mode |`-._`-...-` __...-.``-._|’` _.-’| Port: 26379 | `-._ `._ / _.-’ | PID: 7980 `-._ `-._ `-./ _.-’ _.-’ |`-._`-._ `-.__.-’ _.-’_.-’| | `-._`-.__.-’_.-’ | http://redis.io `-._ `-._`-.__.-’_.-’ _.-’ |`-._`-._ `-.__.-’ _.-’_.-’| | `-._`-.__.-’_.-’ | `-._ `-._`-.__.-’_.-’ _.-’ `-._ `-.__.-’ _.-’ `-.__.-’ `-.__.-’ 7980:X 23 Nov 18:02:41.355 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.7980:X 23 Nov 18:02:41.355 # Sentinel runid is 43de323d55627d896b2caf1da2e305f0eb59dcee7980:X 23 Nov 18:02:41.356 # +monitor master mymaster 127.0.0.1 6379 quorum 1^C7980:signal-handler (1448273325) Received SIGINT scheduling shutdown...7980:X 23 Nov 18:08:45.618 # User requested shutdown...7980:X 23 Nov 18:08:45.618 # Sentinel is now ready to exit, bye bye...
问题解答
回答1:我去, 链接里的方法虽然行, 但是没必要。你把daemonize yes这句加到sentinel.conf里面就行了。 再启动就是守护进程方式了。
回答2:已自行解决了链接描述
回答3:1.如上所说,daemonize yes2.在命令后面加上&3.nohup
相关文章:
1. javascript - vue组件通过eventBus通信时,报错a.$on is not a function2. python3.x - python3.5.2安装时make报错求助3. html - vue项目中用到了elementUI问题4. javascript - 在使用 vue.js element ui的时候 怎么样保留table翻页后check的值?5. mysql_replication - mysql读写分离时如果单台写库也无法满足性能怎么解决6. ionic 项目 ionic build android -release 打包时报错7. linux - ubuntu 命令行中文 显示菱形,期望通过引入字体解决而不是zhcon这种方式8. angular.js - 如何控制ngrepeat输出的个数9. mac里的docker如何命令行开启呢?10. python - 如何用pandas处理分钟数据变成小时线?

网公网安备