返回总目录页
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 68 下一页
摘要: 运行容器 退出快捷键 ctrl+p ctrl+q 查看容器 [root@mcw1 ~/mcwdocker]$ docker run centos pwd #运行容器后面接命令执行 / [root@mcw1 ~/mcwdocker]$ docker run centos ls / #运行容器后面接命令 阅读全文
posted @ 2021-12-26 23:24 马昌伟 阅读(221) 评论(0) 推荐(0)
摘要: 使用官方安装脚本自动安装 安装命令如下: curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun 也可以使用国内 daocloud 一键安装命令: curl -sSL https://get.daocloud.io/doc 阅读全文
posted @ 2021-12-26 23:19 马昌伟 阅读(1083) 评论(0) 推荐(0)
摘要: hello-world 最小的镜像 从Docker Hub 下载这个镜像 [root@mcw1 /application]$ docker pull hello-worldUsing default tag: latestlatest: Pulling from library/hello-worl 阅读全文
posted @ 2021-12-26 23:16 马昌伟 阅读(575) 评论(0) 推荐(0)
摘要: 部署单机版es tar xf elasticsearch-7.16.0-linux-x86_64.tar.gz./bin/elasticsearch -dcan not run elasticsearch as root su - machangwei./bin/elasticsearch -d # 阅读全文
posted @ 2021-12-22 01:54 马昌伟 阅读(2590) 评论(0) 推荐(0)
摘要: 原文链接:https://www.cnblogs.com/lanyinhao/p/9634742.html 1、模块说明 requests是使用Apache2 licensed 许可证的HTTP库。 用python编写。 比urllib2模块更简洁。 Request支持HTTP连接保持和连接池,支持 阅读全文
posted @ 2021-12-21 18:48 马昌伟 阅读(1849) 评论(0) 推荐(0)
摘要: 参考官网:http://www.ansible.com.cn/docs/developing_modules.html#tutorial 阅读 ansible 附带的模块(上面链接)是学习如何编写模块的好方法。但是请记住,ansible 源代码树中的某些模块是内在的,因此请查看service或yum 阅读全文
posted @ 2021-12-20 18:59 马昌伟 阅读(2149) 评论(0) 推荐(0)
摘要: SimpleHTTPServer实现文件的展示和下载 可以用python2.7直接启动一个进程。以命令执行的当前目录为页面根目录,如果不存在index.html,默认展示当前目录的所有文件。 python3改动了:python -m http.server 端口号 如果有txt文件就是,可以浏览器页 阅读全文
posted @ 2021-12-20 18:58 马昌伟 阅读(5511) 评论(0) 推荐(0)
摘要: 总结 正确的修改进文件命令(替换文件内容):sed -i "s#machangwei#mcw#g" mcw.txt 正确的修改追加进文件命令(追加文件内容):sed -i "\$a 8: wo bu hao\!" mcw.txtsed -i '$a 7: wo hen hao!' mcw.txt 最 阅读全文
posted @ 2021-12-20 18:57 马昌伟 阅读(803) 评论(0) 推荐(0)
摘要: 字符串和单元格内容拼接函数CONCATENATE a@马踏星空:=CONCATENATE(D2,E2,F2)拼接指定单元格内字符串,无分隔符 a@马踏星空:=CONCATENATE(I4,"-",E4)拼接指定单元格内字符串,指定分隔符- a@马踏星空:=CONCATENATE("Nginx","- 阅读全文
posted @ 2021-12-20 12:53 马昌伟 阅读(81) 评论(0) 推荐(0)
摘要: 简单绘图,折线图,并保存为图片 import matplotlib.pyplot as plt x=[1,2,3,4,5] y=[10,5,15,10,20] plt.plot(x,y,'ro-',color='blue') plt.savefig('testblueline.jpg') plt.s 阅读全文
posted @ 2021-12-20 12:50 马昌伟 阅读(1175) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 68 下一页
博主链接地址:https://www.cnblogs.com/machangwei-8/