编写Dockerfile # 使用哪个镜像为基础 FROM nginx # 安装apt-get后清理垃圾文件 RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* # 复制文件 COPY index. ...
分类:
其他好文 时间:
2021-01-20 11:55:13
阅读次数:
0
容器生命周期管理 run start/stop/restart kill rm pause/unpause create exec 容器操作 ps inspect top attach events logs wait export port 容器rootfs命令 commit cp diff 镜像 ...
分类:
其他好文 时间:
2021-01-20 11:47:15
阅读次数:
0
CF1461B Find the Spruce 题目大意: 求指定类型图案的数量。 思路: 一个很巧妙的递推式。 注意从下往上进行递推。 Code: #include <bits/stdc++.h> using namespace std; const int N = 510; int n, m; ...
分类:
其他好文 时间:
2021-01-19 11:39:58
阅读次数:
0
1、文件类 > 输出重定向 >> 输出追加 ls -l > out.txt 原来out.txt内容会被覆盖,下面的是追加 ls -l >> out.txt echo $PATH 输出内容到控制台 head -n 5 output.txttail -n 5 output.txt // 输出文件尾部5行 ...
分类:
其他好文 时间:
2021-01-18 11:20:11
阅读次数:
0
6.文件查找 与搜索相关的命令常用的有whereis、which、find和locate。 whereis简单快速 whereis <关键词> whereis搜索很快,因为其并没有从硬盘中依次查找,而是直接从数据库中查询。缺点是只能搜索二进制文件(-b)、man帮助文件(-m)和源代码文件(-s)。 ...
分类:
系统相关 时间:
2021-01-18 11:07:41
阅读次数:
0
public class test11 { public static void main(String[] args) { int [][]grid={{1,0,0,0},{1,1,0,0}}; int [][]hits={{1,1},{1,0}}; int []result=hitBricks( ...
分类:
其他好文 时间:
2021-01-18 10:36:45
阅读次数:
0
ubuntu 系统定时任务 crontab 常用命令 crontab -l # 查看任务信息 crontab -e # 用户编辑定时任务 # 用户定义定义任务推荐 # 编辑完后保存,会自动重新载入 crontab -r # 表示删除用户的定时任务,当执行此命令后,所有用户下面的定时任务会被删除 用户 ...
分类:
系统相关 时间:
2021-01-18 10:32:10
阅读次数:
0
This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu ...
分类:
其他好文 时间:
2021-01-16 12:09:45
阅读次数:
0
mongo --port 端口 查看用户use admindb.system.users.find().pretty() 查询操作次数db.serverStatus().opcounters 查看参数use admindb.adminCommand({getParameter:"*"})因为mgse ...
分类:
其他好文 时间:
2021-01-16 11:54:15
阅读次数:
0
1、查看日志 用户执行非法命令删除文件,sudo rm -rf share/ [root@check ~]# tail /var/log/secure ...
分类:
其他好文 时间:
2021-01-15 11:51:34
阅读次数:
0