分类目录归档:其他编程相关

【置顶】docker修改代理源


方法二:改 host

设置代理

tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://jockerhub.com" ], "debug": true, "experimental": true } EOF

加载并重启

sudo systemctl daemon-reload sudo system...

Read more

【置顶】docker中安装zabbix


docker下安装zabbix的服务

基础

//通用的docker命令
//进入容器内的 bash shell
docker exec -it 容器名或ID /bin/bash

//查看日志
docker logs 容器名或ID

//查看容器信息,linux过滤结果用 grep , windows 用 findstr
docker inspect 容器名或ID | findstr IPA...

Read more

【置顶】Nginx配置与性能调优


Nginx常规配置

中文网址

location匹配

location 语法:location[=|~|~*|^~|@]/uri/{……}

/ 基于uri目录匹配
=表示把URI作为字符串,以便与参数中的uri做完全匹配
~表示正则匹配URI时是字母大小写敏感的
~*表示正则匹配URI时忽略字母大小写问题
^~表示正则匹配URI时只需要其前半部分与uri参数匹配即可
location = ...

Read more