logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

利用expect在linux shell脚本中交互(scp远程传输文件示例)

看代码:#!bin/shexpect<<EOFset timeout 200spawn scp res.zip root@192.168.160.12:/softexpect "password:"send "123456\r"expect eofEOFsend密码后面的'\r'必须要有。

linux mint 18虚拟机下设置1080P分辨率

1.create a shell script file and edit, contents:#!/bin/shcvt 1920 1080xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsyncxrandr --addmode V

docker使用consul作为注册中心,搭建跨机器网络集群

环境准备1. centos 7.4以上版本,内核版本大于3.10.02. 一台(或者多台)服务器(主要安装一些辅助服务,consul服务,docker仓库等)3. 多台生产服务器(主要部署应用等)这里我示例为:A机器:consul server服务部署, docker仓库部署, ip为:10.250.151.122B,C,D机器:生产服务器使用consu...

docker push异常error parsing HTTP 404 response body: invalid character ‘p‘ after top-level value: “404

具体异常提示:[root@xxxx conf.d]# docker push registry.hy.com/nginx:latestThe push refers to repository [registry.hy.com/nginx]9959a332cf6e: Preparingf7e00b807643: Preparingf8e880dfc4ef: Preparing788e89a4d18

文章图片
#http#docker#nginx
32位linux下使用gettimeofday获取毫秒一直返回负数记录

之前为了测试C++中代码执行消耗的时间,所以写了这么一个函数:long long __getmstime(){timeval tv;gettimeofday(&tv, NULL);return tv.tv_sec * 1000 + tv.tv_usec / 1000;}之前只是做减法算相差时间,今天突然做了一次输出__getmstime的时间,发现居然是负数,3

docker安装gitlab-ce镜像,使用其他端口,亲测可用

首先鄙视一下那些直接复制粘贴当自己博文的,误导别人,害我改了好久T.T。安装步骤:// 创建数据目录mkdir -p /data/gitlab/configmkdir -p /data/gitlab/logsmkdir -p /data/gitlab/data// docker启动,直接安装镜像,这里外部访问端口使用82, ssh端口为2222// 这里所有的都误导是80:...

#gitlab
到底了