VPS侦探论坛

 找回密码
 注册
查看: 2892|回复: 2

Ubuntu 安装lnmp1.5失败

[复制链接]
发表于 2018-9-11 15:06:48 | 显示全部楼层 |阅读模式

系统:Linux version 4.4.0-116-generic (buildd@lgw01-amd64-021) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) ) #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018

Ubuntu 安装lnmp1.5失败:
============================phpMyAdmin install completed=======================
Add Startup and Starting LNMP...
Add nginx service at system startup...
insserv: warning: script 'limitfile.sh' missing LSB tags and overrides
Starting nginx... nginx (pid 15996 15994 15993 15992 15991 15990 15989 15988 15987 15986 15985 15984 15983 15982 15981 15980 15979 15978 15977 15976 15975 15974 15973 15971 15970) already running.
Add php-fpm service at system startup...
insserv: warning: script 'limitfile.sh' missing LSB tags and overrides
insserv: There is a loop between service nginx and limitfile.sh if stopped
insserv:  loop involving service limitfile.sh at depth 2
insserv:  loop involving service nginx at depth 1
insserv: Stopping limitfile.sh depends on nginx and therefore on system facility `$all' which can not be true!
Starting php-fpm /etc/init.d/php-fpm: 57: /etc/init.d/php-fpm: /usr/local/php/sbin/php-fpm: not found
failed
============================== Check install ==============================
Checking ...
Nginx: OK
Do not install MySQL/MariaDB.
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-9-11 18:45:55 | 显示全部楼层


Generating phar.php
/data/lnmp1.5/src/php-7.1.18/sapi/cli/php: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory
Makefile:455: recipe for target 'ext/phar/phar.php' failed
make: *** [ext/phar/phar.php] Error 127
make: *** Waiting for unfinished jobs....
Generating phar.phar
/data/lnmp1.5/src/php-7.1.18/sapi/cli/php: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory
Makefile:459: recipe for target 'ext/phar/phar.phar' failed
make: *** [ext/phar/phar.phar] Error 127
Generating phar.phar
/data/lnmp1.5/src/php-7.1.18/sapi/cli/php: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory
Makefile:459: recipe for target 'ext/phar/phar.phar' failed
make: *** [ext/phar/phar.phar] Error 127

默认编译的php没有rtmp相关的依赖应该不会报错
可以find /  -name librtmp.* 看一下是否在 /usr/lib/x86_64-linux-gnu/ 下存在 librtmp.so.0 或 librtmp.so.1 文件
存在的话 ln -sf /usr/lib/x86_64-linux-gnu/librtmp.so.1 /lib/librtmp.so.0
然后再重新安装试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-9-14 15:35:33 | 显示全部楼层

回复 2# 的帖子


军哥,历害,终于解决了这个问题。:hug: :hug: :hug: :hug:
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-19 10:53 , Processed in 0.026525 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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