03 2018 档案

golang hex to string
摘要:package main import ( "encoding/hex" "fmt" ) func main() { a := "4769676162697445746865726E6574302F302F323400" bs, err := hex.DecodeString(a) if err != nil { panic(err) ... 阅读全文

posted @ 2018-03-23 15:31 js.yeyong 阅读(906) 评论(0) 推荐(0)

golang中 将string转化为json
摘要: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) ... 阅读全文

posted @ 2018-03-16 17:00 js.yeyong 阅读(1913) 评论(0) 推荐(0)

ubuntu16报错: add-apt-repository command not found
摘要:ubuntu16报错: add-apt-repository command not found sudo apt-get install python-software-properties sudo apt-get update sudo apt install software-propert 阅读全文

posted @ 2018-03-14 09:27 js.yeyong 阅读(305) 评论(0) 推荐(0)

ubuntu16的防火墙关闭
摘要:1、关闭ubuntu的防火墙ufw disable开启防火墙ufw enable2、卸载了iptablesapt-get remove iptables3、关闭ubuntu中的防火墙的其余命令iptables -P INPUT ACCEPTiptables -P FORWARD ACCEPTipta 阅读全文

posted @ 2018-03-12 17:11 js.yeyong 阅读(4357) 评论(1) 推荐(1)

ubuntu 16 解决错误 manpath: can't set the locale; make sure $LC_* and $LANG are correct
摘要:阿里云上的服务器,运行的是ubuntu 16, 登录时报错 manpath: can't set the locale; make sure $LC_* and $LANG are correct安装zabbix时也看到大量因为这个not set导致的warning于是尝试fix解决办法是:sudo 阅读全文

posted @ 2018-03-12 16:45 js.yeyong 阅读(3208) 评论(0) 推荐(0)

导航