VPS侦探论坛

 找回密码
 注册
查看: 5569|回复: 9

Redis install failed!

[复制链接]
发表于 2020-5-7 14:06:37 | 显示全部楼层 |阅读模式

最近安装 redis  都是这个问题!

目前用的是阿里云 和 百度云

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-5-7 16:30:03 | 显示全部楼层


这个都在多个环境和系统下测试过没有问题
你这个没完整日志信息无法确定是什么问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-5-7 16:32:29 | 显示全部楼层

手动下载Redis  上传到Src文件夹,  执行安装 也出错了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-5-7 16:44:32 | 显示全部楼层



licess 发表于 2020-5-7 16:30
这个都在多个环境和系统下测试过没有问题
你这个没完整日志信息无法确定是什么问题 ...
  1. Notice: redis-5.0.0.tar.gz not found!!!download now...
  2. --2020-05-07 16:39:32--  http://download.redis.io/releases/redis-5.0.0.tar.gzResolving download.redis.io (download.redis.io)... failed: Name or service not known.
  3. wget: unable to resolve host address ‘download.redis.io’
  4. Uncompress redis-5.0.0.tar.gz...
  5. tar (child): redis-5.0.0.tar.gz: Cannot open: No such file or directory
  6. tar (child): Error is not recoverable: exiting now
  7. tar: Child returned status 2
  8. tar: Error is not recoverable: exiting now
  9. cd redis-5.0.0...
  10. include/main.sh: line 436: cd: redis-5.0.0: No such file or directory
  11. make: *** No rule to make target `install'.  Stop.
  12. cp: cannot stat ‘redis.conf’: No such file or directory
  13. sed: can't read /usr/local/redis/etc/redis.conf: No such file or directory
  14. grep: /usr/local/redis/etc/redis.conf: No such file or directory
  15. sed: can't read /usr/local/redis/etc/redis.conf: No such file or directory
  16. sed: can't read /usr/local/redis/etc/redis.conf: No such file or directory
  17. iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
  18. Redirecting to /bin/systemctl reload iptables.service
  19. Notice: redis-4.3.0.tgz not found!!!download now...
  20. --2020-05-07 16:39:36--  http://pecl.php.net/get/redis-4.3.0.tgz
  21. Resolving pecl.php.net (pecl.php.net)... 104.236.228.160
  22. Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:80... connected.
  23. HTTP request sent, awaiting response... 200 OK
  24. Length: 241883 (236K) [application/octet-stream]
  25. Saving to: ‘redis-4.3.0.tgz’

  26. 100%[===================================>] 241,883     27.2KB/s   in 8.0s   

  27. 2020-05-07 16:39:45 (29.6 KB/s) - ‘redis-4.3.0.tgz’ saved [241883/241883]

  28. Uncompress redis-4.3.0.tgz...
  29. tar (child): redis-4.3.0.tgz: Cannot open: No such file or directory
  30. tar (child): Error is not recoverable: exiting now
  31. tar: Child returned status 2
  32. tar: Error is not recoverable: exiting now
  33. cd redis-4.3.0...
  34. include/main.sh: line 436: cd: redis-4.3.0: No such file or directory
  35. Cannot find config.m4.
  36. Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module

  37. include/redis.sh: line 77: ./configure: No such file or directory
  38. make: *** No targets specified and no makefile found.  Stop.
  39. make: *** No targets specified and no makefile found.  Stop.
  40. make: *** No rule to make target `install'.  Stop.
  41. Add to auto startup...
  42. Add redis service at system startup...
  43. Restarting php-fpm......
  44. Gracefully shutting down php-fpm . done
  45. Starting php-fpm [07-May-2020 16:39:46] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/redis.so' - /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
  46. done
  47. Starting Redis server.../etc/init.d/redis: line 33: /usr/local/redis/bin/redis-server: No such file or directory
  48. done
  49. Redis install failed!
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2020-5-7 16:44:59 | 显示全部楼层

licess 发表于 2020-5-7 16:30
这个都在多个环境和系统下测试过没有问题
你这个没完整日志信息无法确定是什么问题 ...

1.6版本也遇到这样问题

军哥运维代购:http://shop63846532.taobao.com/

