(1).下载镜像,最好走代理,就算换阿里云镜像还是走官网镜像拉取
docker pull docker.elastic.co/elasticsearch/elasticsearch:6.5.1
(2).运行镜像,生成容器id:8360130bde68
docker run -d --name es -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.5.1
(3).进入容器bash,想自己修改配置可以改,我改下允许跨域
docker exec -it 8360130bde68 /bin/bash cd config vi elasticsearch.yml ##增加的配置 http.cors.enabled: true http.cors.allow-origin: "*"
(4).修改完重启容器.
docker restart 8360130bde68
(5).安装head插件
docker pull mobz/elasticsearch-head:5 docker run -d --name es_head -p 9100:9100 mobz/elasticsearch-head:5
c#中string和StringBuilder直接看看执行速度。(2).String类型累计赋值Test  ...
【一】.钩子文件的设置和创建(1).打开hooks目录,可以看到有一个post-commit.tmpl文件,这是一个模板文件。复制一份,重命名为post-commit,将其用户组设为www,并设置为可执行。chown www:www post-commitchmod +x post-commit(2...
1.全局用户信息设置 git config --global user.name gaojiufeng git config --global user.email 392223903...
git pull https://git.oschina.net/392223903/learn.git master 换为您的git地址...
public static string GetMD5(string str) { //创建MD5对象 MD5 md5 = MD5.C...
private const string fantizi = "高久峰是個程序員"; private const string jiantizi = "高久峰是个程序员...