下载 http://dl.bintray.com/apache/thrift/debian/pool/main/t/thrift/thrift-compiler_0.9.3_amd64.deb
sudo dpkg -i ./thrift-compiler_0.9.3_amd64.deb
[......]
Category Archives: Linux
Linux下安装企业微信
http://elkpi.com/topics/ubuntu-16-04-wine-wxwork.html[......]
在nginx后部署gitbook
用独立二级域名结合gitbook后端服务
server {
server_name homs.coder4.com;
location / {
proxy_pass http://localhost:4000;
proxy_set_header Host $host;
proxy_buffering off;
}
}
路径转发,可以不用启动gitbook serve[......]
建立加密的Docker私有仓库
1 生成Docker私有仓库所需要的密钥
#!/bin/bash
NAME="docker_registry_certs"
VOLUME="$HOME/docker_data/docker_registry_certs"
SSL_IP="10.1.64.72"
# make sure volume valid
sudo mkdir -p $VOLUME && sudo chmod -R 777 $VOLUME
# submit to swarm mas[......]
Kubernetes借助vpn打通本地和集群内网
1 搭建集群
搭建Kubernetes集群,可以参考《Ubuntu 18.04快速部署Kubernetes集群
》 网络类型选择calico。
2 基本配置
执行如下脚本 config_openvpn_test.sh
#!/bin/bash
VOLUME="$HOME/openvpn"
vpn_ip="vpn.coder4.com"
# init for first time only
rm -rf $VOLUME
mkdir -p $VOLUME
dock[......]