2550246144 发表于 2018-12-20 22:50:26

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-fpmdone
include/redis.sh: line 75: /etc/init.d/redis: No such file or directory
====== Redis install completed ======
Redis installed successfully, enjoy it!请问如何解决

2550246144 发表于 2018-12-20 23:25:20

请看附件

licess 发表于 2018-12-21 20:07:51

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

2550246144 发表于 2018-12-21 22:07:31

那请问怎么样解决呢?

licess 发表于 2018-12-22 10:55:38

回复 4# 的帖子

可以自己拷贝安装包 init.d目录下对redis.init.d 到 /etc/init.d/目录下并重命名为redis
然后chmod +x /etc/init.d/redis
/etc/init.d/redis start
页: [1]
查看完整版本: LNMP1.5下redis安装错误