发表于 2020-5-7 19:03:03 | 显示全部楼层


--2020-05-07 16:39:32--  http://download.redis.io/releases/redis-5.0.0.tar.gzResolving download.redis.io (download.redis.io)... failed: Name or service not known.
wget: unable to resolve host address ‘download.redis.io’

你系统上的DNS都不能正常工作肯定连最基本的下载都下载不了,更不用说安装了
发表于 2021-6-3 16:10:15 | 显示全部楼层

我的也出现这问题。PHP多版本的时候出现的。阿里云CENTOS6.10,安装了php5.6和7.3       @licess

[root@iZj6cdwv33bzmdhhj9maboZ lnmp1.7]# ./addons.sh install redis
+-----------------------------------------------------------------------+
|            Addons script for LNMP V1.7, Written by Licess             |
+-----------------------------------------------------------------------+
|    A tool to Install cache,optimizer,accelerator...addons for LNMP    |
+-----------------------------------------------------------------------+
|           For more information please visit https://lnmp.org          |
+-----------------------------------------------------------------------+
Multiple PHP version found, Please select the PHP version.
1: Default Main PHP 5.6.40
10: PHP 7.3 [found]
Enter your choice (1, 2, 3, 4, 5, 6, 7, 8, 9, 10 or 11 ):
10
Current selection:: PHP 7.3.23
====== Installing Redis ======
Install redis-6.0.8 Stable Version...

Press any key to start...or Press Ctrl+c to cancel
Notice: redis-5.0.9.tar.gz not found!!!download now...
--2021-06-03 15:45:05--  http://download.redis.io/releases/redis-5.0.9.tar.gz
Resolving download.redis.io... 45.60.125.1
Connecting to download.redis.io|45.60.125.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1986574 (1.9M) [application/octet-stream]
Saving to: “redis-5.0.9.tar.gz”

100%[====================================================================================================================================================================================================================================>] 1,986,574   --.-K/s   in 0.05s   

2021-06-03 15:45:06 (34.6 MB/s) - “redis-5.0.9.tar.gz” saved [1986574/1986574]

Uncompress redis-5.0.9.tar.gz...
cd redis-5.0.9...
cd src && make install
make[1]: Entering directory `/usr/local/src/lnmp1.7/src/redis-5.0.9/src'
    CC Makefile.dep
make[1]: Leaving directory `/usr/local/src/lnmp1.7/src/redis-5.0.9/src'

......

config.status: executing include/jemalloc/jemalloc_mangle.h commands
config.status: executing include/jemalloc/jemalloc_mangle_jet.h commands
config.status: executing include/jemalloc/jemalloc.h commands
configure: WARNING: unrecognized options: --enable-cc-silence
===============================================================================
jemalloc version   : 5.1.0-0-g0
library revision   : 2

CONFIG             : --with-version=5.1.0-0-g0 --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence 'CFLAGS=-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops ' LDFLAGS=
CC                 : gcc
CONFIGURE_CFLAGS   : -std=gnu99 -Wall -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops
SPECIFIED_CFLAGS   : -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops
EXTRA_CFLAGS       :
CPPFLAGS           : -D_GNU_SOURCE -D_REENTRANT
CXX                : g++
CONFIGURE_CXXFLAGS : -fvisibility=hidden -O3
SPECIFIED_CXXFLAGS :
EXTRA_CXXFLAGS     :
LDFLAGS            :
EXTRA_LDFLAGS      :
DSO_LDFLAGS        : -shared -Wl,-soname,$(@F)
LIBS               : -lrt -lm  -lpthread -ldl
RPATH_EXTRA        :

XSLTPROC           : /usr/bin/xsltproc
XSLROOT            :

PREFIX             : /usr/local
BINDIR             : /usr/local/bin
DATADIR            : /usr/local/share
INCLUDEDIR         : /usr/local/include
LIBDIR             : /usr/local/lib
MANDIR             : /usr/local/share/man

srcroot            :
abs_srcroot        : /usr/local/src/lnmp1.7/src/redis-5.0.9/deps/jemalloc/
objroot            :
abs_objroot        : /usr/local/src/lnmp1.7/src/redis-5.0.9/deps/jemalloc/

