07 2016 档案

摘要:/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 阅读(284) 评论(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 阅读(145) 评论(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 阅读(534) 评论(0) 推荐(0)
摘要:cookie是当前识别用户、实现持久会话的最好方式。 cookie的基本思想就是让浏览器积累一组服务器特有的信息,每次访问服务器时都将这些信息提供给它。因为浏览器要负责存储cookie信息,所以此系统被称为客户端侧状态。 阅读全文
posted @ 2016-07-06 15:26 RushoutAsia 阅读(114) 评论(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 阅读(356) 评论(0) 推荐(0)
摘要:Host 列: 对应的允许访问域(%表示全域,192.168.%.%表示对应账号对该段均可访问,192.168.1.1表示对应账号仅这台机器可访问) 删除用户: drop user 用户名@'%'; drop user 用户名@ localhost; 刷新权限: flush privileges; 阅读全文
posted @ 2016-07-05 13:58 RushoutAsia 阅读(198) 评论(0) 推荐(0)
摘要:用途: 关联主机名和IP地址 在机器启动时,在DNS正常工作前,需要知道一些主机名和IP地址的映射关系,这个映射关系就保存在/etc/hosts文件中,在DNS不能正常工作是,系统中所有的网络程序将查看该文件以决定IP地址对应的主机名。 格式: 每行一个IP地址 IP_address canonic 阅读全文
posted @ 2016-07-05 13:24 RushoutAsia 阅读(494) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-07-05 10:28 RushoutAsia 阅读(84) 评论(0) 推荐(0)
摘要:-Wall 打开警告选项 -ggdb3 添加调试信息 阅读全文
posted @ 2016-07-04 22:36 RushoutAsia 阅读(806) 评论(0) 推荐(0)