ubuntu redis安装目录在哪

2025-04-24 06:36:58
推荐回答(3个)
回答1:

1、将源码目录下redis配置文件redis.conf拷贝到/etc/redis目录下。
2、修改配置项,根据需要;如果不修改,使用默认配置也可以;
启动服务:
查看端口是否被占用:netstat –ntlp |grep 6379
方式一:通过命令redis-server 启动,可在命令后加上`&`号使redis以后台程序方式运行;
方式二:通过指定配置文件启动;redis-server /etc/redis/redis.conf

回答2:

over. When he did not come I was surprised, and

回答3: