在shell脚本中的while语句在linux上的使用help while来查看其基本的用法 从图上可以看出while语句的基本格式是 while command ; do command ;done 通过传参的方式使用while循环来进行变99乘法表:具体的shell语句如下图所示: 在cento ...
分类:
系统相关 时间:
2018-12-08 15:43:39
阅读次数:
229
1.创建容器$dockercreate-itubuntu:latest2.启动容器$dockerstart容器ID3.新建并启动容器$dockerrun-itubuntu:16.04/bin/bash4.守护态运行$dockerrun-dubuntu/bin/sh-c"whiletrue;doechohelloworld;sleep1;done"5.停止容器$dockersto
分类:
其他好文 时间:
2018-12-06 23:20:59
阅读次数:
195
修改xml配置,把自己的图片自动切勿做ubuntu 16.04的桌面壁纸~就像win7自动切换壁纸一样~
分类:
系统相关 时间:
2018-12-06 22:18:52
阅读次数:
232
Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. Traceback (mo... ...
分类:
其他好文 时间:
2018-12-04 20:08:28
阅读次数:
925
以下内容抄自阮一锋的ES6标准入门: ES6 的 Promise API 提供的方法不是很多,有些有用的方法可以自己部署。下面介绍如何部署两个不在 ES6 之中、但很有用的方法。 done() Promise 对象的回调链,不管以then方法或catch方法结尾,要是最后一个方法抛出错误,都有可能无 ...
分类:
其他好文 时间:
2018-12-04 18:47:21
阅读次数:
140
package main import ( "fmt" "sync" ) func print(idx int, wg *sync.WaitGroup) { fmt.Printf("index %d: \n", idx) wg.Done() } func main() { var wg sync.W... ...
分类:
其他好文 时间:
2018-12-04 11:24:12
阅读次数:
178
执行以上命令,发现/上的 inodes 占用率为81%,于是开始处理。 首先找出哪个目录底下文件数最多: 我找出的目录是/var/spool/clientmqueue目录,文件数有200万左右。之 所有有这么多,是因为定时任务的原因。如果某个定时任务执行时有输出内容, 这些输出内容会以邮件的形式发往 ...
分类:
其他好文 时间:
2018-12-02 01:18:45
阅读次数:
246
IF you are competent to unzip the pptx file and modify the XML it can be done, the slide size will change but the pictures will not change (they will ...
分类:
其他好文 时间:
2018-12-01 20:19:12
阅读次数:
233
处理从文件中读数据 官方说明 简单使用 示例中读取的是csv文件,如果要读tfrecord的文件,需要换成 tf.TFRecordReader 运行结果: 结合批处理 运行结果: ...
分类:
其他好文 时间:
2018-11-30 16:41:52
阅读次数:
1631
1、运维概述 1、什么是运维 服务器的运行维护 2、名词 1、IDC(互联网数据中心) 服务器租用、机柜租用 2、监控软件 zabbix、nagios、cactti 3、常用Linux操作系统 1、CentOS 2、RedHat 3、Ubuntu 4、虚拟化 5、Web正向代理(客户端知道自己使用的 ...
分类:
其他好文 时间:
2018-11-30 16:37:57
阅读次数:
184