摘要:package main import ( "encoding/hex" "fmt" ) func main() { a := "4769676162697445746865726E6574302F302F323400" bs, err := hex.DecodeString(a) if err != nil { panic(err) ...
阅读全文
摘要:func str2json(){ cmd := "['read': 2.0, 'write': 1.2}, {'read_mb': 4.0, 'write': 3.2}]" str := strings.Replace(string(cmd), "'", "\"", -1) str = strings.Replace(str, "\n", "", -1) ...
阅读全文
摘要:ubuntu16报错: add-apt-repository command not found sudo apt-get install python-software-properties sudo apt-get update sudo apt install software-propert
阅读全文
摘要:1、关闭ubuntu的防火墙ufw disable开启防火墙ufw enable2、卸载了iptablesapt-get remove iptables3、关闭ubuntu中的防火墙的其余命令iptables -P INPUT ACCEPTiptables -P FORWARD ACCEPTipta
阅读全文
摘要:阿里云上的服务器,运行的是ubuntu 16, 登录时报错 manpath: can't set the locale; make sure $LC_* and $LANG are correct安装zabbix时也看到大量因为这个not set导致的warning于是尝试fix解决办法是:sudo
阅读全文