tutuhuhu 发表于 2015-8-27 14:29:19

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

主机是电信通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

licess 发表于 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
来恢复原来的源

tutuhuhu 发表于 2015-8-27 19:08:25

没有找到这个include/init.sh啊

tutuhuhu 发表于 2015-8-27 20:02:22

回复 2# 的帖子

12.04,12.4的都试了,提示都一样,还是没找到您说的文件

licess 发表于 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

tutuhuhu 发表于 2015-8-27 22:04:18

回复 5# 的帖子

用这个弄好了,非常感谢
页: [1]
查看完整版本: 新开的一个云主机,装不上LNMP一键安装包