兴致冲冲的安装好ubuntu1.8。
想安装lnmp,结果失败,失败,失败。
一遍由一遍,很痛苦。
每一遍都要半个小时,甚至更久。
等来的就是失败。
看日志也看不出头绪来。
============================phpMyAdmin install completed=======================
Add Startup and Starting LNMP...
Add nginx service at system startup...
Starting nginx... nginx (pid 14922 14921 14920 14919 14918) already running.
Add mysql service at system startup...
update-rc.d: error: unable to read /etc/init.d/mysql
include/end.sh: 行 49: /etc/init.d/mysql: 没有那个文件或目录
Add php-fpm service at system startup...
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
Error: MySQL install failed.
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.
怎么解决呢?
网上查了好多,说是1.8改动太大,lnmp1.4已经不能适用了。就用1.5吧。
5月 22 22:01:30 jiqing-pad systemd[1]: Starting LSB: start and stop MySQL...
5月 22 22:01:30 jiqing-pad mysql[15710]: Starting MySQL
5月 22 22:01:31 jiqing-pad mysql[15710]: . *
5月 22 22:01:31 jiqing-pad systemd[1]: Started LSB: start and stop MySQL.
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 0.0.0.0:80 0.0.0.0:*
LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:*
LISTEN 0 5 127.0.0.1:631 0.0.0.0:*
LISTEN 0 128 *:3306 :
LISTEN 0 5 [::1]:631 [::]:*
Install lnmp takes 27 minutes.
Install lnmp V1.5 completed! enjoy it.
果然1.5成功了!
具体的参考
https://github.com/licess/lnmp
安装前确认已经安装wget命令,如提示wget: command not found ,使用yum install wget 或 apt-get install wget 命令安装。 为防止掉线等情况,建议使用screen,可以先执行:screen -S lnmp 命令后,再执行LNMP安装命令: wget http://soft.vpser.net/lnmp/lnmp1.5beta.tar.gz -cO lnmp1.5beta.tar.gz && tar zxf lnmp1.5beta.tar.gz && cd lnmp1.5 && ./install.sh {lnmp|lnmpa|lamp}