shell /bin/true /bin/false
/bin/true 固定返回0 /bin/false 固定返回1
/bin/true 固定返回0 /bin/false 固定返回1
容器有且仅有一个前台能持续运行的进程 nginx 默认是后台守护进程的形式运行, nginx -g … 继续阅读 nginx -g daemon off
svc apiVersion: v1 kind: Service metadata: name: &… 继续阅读 kubernetes run tdengine
docker run -d -p 6030:6030 -p 6041:6041 -p 6043-60… 继续阅读 docker run TDengine
mkdir -p /data/docker/pgadmin/{data, logs} chown -… 继续阅读 docker run pgadmin
on build: docker build –add-host foo.bar:1.2.3.4 … 继续阅读 docker use extra hosts
#修改打开文件限制 echo 'ulimit -n 819200' >&g… 继续阅读 linux open file counts limits
#添加命令记录 echo "export PROMPT_COMMAND='{ m… 继续阅读 record history commands on shell
#bin/bash . /etc/profile #set mail message title_m… 继续阅读 clamav scan dir content
fyne编译windows二进制 # the fyne binfile can get via bu… 继续阅读 fyne build exe app
golang编译压缩 隐藏windows控制台框 go build -ldflags="-… 继续阅读 golang windows build hide cmd console
golang fyne 中文支持 func init() { //go get github.com… 继续阅读 golang fyne chinese font
mysql8.0 创建用户 需要先create create user gitea@'%&… 继续阅读 create user on mysql 8.0
// CheckImageFile 同时支持三种图片格式的真实性校验。 func CheckImag… 继续阅读 golang image Decode vertify image content
pip安装包加速配置 临时: pip install -i https://pypi.tuna.ts… 继续阅读 pip install global index url
error: ERROR: Could not install packages due to an… 继续阅读 ERROR: Could not install packages due to an OSError: [WinError 2]
bash <(wget –no-check-certificate -qO- 'h… 继续阅读 oracle vm dd to ubuntu 20.04
ConfigMap nginx-config kind: ConfigMap apiVersion:… 继续阅读 kubernetes run wordpress
shell清理harbor镜像: #!/bin/bash #需要先安装jq命令,如 yum inst… 继续阅读 clean harbor via shell
arm64: docker run -d –restart always –name privo… 继续阅读 arm64 docker run privoxy