LNMP无人值守安装后脚本不退出
我用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解决一下?============================== 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 Address:Port Peer Address:Port
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进程。 本帖最后由 _high 于 2019-7-4 14:43 编辑
mysql的锅 换成mariadb 各个版本组合起来选择太多,没法做成docker,docker上的问题不好确定什么原因
因为高内核版本会自动启用reuesport来增强性能,所有会显示是很多80端口 楼主解决了吗,我刚开始接触docker 也是遇到这个问题,build总是卡在这里。。
页:
[1]