在安装redis的过程中,缺少tclsh8.5
wget http://nchc.dl.sourceforge.net/project/tcl/Tcl/8.5.11/tcl8511-src.zip
unzip tcl8511-src.zip
cd tcl8.5.11/
cd unix/
./configure
make
make install
修改/etc/redis.conf中daemonize no改成yes
是否以后台进程运行,默认为no
daemonize yes
- redis-server /etc/redis.conf
- 查看是否启动
- ps -ef | grep redis
- 如有以下信息说明启动成功:
- root 4701 3842 0 17:02 pts/0 00:00:00 cp -i -p redis-server /usr/local/bin
root 4798 1 0 17:14 ? 00:00:00 ./redis-server /etc/redis.conf
root 4852 3842 0 17:27 pts/0 00:00:00 grep redis
[root@localhost redis-2.0.4]# redis-cli
redis> set test hello,redis
OK
redis> get test
"hello,redis"
redis>
本文详细介绍了在安装Redis时遇到缺少tclsh8.5错误的解决方案,包括下载并安装TCL,配置Redis配置文件,以及启动Redis服务器的步骤,并通过命令行验证Redis是否成功启动。

被折叠的 条评论
为什么被折叠?



