本文不再阐述具体操作,可产考 https://www.cnblogs.com/qinyujie/p/8532515.html
docker run -d -it --privileged --name server1 -p 81:80 -v /Users/nelsonking/Code/:/var/www -v /Users/nelsonking/self/docker/self_nginx/nginx.conf:/usr/local/nginx/conf/nginx.conf -v /Users/nelsonking/self/docker/self_nginx/conf.d:/usr/local/nginx/conf/conf.d 32a739d2d401
docker run -d -it --privileged --name server2 -p 82:80 -v /Users/nelsonking/Code/:/var/www -v /Users/nelsonking/self/docker/self_nginx/nginx.conf:/usr/local/nginx/conf/nginx.conf -v /Users/nelsonking/self/docker/self_nginx/conf.d:/usr/local/nginx/conf/conf.d 32a739d2d401
docker run -d -it --privileged --name server3 -p 83:80 -v /Users/nelsonking/Code/:/var/www -v /Users/nelsonking/self/docker/self_nginx/nginx.conf:/usr/local/nginx/conf/nginx.conf -v /Users/nelsonking/self/docker/self_nginx/conf.d:/usr/local/nginx/conf/conf.d 32a739d2d401
docker run -d -it --privileged --name server4 -p 84:80 -v /Users/nelsonking/Code/:/var/www -v /Users/nelsonking/self/docker/self_nginx/nginx.conf:/usr/local/nginx/conf/nginx.conf -v /Users/nelsonking/self/docker/self_nginx/conf.d:/usr/local/nginx/conf/conf.d 32a739d2d401
docker run -it -p 7878:431 -e "password=docker" -d kelvv/shadowsock-docker
# 更改加密方式
docker exec -it gifted_ramanujan /bin/bash
vi ServerStart.sh
#!/bin/sh
ssserver -p 431 -k ${password} -m aes-128-cfb
Dockfile用于编写docker镜像生成过程,在一个文件夹中,如果有一个名字为Dockfile的文件,执行命令:
docker build --tag name:tag .
# name是镜像的名称,tag是镜像的版本或者是标签号,不写就是lastest。注意后面有一个空格和点。
就可以按照描述构建一个镜像。
在laravel中使用leftJoin添加多个条件时,如select a.* from a left join b on a.id = b.pid and b.status = 1这种类似sql,发现框架自身封装的leftJoin不支持多个参数传递(当然可用写原生sql)
public function leftJoin($table, $first, $operator = null, $second = null)
{
return $this->join($table, $first, $operator, $second, 'left');
}