The linux system queries the installation directory or configuration file of redis or nginx

Find the file through the command find / -name redis.conf, and then determine the specific location

[root@localhost ~]# find / -name redis.conf
find: ‘/proc/3143’: 没有那个文件或目录
find: ‘/proc/3145’: 没有那个文件或目录
find: ‘/proc/3147’: 没有那个文件或目录
/var/lib/docker/overlay2/11acb12329752e8466d43a0565f1296629d1a854ce90a2dd3d68d64df25519cc/diff/etc/redis/redis.conf
/var/lib/docker/overlay2/4aad487d4597ec46326d2102b908a4caacf22ff69df1a58057e275611028963d/merged/etc/redis/redis.conf

Guess you like

Origin blog.csdn.net/qq_19891197/article/details/131678618