当前位置:   article > 正文

linux redis配置查找,如何找到linux centos7 中 redis.conf

/etc/rc.d/init.d/redis; bad; vendor preset: disabled

我们假设redis正在运行,但是我们找不带redis的配置文件redis.conf.

正确的示范:

(1)systemctl status redis

● redis.service - LSB: starts Redis

Loaded: loaded (/etc/rc.d/init.d/redis; bad; vendor preset: disabled)

Active: inactive (dead)

Docs: man:systemd-sysv-generator(8)

由此处可见,redis在/etc/rc.d/init.d/redis中

(2)cat/etc/rc.d/init.d/redis

#!/bin/sh

# chkconfig: 2345 56 26

# description: Redis Service

### BEGIN INIT INFO

# Provides: Redis

# Required-Start: $all

# Required-Stop: $all

# Default-Start: 2 3 4 5

# Default-Stop: 0 1 6

# Short-Description: starts Redis

# Description: starts the BT-Web

### END INIT INFO

# Simple Redis init.d script conceived to work on Linux systems

# as it does use of the /proc filesystem.

CONF="/www/server/redis/redis.conf"

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/498011
推荐阅读
相关标签
  

闽ICP备14008679号