摘要: 编译环境搭建: 运行: 测试: 《1》冗余: 阅读全文
posted @ 2016-08-16 15:27 RushoutAsia 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 编译环境搭建 《1》下载安装操作系统: CentOS 5.5 x86-64 《2》安装需要的各种包 yum install gcc gcc-c++ automake autoconf libtool readline readline-devel.x86_64 e4fsprogs e4fsprogs 阅读全文
posted @ 2016-08-11 13:35 RushoutAsia 阅读(579) 评论(0) 推荐(0) 编辑
摘要: tcpdump -i eth4 -n -p tcp and port 8080 -w./p.pcap -s0 阅读全文
posted @ 2016-08-09 19:10 RushoutAsia 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 清理包残留 dpkg -l | grep ^rc | cut -d' ' -f3 | sudo xargs dpkg --purge 阅读全文
posted @ 2016-08-08 11:50 RushoutAsia 阅读(127) 评论(0) 推荐(0) 编辑
摘要: cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 阅读全文
posted @ 2016-08-07 12:15 RushoutAsia 阅读(103) 评论(0) 推荐(0) 编辑
摘要: /proc/stat kernel/system statistics. Varies with architecture. Common entries include: cpu 3357 0 4313 1362393 The amount of time, measured in units o 阅读全文
posted @ 2016-07-11 14:34 RushoutAsia 阅读(276) 评论(0) 推荐(0) 编辑
摘要: curl -c ./cookie.txt -b ./cookie.txt -v -X POST -d '{"adminName":"admin","password":"admin"}' http21.100/authLogin -c 保存cookie -b 使用cookie -d 发送数据 -v 阅读全文
posted @ 2016-07-08 16:40 RushoutAsia 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 生成 java 代码时的警告: The default outer class name, "Auth", conflicts with a type declared in the proto file and an alternative outer class name is used: "A 阅读全文
posted @ 2016-07-06 23:50 RushoutAsia 阅读(513) 评论(0) 推荐(0) 编辑
摘要: cookie是当前识别用户、实现持久会话的最好方式。 cookie的基本思想就是让浏览器积累一组服务器特有的信息,每次访问服务器时都将这些信息提供给它。因为浏览器要负责存储cookie信息,所以此系统被称为客户端侧状态。 阅读全文
posted @ 2016-07-06 15:26 RushoutAsia 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 示例:import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") DSN (Data Source Name) [usern 阅读全文
posted @ 2016-07-05 15:25 RushoutAsia 阅读(350) 评论(0) 推荐(0) 编辑