启动userland代理时发生错误:listen tcp0.0.0.0:3306:bind:address已在使用中 [英] Error starting userland proxy: listen tcp0.0.0.0:3306: bind: address already in use

查看:11474
本文介绍了启动userland代理时发生错误:listen tcp0.0.0.0:3306:bind:address已在使用中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:作为dockervel_mysql_1的不能重新启动容器 c258b418c03cbd6ec02c349c12cf09403f0eaf42fa9248019af7860d037d6474:的驱动程序无法编程端点dockervel_mysql_1 (da3dd576458aa1fe3af7b539c48b9d61d97432cf5e9ee02d78562851f53981ae)外部连接:电子的 RROR启动userland代理:听tcp0.0.0.0:3306:bind:地址已经在使用。

ERROR: for dockervel_mysql_1 Cannot restart container c258b418c03cbd6ec02c349c12cf09403f0eaf42fa9248019af7860d037d6474: driver failed programming external connectivity on endpoint dockervel_mysql_1 (da3dd576458aa1fe3af7b539c48b9d61d97432cf5e9ee02d78562851f53981ae): Error starting userland proxy: listen tcp0.0.0.0:3306: bind: address already in use.

我必须制作LAravel应用程序并提供Dockerfile ,但我真的坚持这个。在这之前,我在我的机器上安装了一个噩梦。在我的机器上安装了laravel。

I have to make LAravel app and to deliver a Dockerfile ,but i'm realy stuck with this. Before that I had a nightmare wile installing laravel on my machine.

我试图获得dockervel图像,我按照这里的步骤:
http://www.spiralout.eu/2015/12/dockervel -laravel-development.html

但是当我运行dartisan make:auth时,会出现上面的错误。

But when I run dartisan make:auth it gives this error above.

我尝试更改docker-compose.yml中的默认端口

I have tried to Change the default port in the docker-compose.yml


ports:

ports:

- "8084:80"


还没有,也试图停止apache2 (服务apache2停止)在我的机器上,也尝试了 docker-compose重新启动我不得不说,我有一个Laravel proj alredy。在/ var / www / laravel中。

still nothing,also tried to stop apache2 (service apache2 stop) on my machine ,also tried docker-compose restart and removing docker container dockervel_mysql_1. I have to mantion that I have alredy one Laravel proj. in /var/www/laravel .

请帮助!

Please help!

推荐答案

您可能已经在3306端口运行了MySQL服务。您应该先关闭它。

然后尝试结束 docker-compose down ,然后重新启动它,使用 docker-compise up

记住在添加一个您的项目中的文件(例如 dartisan make:auth )with dpermit

Probably you have already a MySQL service running in port 3306. You should close it first.
Then try to end docker-compose down and restart it with docker-compose up.
Remember also to change the permissions after you add a file in your project (like dartisan make:auth) with dpermit

更新:
,因为您将端口更改为8084,您应该去 localhost:8084

如果你看到apache的默认值,那么你可能正在浏览另一个服务器,因为dockervel是建立在 nginx 之上的。

你也可能有一些Docker的差距。不要将本地存储与Docker存储混合。一个容器中的 / var / www 与您的本地 / var / www 不同。在docker-compose.yml中,将本地〜/ dockervel / www 加载到容器 / var / www 中。 >
我建议您重新开始,并将您所做的更改还原到您的apache服务器。关闭它,你不需要它。 Dockervel将在容器中为您提供一个NginX服务器。

UPDATE: since you have changed the port to "8084" you should go to localhost:8084
If you see the apache default then you probably are browsing another server since dockervel is build upon nginx.
You have also probably have some gaps on Docker. Don't mix your local storage with docker storage. /var/www in a container is different than your local /var/www. in docker-compose.yml you mount the local ~/dockervel/www to containers /var/www.
I would suggest that you start all over again and revert the changes you've made to your apache server. Shut it down, you don't need it. Dockervel will provide you with an NginX server in a container.

这篇关于启动userland代理时发生错误:listen tcp0.0.0.0:3306:bind:address已在使用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