查看redis源碼安裝的默認配置文件在哪:
1.打開終端命令行。
2.輸入以下命令進行查看即可。
[root@localhost ~]# which Redis/usr/local/redis
[root@localhost ~]# which Redis
/usr/local/redis
3.如果which命令找不到,可以通過進程查看。
//查看redis進程ps -aux | grep redis 或者ps -ef|grep redis//假設得到redis的進程號123,然后使用以下命令查看安裝位置。ll /proc/123/cwd
//查看redis進程
ps -aux | grep redis
或者
ps -ef|grep redis
//假設得到redis的進程號123,然后使用以下命令查看安裝位置。
ll /proc/123/cwd