VPS侦探论坛

 找回密码
 注册
查看: 3443|回复: 4

LNMP无人值守安装后脚本不退出

[复制链接]
发表于 2019-7-4 11:17:53 | 显示全部楼层 |阅读模式

我用dockerfile创建一个lnmp的image。由于无法进行交互操作,所以选择的lnmp1.6的无人值守安装方式,安装过程都挺正常的,也顺利装完了 但是现在的问题就是安装完成后,install.sh脚本不会自己退出。我这边运行的docker build命令,还不能按ctrl+C终止脚本,因为这样会导致docker build命令终止,导致无法正常创建docker image。我这边在虚机上也进行了交互安装测试,发现现在不管是交互安装还是无人值守安装,安装完成后都会卡住  这个怎么解决啊  求大神给个方案。我也想过创建一个centos的镜像后进docker搭建环境,然后再docker commit成镜像,但是这样做会导致image特别大,我这边实测镜像会有3.77G。这不方便把镜像迁移至docker hub。不知道有没有什么解决方案,或者军哥这边能不能做几个docker的images解决一下  ?


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


============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
PHP: OK
PHP-FPM: OK
Clean Web Server src directory...
+------------------------------------------------------------------------+
|          LNMP V1.6 for CentOS Linux Server, Written by Licess          |
+------------------------------------------------------------------------+
|           For more information please visit https://lnmp.org           |
+------------------------------------------------------------------------+
|    lnmp status manage: lnmp {start|stop|reload|restart|kill|status}    |
+------------------------------------------------------------------------+
|  phpMyAdmin: http://IP/phpmyadmin/                                     |
|  phpinfo: http://IP/phpinfo.php                                        |
|  Prober:  http://IP/p.php                                              |
+------------------------------------------------------------------------+
|  Add VirtualHost: lnmp vhost add                                       |
+------------------------------------------------------------------------+
|  Default directory: /home/wwwroot/default                              |
+------------------------------------------------------------------------+
|  MySQL/MariaDB root password: root1234567890                         |
+------------------------------------------------------------------------+
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
nginx (pid 1853) is running...
php-fpm is runing!
SUCCESS! MySQL running (2413)
State      Recv-Q Send-Q Local Addressort               Peer Addressort              
LISTEN     0      50           *:3306                     *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
Install lnmp takes 7 minutes.
Install lnmp V1.6 completed! enjoy it.
之后就无法结束安装进程了  有人知道怎么处理吗?还有 为啥开了这么多80端口。。。。。在docker build的过程中无法查看正在build的image进程。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-7-4 14:40:33 | 显示全部楼层

本帖最后由 _high 于 2019-7-4 14:43 编辑

mysql的锅 换成mariadb
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-7-4 17:20:18 | 显示全部楼层



各个版本组合起来选择太多,没法做成docker,docker上的问题不好确定什么原因

因为高内核版本会自动启用reuesport来增强性能,所有会显示是很多80端口
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2020-11-23 16:46:18 | 显示全部楼层

楼主解决了吗,我刚开始接触docker 也是遇到这个问题,build总是卡在这里。。

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-18 17:37 , Processed in 0.036109 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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