-
Anki: 自建服务器
2020-08-31
安装步骤 python3.6 (支持sqlite3) 安装pyaudio clone anki-sync-server nginx 配置 client 配置 python3.6 yum install sqlite-devel wget http://xx.com/me/software/Python-3.6.7.tgz 安装pyaudio wget http://portaudio.com/archives/pa_stable_v190600_20161030.tgz tar -zxvf pa_stable_v190600_20161030.tgz cd portaudio ./configure && make sudo make install vim /etc/ld.so.conf.d/portaudio.conf <<EOF /usr/local/lib EOF sudo ldconfig -v sudo…
-
consul 使用教程
2020-08-31
备份 $ consul snapshot save backup.snap 修复 $ consul snapshot restore backup.snap
-
consul-template 使用教程
2020-08-31
# 获取当前节点下的服务信息 {{ with node "agent-two" }} hello {{.Node.Address}} {{.Node}} {{range .Services}} {{.Service}} {{.Port}} {{.Tags | join ","}} {{.ID}} {{end}} {{end}} #### nginx config file user www www; {{with key "node/name/agent-one/assets" | parseJSON }} worker_processes {{.cpu}}; {{ if eq .cpu "2" }} worker_cpu_affinity 01 10; {{ else if eq .cpu "4" }} worker_cpu_affinity 1000 0100 0010 0001; {{ else…
-
dns缓存
2020-08-31
查看统计的信息 $ nscd -g 清除指定类型缓存 $ nscd -i passwd $ nscd -i group $ nscd -i hosts Linux 下开启缓存服务 NSCD - 运维之美
-
docker: 基础使用
2020-08-31
安装 Centos 7 wget https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo vim docker-ce.repo # 修改源为清华源 yum install docker-ce docker 旧版本配置路径 配置文件 /etc/sysconfig/docker-network /etc/sysconfig/docker-storage /etc/sysconfig/docker Unit File /usr/lib/systemd/system/docker.service Docker Registry 配置文件 /etc/containers/registries.conf docker-ce 配置路径 /etc/docker/daemon.json 添加加速仓库 vim /etc/docker/daemon.json { "Registry Mirrors": ["https://registry.docker-cn.com"] } 常用命令 run create ->…
-
Dockfile语法
2020-08-31
DockerFile 命令解析 FROM 它的妈妈是谁(基础镜像) MAINTAINER 告诉别人你创造了它(维护者信息) RUN 你想让它干嘛(把命令前面加上RUN) ADD 往它肚子里面放点文件(COPY…
-
ESXI取消网卡直通
2020-08-31
Edit the /etc/vmware/esx.conf file by changing the owner of the PCI device from passthru to vmkernel. Example of the edit: Change from: /device/000:02.0/owner = "passthru" Change to: /device/000:02.0/owner = "vmkernel" Reboot the ESX/ESXi host.
-
frp: 配置
2020-08-31
客户端配置: [common] #log_file = /dev/null log_level = info log_max_days = 1 protocol = tcp server_addr = xx.xx.xx.xx server_port = 7000 token = xxxxx [nas_ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 6000
-
gitlab安装与使用
2020-08-31
docker 安装gitlab $ sudo docker pull gitlab/gitlab-ce:latest GitLab CI/CD CI 环节包括3个Stage(阶段) build 编译 test 测试 deploy 发布 Stage 在.gitlab-ci.yml中通过如下定义: stages: - build - test…