久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

redis sentinel怎么跑守護進程以及日志記錄位置的?

瀏覽:153日期:2024-07-10 18:23:25

問題描述

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

相關文章:
主站蜘蛛池模板: 丰宁| 文昌市| 靖边县| 拉孜县| 平山县| 固始县| 利川市| 汝城县| 交口县| 天镇县| 嘉峪关市| 焦作市| 隆尧县| 南召县| 泾源县| 方城县| 会同县| 禄丰县| 孟连| 海宁市| 德兴市| 罗田县| 景洪市| 华池县| 高唐县| 凌云县| 贺州市| 汶川县| 普定县| 桑植县| 黔江区| 荣成市| 桃源县| 咸丰县| 东宁县| 武邑县| 马龙县| 张家界市| 阳高县| 南投县| 驻马店市|