https://avatars.githubusercontent.com/u/6274534

Iptables 实践教程(一)

1 简介 linux的包过滤功能,即linux防火墙,它由netfilter 和 iptables 两个组件组成。 netfilter 组件也称为内核空间,是内核的一部分,由一些信息包

HAProxy 实践(一)

##运行环境 1 2 3 4 5 6 7 8 9 10 11 OS: Deiban 7 软件:haproxy 1.5.8 HTTP Server: 192.168.99.1:8520 192.168.99.1:8530 192.168.99.1:8540 192.168.99.1:8550 MySQL Server: 192.168.99.1:3306 按照该配置在命令行下执行 1 2 #可能需要管理员权限 sudo haproxy -d -f ./haproxy.cfg HTTP

Nginx 反向代理学习(一)

反向代理 apache 等 http 资源 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 ## Basic reverse proxy server ## upstream apachephp{ server 127.0.0.1:8560; #php5.6 server 127.0.0.1:8540; #php5.4 server 127.0.0.1:8530; #php5.3 server 127.0.0.1:8520; #php5.2 } server { listen 8500;

Raspberry PI B+ debian + wifi 网络设置

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 # file /etc/network/interfaces auto lo iface lo inet loopback #auto eth0 #allow-hotplug eth0 #iface eth0 inet manual auto wlan0 allow-hotplug wlan0 # 动态自动分配 IP #iface wlan0 inet dhcp #wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf # 静态 IP 地址 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

GO WEB 框架 开发 学习

反射使用样例: 1 2 3 4 5 6 7 8 t := reflect.Indirect(reflect.ValueOf(c)).Type() vc := reflect.New(t) method := vc.MethodByName("Method Name") // 参数列表, 无参数则设置in大小为0 in := make([]reflect.Value, 2) in[0] = reflect.ValueOf(param1) in[1] = reflect.ValueOf(param2) method.Call(in) xttp.go 初始化,注册控制器 router.go 控制器管理