上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 55 下一页
摘要: --delimiter --list-name--list-full --inverse --count --full --pgroup pgid 根据 pgid筛选 --group 依据 进程 real group ,即进程的 real group id筛选 --euid match by eff 阅读全文
posted @ 2021-08-06 11:10 ascertain 阅读(145) 评论(0) 推荐(0) 编辑
摘要: package ersatz; import org.junit.jupiter.api.Test; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStre 阅读全文
posted @ 2021-08-05 15:30 ascertain 阅读(53) 评论(0) 推荐(0) 编辑
摘要: touch 属于 GNU核心包 touch 用来更新文件的 atime mtime, 如果 FILE 不存在,将会创建新文件,如果 指定 --no-create --no-dereference 则不会创建 symbolic links touch 修改文件时间戳 可使用 -d --date 或 - 阅读全文
posted @ 2021-08-05 11:13 ascertain 阅读(56) 评论(0) 推荐(0) 编辑
摘要: - hosts: gale remote_user: root gather_facts: no tasks: - name: get path command: |+ pwd register: result - name: get debug result debug: var=result v 阅读全文
posted @ 2021-08-02 17:57 ascertain 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: hostname : 内核变量位置 /proc/sys/kernel/hostname, 启动时,会从 /etc/hostname读取 man hostname hostname 可获取 fqdn ip domain 还有 nis 等选项 设置Linux 的domain的方式,在 /etc/host 阅读全文
posted @ 2021-08-02 17:43 ascertain 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 解决超卖 package ersatz.thread; public class T { public static void main(String[] args) { Ticket ticket = new Ticket(); new Thread(ticket).start(); new Th 阅读全文
posted @ 2021-08-02 13:41 ascertain 阅读(38) 评论(0) 推荐(0) 编辑
摘要: package ersatz.thread; public class T { public static void main(String[] args) throws InterruptedException { B b = new B(); b.start(); Thread.sleep(5 阅读全文
posted @ 2021-08-02 11:08 ascertain 阅读(67) 评论(0) 推荐(0) 编辑
摘要: package ersatz.thread; public class T1 { public static void main(String[] args) throws InterruptedException { C c = new C(); c.start(); for (int i = 0 阅读全文
posted @ 2021-08-01 15:03 ascertain 阅读(22) 评论(0) 推荐(0) 编辑
摘要: package com.gibe; import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; public class Listen exte 阅读全文
posted @ 2021-07-31 23:02 ascertain 阅读(63) 评论(0) 推荐(0) 编辑
摘要: install mysql - hosts: gale remote_user: root gather_facts: no tasks: - name: install packages yum: name=libaio,perl - {name: create group, group: nam 阅读全文
posted @ 2021-07-31 20:52 ascertain 阅读(50) 评论(0) 推荐(0) 编辑
摘要: nginx-0.30.0 https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/mandatory.yaml Service: ingress-nginx/deploy/static 阅读全文
posted @ 2021-07-27 17:56 ascertain 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 实验用的Dockerfile 将busybox:musl 修改 为busybox:stable 构建 拉取 正常的 busybox:stable镜像 原来的busybox:stable tag被顶掉了 但此时其不为 dangling镜像,因为其被b.1引用了 再次对相同的Dockerfile构建 产 阅读全文
posted @ 2021-07-27 17:00 ascertain 阅读(350) 评论(0) 推荐(0) 编辑
摘要: theme: saffron 调整其页边距: 修改字体: 需要安装 Source Code Pro 修改什么,找到修改即可 修改 Shortcut 代码片段 阅读全文
posted @ 2021-07-27 15:02 ascertain 阅读(37) 评论(0) 推荐(0) 编辑
摘要: systemd Unit文件中的参数,与配置文件不能重复指定 Docker内置了一个DNS Server,它用来做两件事情: 解析docker network里的容器或Service的IP地址 把解析不了的交给外部DNS Server解析(dns参数设定的地址) live-restore:使重启 D 阅读全文
posted @ 2021-07-21 14:20 ascertain 阅读(173) 评论(0) 推荐(0) 编辑
摘要: [XTerm] text=00ff80 cyan(bold)=00ffff text(bold)=e9e9e9 magenta=c000c0 green=80ff00 green(bold)=3c5a38 background=042028 cyan=00c0c0 red(bold)=ff0000 阅读全文
posted @ 2021-07-19 09:58 ascertain 阅读(173) 评论(0) 推荐(0) 编辑
摘要: --cpu-shares 相对权重值,多个实例才可以看出效果, 默认 1024 --cpuset-cpus 执行运行的cpu 测试 测试两个容器,都绑定到 0,1,2 cpu, u1 --cpu-shares 1024 , u2 --cpu-shares 512 docker run -it --n 阅读全文
posted @ 2021-07-17 22:50 ascertain 阅读(57) 评论(0) 推荐(0) 编辑
摘要: package ersatz; import java.util.Comparator; import java.util.LinkedList; import java.util.List; public class Ersatz { public static void main(String[ 阅读全文
posted @ 2021-07-16 17:25 ascertain 阅读(300) 评论(0) 推荐(0) 编辑
摘要: /etc/environment/etc/environment 不是 script 脚本,而是让PAM解析的简单文本, 故不能使用命令, 变量, 每行都是简单的 name=value, # 用来注释,最先加载 /etc/profile /etc/bash.bashrc ~/.bashrc ~/.p 阅读全文
posted @ 2021-07-16 15:37 ascertain 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 分行查看PATH echo -e ${PATH//:/'\n'} ${param-value} 有时候,会看到 这种 用法 后跟 - 的目的是为了防止引用未设置的变量时报错 nocaseglob nocasematch 阅读全文
posted @ 2021-07-16 10:49 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要: FROM ubuntu MAINTAINER b<b@b.b> ENV path /usr/local WORKDIR $path RUN date RUN apt update RUN apt -y install vim EXPOSE 22 CMD echo $path CMD /bin/bas 阅读全文
posted @ 2021-07-15 23:17 ascertain 阅读(34) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 55 下一页