VPS侦探论坛

 找回密码
 注册
查看: 4471|回复: 5

新开的一个云主机,装不上LNMP一键安装包

[复制链接]
发表于 2015-8-27 14:29:19 | 显示全部楼层 |阅读模式

主机是电信通2核,1.5G的,系统是Ubuntu server 12.4 32位
前面安装MYSQL,和PHP时明明都装上了,最后却提示


# Completed on Thu Aug 27 12:30:36 2015
Add Startup and Starting LNMP...
Add nginx service at system startup...
System start/stop links for /etc/init.d/nginx already exist.
Starting nginx... /etc/init.d/nginx: 35: /etc/init.d/nginx: /usr/local/nginx/sbin/nginx: not found
failed
Add mysql service at system startup...
update-rc.d: /etc/init.d/mysql: file does not exist
include/end.sh: line 14: /etc/init.d/mysql: No such file or directory
Add php-fpm service at system startup...
update-rc.d: /etc/init.d/php-fpm: file does not exist
include/end.sh: line 17: /etc/init.d/php-fpm: No such file or directory
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-8-27 15:38:53 | 显示全部楼层


应该是12.04吧,按正常的支持期,这个版本以及到期移至old-release,但是不清楚什么原因一直没移,所以造成源错误
可以修改include/init.sh 里utopic_deadline=`date -d "2015-8-1 00:00:00" +%s` 这一行改完utopic_deadline=`date -d "2015-10-1 00:00:00" +%s`  再重新安装就行了,安装前先运行下面:
cat > /etc/apt/sources.list<<EOF
deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
EOF
来恢复原来的源
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-8-27 19:08:25 | 显示全部楼层

没有找到这个include/init.sh啊
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-8-27 20:02:22 | 显示全部楼层

回复 2# 的帖子




12.04,12.4的都试了,提示都一样,还是没找到您说的文件
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-8-27 21:06:33 | 显示全部楼层

这是lnmp的文件,要到lnmp的目录里找,你自己放的lnmp应该知道在那
不按上面修改,按下面方法也行
cat > /etc/apt/sources.list<<EOF
deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
EOF

chattr +i /etc/apt/sources.list
然后重新安装lnmp

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

 楼主| 发表于 2015-8-27 22:04:18 | 显示全部楼层

回复 5# 的帖子


用这个弄好了,非常感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 04:54 , Processed in 0.026593 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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