打印

LNMP1.5下redis安装错误

LNMP1.5下redis安装错误

PHP7.0,LNMP1.5,centos7.2

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

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/
cp: cannot create regular file ‘/etc/init.d/redis’: Permission denied
chmod: cannot access ‘/etc/init.d/redis’: No such file or directory
Add to auto startup...
Add redis service at system startup...
error reading information on service redis: No such file or directory
error reading information on service redis: No such file or directory
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm  done
include/redis.sh: line 75: /etc/init.d/redis: No such file or directory
====== Redis install completed ======
Redis installed successfully, enjoy it!请问如何解决

TOP

请看附件
附件: 您所在的用户组无法下载或查看附件

TOP

redis的服务管理脚本没有拷贝过去,/etc/init.d/可能目录有问题

LNMP付费问题排查/LNMP技术支持/Paypal信用卡代付/代购VPS,域名,软件等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 要求反馈问题!

TOP

那请问怎么样解决呢?

TOP

回复 4# 的帖子

可以自己拷贝安装包 init.d目录下对redis.init.d 到 /etc/init.d/目录下并重命名为redis
然后chmod +x /etc/init.d/redis
/etc/init.d/redis start

LNMP付费问题排查/LNMP技术支持/Paypal信用卡代付/代购VPS,域名,软件等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 要求反馈问题!

TOP