VPS侦探论坛

 找回密码
 注册
查看: 1545|回复: 1

安装 redis 失败,请教军哥

[复制链接]
发表于 2023-3-30 13:20:06 | 显示全部楼层 |阅读模式

Win10 下 WLS Ubuntu20 安装 lnmp 成功

然后安装 redis 失败

执行代码如下,有发帖字数限制,删除了部分没用代码
  1. |            Addons script for LNMP V1.9, Written by Licess             |
  2. +-----------------------------------------------------------------------+
  3. |    A tool to Install cache,optimizer,accelerator...addons for LNMP    |
  4. +-----------------------------------------------------------------------+
  5. |           For more information please visit https://lnmp.org          |
  6. +-----------------------------------------------------------------------+
  7. ====== Installing Redis ======
  8. Install redis-6.2.7 Stable Version...

  9. Press any key to start...or Press Ctrl+c to cancel
  10. jredis-6.2.7.tar.gz [found]
  11. Uncompress redis-6.2.7.tar.gz...

  12. gzip: stdin: unexpected end of file
  13. tar: Unexpected EOF in archive
  14. tar: Unexpected EOF in archive
  15. tar: Error is not recoverable: exiting now
  16. cd redis-6.2.7...
  17. cd src && make install
  18. /bin/sh: 1: cd: can't cd to src
  19. make: *** [Makefile:9: install] Error 2
  20. cp: cannot stat 'redis.conf': No such file or directory
  21. sed: can't read /usr/local/redis/etc/redis.conf: No such file or directory
  22. grep: /usr/local/redis/etc/redis.conf: No such file or directory
  23. sed: can't read /usr/local/redis/etc/redis.conf: No such file or directory
  24. sed: can't read /usr/local/redis/etc/redis.conf: No such file or directory
  25. iptables v1.8.4 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
  26. Perhaps iptables or your kernel needs to be upgraded.
  27. redis-5.3.7.tgz [found]
  28. Uncompress redis-5.3.7.tgz...
  29. cd redis-5.3.7...
  30. Configuring for:
  31. PHP Api Version:         20210902
  32. Zend Module Api No:      20210902
  33. Zend Extension Api No:   420210902
  34. checking for grep that handles long lines and -e... /usr/bin/grep
  35. checking for egrep... /usr/bin/grep -E
  36. checking for a sed that does not truncate output... /usr/bin/sed
  37. checking for pkg-config... /usr/bin/pkg-config
  38. checking pkg-config is at least version 0.9.0... yes
  39. checking for cc... cc
  40. checking whether the C compiler works... yes
  41. checking for C compiler default output file name... a.out
  42. checking for suffix of executables...
  43. checking whether we are cross compiling... no
  44. checking for suffix of object files... o
  45. checking whether we are using the GNU C compiler... yes
  46. checking whether cc accepts -g... yes
  47. checking for cc option to accept ISO C89... none needed
  48. checking how to run the C preprocessor... cc -E
  49. checking for icc... no
  50. checking for suncc... no
  51. checking for system library directory... lib
  52. checking if compiler supports -Wl,-rpath,... yes
  53. checking build system type... x86_64-pc-linux-gnu
  54. checking host system type... x86_64-pc-linux-gnu
  55. checking target system type... x86_64-pc-linux-gnu
  56. checking for PHP prefix... /usr/local/php
  57. checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
  58. checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20210902
  59. checking for PHP installed headers prefix... /usr/local/php/include/php
  60. checking if debug is enabled... no
  61. checking if zts is enabled... no
  62. checking for gawk... gawk
  63. checking whether to enable redis support... yes, shared
  64. checking whether to enable sessions... yes
  65. checking whether to enable json serializer support... yes
  66. checking whether to enable igbinary serializer support... no
  67. checking whether to enable msgpack serializer support... no
  68. checking whether to enable lzf compression... no
  69. checking use system liblzf... no
  70. checking whether to enable Zstd compression... no
  71. checking use system libsztd... yes
  72. checking whether to enable lz4 compression... no
  73. checking use system liblz4... no
  74. checking for hash includes... /usr/local/php/include/php
  75. checking for json includes... /usr/local/php/include/php
  76. checking for redis json support... enabled
  77. checking for redis igbinary support... disabled
  78. checking for pkg-config... /usr/bin/pkg-config
  79. checking for git... yes
  80. checking for a sed that does not truncate output... /usr/bin/sed
  81. checking for ld used by cc... /usr/bin/ld
  82. checking if the linker (/usr/bin/ld) is GNU ld... yes
  83. checking for /usr/bin/ld option to reload object files... -r
  84. checking for BSD-compatible nm... /usr/bin/nm -B
  85. checking whether ln -s works... yes
  86. checking how to recognize dependent libraries... pass_all
  87. checking for ANSI C header files... yes
  88. checking for sys/types.h... yes
  89. checking for sys/stat.h... yes
  90. checking for stdlib.h... yes
  91. checking for string.h... yes
  92. checking for memory.h... yes
  93. checking for strings.h... yes
  94. checking for inttypes.h... yes
  95. checking for stdint.h... yes
  96. checking for unistd.h... yes
  97. checking dlfcn.h usability... yes
  98. checking dlfcn.h presence... yes
  99. checking for dlfcn.h... yes
  100. checking the maximum length of command line arguments... 1572864
  101. checking command to parse /usr/bin/nm -B output from cc object... ok
  102. checking for objdir... .libs
  103. checking for ar... ar
  104. checking for ranlib... ranlib
  105. checking for strip... strip
  106. checking if cc supports -fno-rtti -fno-exceptions... no
  107. checking for cc option to produce PIC... -fPIC
  108. checking if cc PIC flag -fPIC works... yes
  109. checking if cc static flag -static works... yes
  110. checking if cc supports -c -o file.o... yes
  111. checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  112. checking whether -lc should be explicitly linked in... no
  113. checking dynamic linker characteristics... GNU/Linux ld.so
  114. checking how to hardcode library paths into programs... immediate
  115. checking whether stripping libraries is possible... yes
  116. checking if libtool supports shared libraries... yes
  117. checking whether to build shared libraries... yes
  118. checking whether to build static libraries... no

  119. ----------------------------------------------------------------------
  120. Libraries have been installed in:
  121.    /home/vovo/lnmp1.9/src/redis-5.3.7/modules

  122. If you ever happen to want to link against installed libraries
  123. in a given directory, LIBDIR, you must either use libtool, and
  124. specify the full pathname of the library, or use the `-LLIBDIR'
  125. flag during linking and do at least one of the following:
  126.    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
  127.      during execution
  128.    - add LIBDIR to the `LD_RUN_PATH' environment variable
  129.      during linking
  130.    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  131.    - have your system administrator add LIBDIR to `/etc/ld.so.conf'

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

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

  137. Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20210902/
  138. Add to auto startup...
  139. Add redis service at system startup...
  140. System has not been booted with systemd as init system (PID 1). Can't operate.
  141. Failed to connect to bus: Host is down
  142. Synchronizing state of redis.service with SysV service script with /lib/systemd/systemd-sysv-install.
  143. Executing: /lib/systemd/systemd-sysv-install enable redis
  144. Restarting php-fpm......
  145. Gracefully shutting down php-fpm . done
  146. Starting php-fpm  done
  147. Starting Redis server.../etc/init.d/redis: line 33: /usr/local/redis/bin/redis-server: No such file or directory
  148. done
  149. Copy Redis PHP Test file...
  150. Redis install failed!
复制代码




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


redis-6.2.7.tar.gz 文件损坏或者下载时并未下载完整
删除该文件后重新安装
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-5 14:38 , Processed in 0.036687 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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