aliyun docker

aliyun docker https://cr.console.aliyun.com/cn-qingdao/mirrors 安装/升级Docker客户端 推荐安装1.10.0以上版本的Docker客户端,参考文档 docker-ce 配置镜像加速器 针对Docker客户端版本大于 1.10.0

golang程序在windows上,注册为服务

golang 程序在windows上,注册为服务 https://blog.csdn.net/yang8023tao/article/details/53332984 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51

visualbox share folder

visualbox share folder https://www.jianshu.com/p/21df1811133f 1.Windows创建一个共享文件 保存好目录,我的是D:\ virtualbox_share 2.打开共享文件夹选项 3.配置共享文件夹 选择固定分配,共享文件夹选择Wi

5W1H

5W1H 5W1H 分析法是我们工作中经常被使用到的方法, 但是, 你知道 5W1H 法是怎样产生的吗? 5W 5W1H 的前身是 5W 模式, 这个模式是 1948 年美国著名政治学家、传播学奠基者哈

resolv.conf, search, domain, nameserver, DNS

‘resolv.conf, search, domain, nameserver, DNS’ http://www.ttlsa.com/linux/resolv-conf-desc/ resolv.conf 是 resolver 类库使用的配置文件, 每当一个程序需要通过域名来访问 internet 上面的其它主机时, 需要利用该类库将域名转换成对应的IP, 然后才可进行访

裴讯N1

裴讯N1 斐讯N1折腾记: 降级及刷入官改 https://forum.khadas.com/t/burning-tools-for-linux-pc/1832 https://github.com/khadas/utils

centos audit.log

centos audit.log 1 2 3 4 5 6 7 ansible all -m yum -a 'name=audit state=present' ansible all -m yum -a 'name=audit-libs state=present' ansible all -m service -a 'name=auditd state=restarted'

Execute bash script from URL

Execute bash script from URL 1 2 3 4 5 bash <(curl -s http://mywebsite.com/myscript.txt) curl -s https://myurl.com/script.sh | bash /dev/stdin param1 param2 Directly run bash scripts in Github Gists locally in Terminal. Get the raw version of it and copy the link. Now we are going to curl that link to get the content in the file and then pass that content to bash. https://stackoverflow.com/questions/5735666/execute-bash-script-from-url

redis docker

redis docker 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 podman run \ -d \ --name redis \ -p 6379:6379 \ -v /etc/localtime:/etc/localtime:ro \ redis docker run -it --rm redis redis-cli -c -h 192.168.1.xxx #创建并启动容器 sudo docker run --name redis-x -p 6379:6379 -d redis #启动 sudo docker start redis-x sudo docker exec -it

tomcat autoDeploy="false" deployOnStartup="false"

‘tomcat autoDeploy="false” deployOnStartup="false”’ https://stackoverflow.com/questions/26884335/tomcat-deploy-only-manager-on-startup From the Apache 6 documentation: https://tomcat.apache.org/tomcat-6.0-doc/config/context.html in the Attributes section of Context, the documentation for the path attribute specifies: This attribute must only be used when statically defining a Context in server.xml. In all other circumstances, the path will be inferred from the filenames used for either the .xml context file or the docBase. Even when statically defining a Context in server.xml, this attribute must not be set unless either the docBase is not located under the Host’s appBase or both deployOnStartup and autoDeploy are false.

Archlinux, Pixelbook, chromeos, Crostini

Archlinux, Pixelbook, chromeos, Crostini https://wiki.archlinux.org/title/Chromebook_Pixel_2 https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini Enabling Linux support Settings > Linux > Enable Delete the Debian container (optional) 1 2 vmc destroy termina vmc start termina Install an Arch linux container Open a new terminal in Chrome (Ctrl + Alt + T) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

dnsmasq config 配置

‘dnsmasq config 配置’ DNSmasq是一个小巧且方便地用于配置DNS和DHCP的工具,适用于小型网络。它提供了DNS功能和可选择的DHCP功

archlinux clean

archlinux clean 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 # pacman 缓存 目录 /var/cache/pacman/pkg # 查看缓存目录大小 du -sh /var/cache/pacman/pkg # remove cached packages that are not

vscode basic,vscode, visual studio code

vscode basic,vscode, visual studio code debian install visual studio code install from repo https://linuxize.com/post/how-to-install-visual-studio-code-on-debian-9/ download deb https://code.visualstudio.com/# vscode 列编辑 Alt+Shift+鼠标左键拖动, 选中拖动的区域内容 https://blog.csdn.net/u011127019/article/details/74039598 vscode remote ssh, A> ssh> B A 安装插

输出重定向 Linux Shell 1>/dev/null 2>&1

输出重定向 Linux Shell 1>/dev/null 2>&1 https://blog.csdn.net/sunboy_2050/article/details/9288353 shell中可能经常能看到: 1 echo log > /dev/null 2>&1 命令的结果可以通过 “>” 的形式来定义输出 /dev/null 代表空设备文件 > > : 代表重定向到哪里,例如

Perf

Perf 从2.6.31内核开始,linux内核自带了一个性能分析工具perf,能够进行函数级与指令级的热点查找。 Perf 是用来进行软件性能分析的工具。 通

ID Mapper, idmapper, fs.nfs.idmap_cache_timeout

ID Mapper, idmapper, fs.nfs.idmap_cache_timeout Id mapper is used by NFS to translate user and group ids into names, and to translate user and group names into ids. Part of this translation involves performing an upcall to userspace to request the information. fs.nfs.idmap_cache_timeout 设置idmapper缓存项的最大寿命,单位是秒 https://www.kernel.org/doc/Documentation/filesystems/nfs/idmapper.txt https://www.cnblogs.com/tolimit/p/5065761.html

epoll, kqueue

epoll, kqueue epoll 通过使用红黑树(RB-tree)搜索被监视的文件描述符(file descriptor)。 用户空间与内核空间 现在操作系统都是采用虚拟存储

Shell 逐行处理文本文件

Shell 逐行处理文本文件, shell 读文件 https://www.cnblogs.com/dwdxdy/archive/2012/07/25/2608816.html read命令 read命令接收标准输入,或其他文件描述符的输入,得到输入后,read命令将数据放入一个标准变量中

RCU

RCU RCU是read-copy-update的简称,翻译为中文有点别扭"读-复制-更新”。它是是一种同步机制,有三种角色