check 发表于 2019-1-22 14:24:25

安装 redis 时报错

发贴之前搜了下,和 https://bbs.vpser.net/viewthread.php?tid=18114&highlight=redis
差不多,但没有看到解决方案





+-----------------------------------------------------------------------+
|            Addons script for LNMP V1.4, Written by Licess             |
+-----------------------------------------------------------------------+
|    A tool to Install cache,optimizer,accelerator...addons for LNMP    |
+-----------------------------------------------------------------------+
|         For more information please visit https://lnmp.org          |
+-----------------------------------------------------------------------+
====== Installing Redis ======
Install redis-4.0.9 Stable Version...

Press any key to start...or Press Ctrl+c to cancel

redis-4.0.9.tar.gz
Uncompress redis-4.0.9.tar.gz...

gzip: stdin: unexpected end of file
tar: 归档文件中异常的 EOF
tar: 归档文件中异常的 EOF
tar: Error is not recoverable: exiting now
cd redis-4.0.9...
make: *** 没有规则可以创建目标“install”。 停止。
cp: 无法获取"redis.conf" 的文件状态(stat): 没有那个文件或目录
sed:无法读取 /usr/local/redis/etc/redis.conf:没有那个文件或目录
grep: /usr/local/redis/etc/redis.conf: 没有那个文件或目录
sed:无法读取 /usr/local/redis/etc/redis.conf:没有那个文件或目录
sed:无法读取 /usr/local/redis/etc/redis.conf:没有那个文件或目录
iptables: Bad rule (does a matching rule exist in that chain?).
redis-4.0.2.tgz
Uncompress redis-4.0.2.tgz...
cd redis-4.0.2...
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...


See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:   /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
Add to auto startup...
Add redis service at system startup...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpmdone
Starting Redis server.../etc/init.d/redis:行33: /usr/local/redis/bin/redis-server: 没有那个文件或目录
done
Redis install failed!

licess 发表于 2019-1-22 19:31:04

redis文件没有下载完整,将安装包src目录下的 redis-4.0.9.tar.gz 删除,然后重新再安装

check 发表于 2019-1-23 15:57:33

回复 2# 的帖子

昨天 用源码 装了
页: [1]
查看完整版本: 安装 redis 时报错