JEMALLOC_PREFIX    : je_
JEMALLOC_PRIVATE_NAMESPACE
                   : je_
install_suffix     :
malloc_conf        :
autogen            : 0
debug              : 0
stats              : 1
prof               : 0
prof-libunwind     : 0
prof-libgcc        : 0
prof-gcc           : 0
fill               : 1
utrace             : 0
xmalloc            : 0
log                : 0
lazy_lock          : 0
cache-oblivious    : 1
cxx                : 0
===============================================================================
cd jemalloc && make CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS="" lib/libjemalloc.a
make[3]: Entering directory `/usr/local/src/lnmp1.7/src/redis-5.0.9/deps/jemalloc'
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/jemalloc.sym.o src/jemalloc.c
nm -a src/jemalloc.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/jemalloc.sym
。。。。。。

    INSTALL redis-check-rdb
    INSTALL redis-check-aof

Hint: It's a good idea to run 'make test' ;)

    INSTALL install
    INSTALL install
    INSTALL install
    INSTALL install
    INSTALL install
make[1]: Leaving directory `/usr/local/src/lnmp1.7/src/redis-5.0.9/src'
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
Notice: redis-5.3.2.tgz not found!!!download now...
--2021-06-03 15:46:24--  http://pecl.php.net/get/redis-5.3.2.tgz
Resolving pecl.php.net... 104.236.228.160
Connecting to pecl.php.net|104.236.228.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 266814 (261K) [application/octet-stream]
Saving to: “redis-5.3.2.tgz”

100%[====================================================================================================================================================================================================================================>] 266,814      270K/s   in 1.0s   

2021-06-03 15:46:26 (270 KB/s) - “redis-5.3.2.tgz” saved [266814/266814]

Uncompress redis-5.3.2.tgz...
cd redis-5.3.2...
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731
configure.ac:3: error: Autoconf version 2.68 or higher is required
configure.ac:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
include/redis.sh: line 80: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
cp: cannot create regular file `/etc/systemd/system/redis.service': No such file or directory
Add to auto startup...
Add redis service at system startup...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm [03-Jun-2021 15:46:27] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so (/usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so: cannot open shared object file: No such file or directory), /usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so.so (/usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
done
Starting Redis server...7223:C 03 Jun 2021 15:46:27.847 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
7223:C 03 Jun 2021 15:46:27.847 # Redis version=5.0.9, bits=64, commit=00000000, modified=0, pid=7223, just started
7223:C 03 Jun 2021 15:46:27.847 # Configuration loaded
done
Redis install failed!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2021-6-3 19:07:47 | 显示全部楼层

eagle_google 发表于 2021-6-3 16:10
我的也出现这问题。PHP多版本的时候出现的。阿里云CENTOS6.10,安装了php5.6和7.3       @licess

[root@iZ ...

问题解决:根据报错信息,是因为没有这个扩展导致 Unable to load dynamic library 'redis.so' (tried: /usr/local/php7.3/lib/php/extensions/no-debug-non-zts-20180731/redis.so
安装这个扩展后,用./addons.sh uninstall redis卸载redis再重装安装过即可
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2021-6-3 20:13:28 | 显示全部楼层

eagle_google 发表于 2021-6-3 16:10
我的也出现这问题。PHP多版本的时候出现的。阿里云CENTOS6.10,安装了php5.6和7.3       @licess

[root@iZ ...

configure.ac:3: error: Autoconf version 2.68 or higher is required
configure.ac:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 63

已经明确给出你提示了,你centos 6肯定是不符合要求的
可以自行编译安装升级autoconf到2.68或更高版本

军哥运维代购:http://shop63846532.taobao.com/

发表于 2021-6-4 15:59:46 | 显示全部楼层



licess 发表于 2021-6-3 20:13
configure.ac:3: error: Autoconf version 2.68 or higher is required
configure.ac:3: the top level
a ...

是的,一开始没仔细看到这个error。后来自己在动态编译redis.so扩展的时候,里面自然就回到Autoconf version 2.68 or higher is required这个问题上了的,当时也是一步步到这里搞定的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-24 17:27 , Processed in 0.028869 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表