#安装依赖yum install -y curl policycoreutils-python openssh-server #下载软件包wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.2.2-ce.0 ...
分类:
其他好文 时间:
2019-08-29 17:46:57
阅读次数:
119
装服务的时候遇到如下情况SSL connect error: 问题原因: nss版本过旧 解决方法: yum -y update nss 更新一下就可以了 若再出现下面状况Couldn't resolve host: 解决方法:重新尝试 ...
分类:
Web程序 时间:
2019-08-29 09:54:43
阅读次数:
121
在service 运行的情况下 进行更新 1. 创建 名为 demo 的 overlay 网络 docker network create -d overlay demo 2. 创建 python-flask-demo:1.0 服务 映射 本地的 8080 端口 到 容器的 5000端口 docke ...
分类:
其他好文 时间:
2019-08-27 19:07:49
阅读次数:
88
```bash /bin/bash 指定日期(3个月前) DATA= 当前日期 time= 删除3个月前的日志 curl XDELETE http://127.0.0.1:9200/ ${DATA} if [ $? eq 0 ];then echo $time" del $DATA log succ ...
分类:
其他好文 时间:
2019-08-27 18:55:35
阅读次数:
154
给大家说一个poatman导入接口的好办法,平常要是想在postman上模拟接口,如果复杂的很难配,其实有一个很简单的方法: 现在我模拟一下百度搜索时历史记录的接口: 点击Copy as cUrl 然后到postman中,如下操作: 选择如下,然后ctrl+v,点击“import”: 大功告成,是不 ...
分类:
其他好文 时间:
2019-08-27 13:03:40
阅读次数:
174
注意点: 1. 从官网下载以 rpm 结尾的软件包 7.3.1版本 下载地址: https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.3.1-x86_64.rpm 2. 如果下载 的是以 .tar.gz 结尾的软件包 ...
分类:
其他好文 时间:
2019-08-26 00:19:23
阅读次数:
81
docker仓库harbor1.82http部署Harbor是VMware公司开源的企业级DockerRegistry项目,项目地址:https://github.com/vmware/harbor1、下载离线安装包2、安装Docker3、安装docker-compose4、自签TLS证书5、Harbor安装与配置6、Docker主机访问Harbor部署curl-Lhttps://github.c
分类:
Web程序 时间:
2019-08-21 09:21:42
阅读次数:
206
安装步骤: 1,打开Mac 终端; 2,输入: curl -L -o finalshell_install.sh www.hostbuf.com/downloads/finalshell_install.sh;chmod +x finalshell_install.sh;sudo ./finalsh ...
分类:
系统相关 时间:
2019-08-20 18:58:37
阅读次数:
1541
现在项目基本都是UTF 8编码的,但是有个别网站还是GBK编码的,比如搜狗。采集到的GBK编码的页面处理会导致解析不了html内容。 处理方法 1. 转换页面内容为UTF 8 2. 替换页面的头部GBK为UTF 8 这一点很重要 之前处理字符串编码问题的方法 curl 检测响应Content Typ ...
分类:
其他好文 时间:
2019-08-20 12:28:38
阅读次数:
77
public function indexAction(){ $appid = 'wx3d2dd6b811128'; $appsecret = '3707622221affc0f3dsffs30823770'; $wxcode =$_POST['code']; $cont = $this->curl ...
分类:
微信 时间:
2019-08-19 19:25:53
阅读次数:
98