摘要: 1. 添加用户到...目录中useradd -M -s /目录 username 2. 添加用户属于多个组 usermod -G 本组(用户名),组1,组2... 用户名 3. mysql添加禁止登录帐户 useradd -r -s /sbin/nologin -g mysql mysql -d / 阅读全文
posted @ 2020-11-24 09:58 smallf 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 设置Jvm启动参数: java -Xms1024m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xmn256m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC -ja 阅读全文
posted @ 2020-07-22 17:35 smallf 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 1.play eclipsify #myapp 转为eclipse目录结构 2.导入eclipse,一路next。 3.新增个Application -Xms1536m-Xmx2048m-Xdebug-Dplay.debug=yes-Dplay.id=-Dapplication.path="/Use 阅读全文
posted @ 2019-08-05 15:38 smallf 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 图一代码: public enum LogMethodEnum { WEBCSCARDVALID("返回值"), WEBCSVERIFYPASSWORD("返回值"), WEBCSSAVEPASSWORD("返回值"), WEBCSSETPASSWORD("返回值"), WEBCSQUERYTOTA 阅读全文
posted @ 2018-06-06 18:17 smallf 阅读(194) 评论(1) 推荐(0) 编辑
摘要: select TABLE_NAME, concat(truncate(data_length/1024/1024,2),' MB') as data_size, concat(truncate(index_length/1024/1024,2),' MB') as index_size from i 阅读全文
posted @ 2018-03-13 17:02 smallf 阅读(258) 评论(0) 推荐(0) 编辑
摘要: //加在series中itemStyle: { normal: { label: { show: true, position: 'top', textStyle: { color: '#615a5a' }, formatter:func... 阅读全文
posted @ 2018-01-02 15:44 smallf 阅读(807) 评论(0) 推荐(0) 编辑
摘要: //获取图片大小 public void readFileSize(String url,HttpServletRequest request){ //根路径 File file = new File(request.getRealPath("/")+url); InputStream is = n 阅读全文
posted @ 2017-12-21 11:43 smallf 阅读(1806) 评论(0) 推荐(0) 编辑
摘要: 1: internal -> appfuse-basic-jsf (创建一个基于Hibernate,Spring和JSF的Web应用程序的原型) 2: internal -> appfuse-basic-spring (创建一个基于Hibernate,Spring和Spring MVC的Web应用程 阅读全文
posted @ 2017-12-12 16:11 smallf 阅读(634) 评论(0) 推荐(0) 编辑
摘要: var get = function(url) { if(location.protocol "http") { return url; } var reg = /^(http[s]?:\/\/)?([^\/]+)(.*)/, matches = url.match(reg); url = list 阅读全文
posted @ 2017-11-21 11:55 smallf 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: 如果输入了 git config credential.helper 命令之后还是出现了osxkeychain, store 或者 cache 等,说明 git 的配置还是没有被清空,我参考了stackOverFlow上这个问题 有人给了这样一个命令查看 credential.helper 所在的文 阅读全文
posted @ 2017-11-03 13:29 smallf 阅读(700) 评论(0) 推荐(0) 编辑