上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 32 下一页

2019年9月5日

摘要: 1、显示所有用户 SELECT User, Host, Password FROM mysql.user; 2、授权用户使用某个数据库。 grant select on my_db.* to hjh; 3、设置密码 set password for hjh = password('xxx'); 4、 阅读全文
posted @ 2019-09-05 15:12 angelshelter 阅读(94) 评论(0) 推荐(0)

2019年8月10日

摘要: tomcat设置可被jconsole监控: 在catalina.bat或catalina.sh里面加上。 jvm并不是立即回收,而不是占用内存达到一定比例(比如90%), 一个空的jvm虚拟机也要占用1996360字节(1.9M) 内存不足,引起的原因是,虚拟机尝试回收,但是回收之后,内存还是很高。 阅读全文
posted @ 2019-08-10 21:17 angelshelter 阅读(120) 评论(0) 推荐(0)

2019年4月6日

摘要: 2019-04-06 a文件 库是预编译的目标文件(object files)的集合,它们可被链接进程序。静态库以后缀为‘.a’的特殊的存档文件(archive file)存储。 a文件转so文件:https://blog.csdn.net/vcwanglailing/article/details 阅读全文
posted @ 2019-04-06 10:42 angelshelter 阅读(119) 评论(0) 推荐(0)
摘要: 2019-04-06 $gcc -o hello hello.c //-o选项用来指定输出文件的文件名。 gcc *.c -o hello //使用通配符编译当前目录下的所有c文件 $ gcc -v -x c -E /dev/null //查看gcc的默认include目录 使用ldd 查看依赖的动 阅读全文
posted @ 2019-04-06 10:29 angelshelter 阅读(317) 评论(0) 推荐(0)

2019年3月31日

摘要: 2019-03-31 学习变量 $(call my-dir) /usr/bin2/android-ndk-r16/build/core $(CLEAR_VARS) /usr/bin2/android-ndk-r16/build/core/clear-vars.mk 2019-04-27 引用第三方自 阅读全文
posted @ 2019-03-31 09:46 angelshelter 阅读(119) 评论(0) 推荐(0)

2019年1月26日

摘要: 2019-01-23 nginx配置转发规则。 proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_fo 阅读全文
posted @ 2019-01-26 20:51 angelshelter 阅读(285) 评论(0) 推荐(0)

2019年1月5日

摘要: 2019-01-05 点评:开发效率很高,估计执行效率不高。只要不是高并发,还是不错的代码。 2019-01-0-13 一条记录最好只打印一行,中间没有换行符,这样在linux可以通过cat -n xxx.log | grep key 找到完整的一行数据。 阅读全文
posted @ 2019-01-05 22:12 angelshelter 阅读(124) 评论(0) 推荐(0)

2018年12月14日

摘要: 如果程序块锁用this,会不会和方法锁互斥? -- 不会。 package com.shtel.iptv3a.webservice; public class Main2 { public static void main(String[] args) { final Student s = new 阅读全文
posted @ 2018-12-14 22:26 angelshelter 阅读(122) 评论(0) 推荐(0)
摘要: 一笔画,不能走斜线,不能经过红色的点,能不能一笔画完。 我用程序跑的结果,是不存在这样的一笔画。 阅读全文
posted @ 2018-12-14 22:19 angelshelter 阅读(757) 评论(0) 推荐(0)

2018年11月10日

摘要: 2018-11-10 先对比一下存诸空间大小:https://pan.baidu.com/s/1I3K8ARfl4x8pC__B-T_vbA 输出的结果是 用JSON字符串体积最小,JavaBean对象其次,用JavaMap浪费空间最大。 因为java会在序列化中存一些类结构的数据,所以简单对象存储 阅读全文
posted @ 2018-11-10 16:22 angelshelter 阅读(268) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 32 下一页

导航