Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to get D-Bus connection: Operation not permitted #1

Open
lbsfei opened this issue May 6, 2018 · 3 comments
Open

Failed to get D-Bus connection: Operation not permitted #1

lbsfei opened this issue May 6, 2018 · 3 comments

Comments

@lbsfei
Copy link

lbsfei commented May 6, 2018

Mysql 服务不能启动!

@atzcl
Copy link
Owner

atzcl commented May 6, 2018

这个 CentOS 7 镜像的 BUG,解决方案,我这个镜像使用并不是传统的用宿主机 + 各个服务镜像配合搭建使用的,是依托于 CentOS 基础镜像,使用 lnmp 1.5 搭建的 LNMP 环境,这是黑盒子的做法,但是因为我做这个主要是为了统一团队的开发环境,所以也无所谓了,,

@atzcl
Copy link
Owner

atzcl commented May 6, 2018

使用我这个方案,你只需要 git clone 项目, 然后 cd 到克隆目录,运行 docker-compose up --build -d 生成容器,之后就可以使用 docker exec -it [你的容器ID] bash 命令,以命令行的方法进入容器,接着使用 lnmp 一键脚本的相关命令,启动服务,比如:lnmp start,相关命令:请点击这里查看,到了这里,就跟你正常使用搭建了 CentOS 系统的 ECS 这类云主机的使用一样了,相关的运行服务的配置目录也是已经映射到本地目录里了,直接修改,然后到容器内进行重启就可以生效。

@atzcl
Copy link
Owner

atzcl commented May 6, 2018

后面我会补上相应的使用说明的 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants