代码拉取完成,页面将自动刷新
Docker deploying Nginx MySQL PHP7 in one key, support full feature functions.
git
, docker
和 docker-compose
;$ git clone https://github.com/yeszao/dnmp.git
$ cd dnmp
$ docker-compose up
sudo
.文件路径 ./www/site1/
.
默认更新在 docker_php 下的
$ docker-compose up
已删除 可以在 git clone https://github.com/yeszao/dnmp.git 源码
$ docker-compose -f docker-compose54.yml up
$ docker-compose -f docker-compose56.yml up
注意: 我们只可以启动一个版本 他们使用的是一个端口 如果想切换版本 先关闭运行版本
默认两个站点
更改虚拟域名 ( /etc/hosts
Linux 和 C:\Windows\System32\drivers\etc\hosts
Windows):
127.0.0.1 www.site1.com
127.0.0.1 www.site2.com
可以在浏览器中访问
We can identify log directory in nginx / php / php-fpm / mysql config file.
To display the log file in host, we should config them to /var/log/dnmp
.
但是 它们有一些不同
Nginx 将自动生成所有日志文件。
用 php-fpm
必须要手动创建 (in host):
$ touch log/php.fpm.error.log
$ chmod a+w log/php.fpm.error.log
与 php-fpm
一样 必须要手动创建(in host):
$ touch log/mysql.slow.log
$ chmod a+w log/mysql.slow.log
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。