12 2019 档案

摘要:1 json string 转 JSONObject try { JSONObject jsonObject = new JSONObject("{\"phonetype\":\"N95\",\"cat\":\"WP\"}"); }catch (JSONException err){ Log.d(" 阅读全文
posted @ 2019-12-28 18:29 wolbo 阅读(4965) 评论(0) 推荐(0) 编辑
摘要:场景 //防止sql注入 Stream<String> idList =accDocIDList.stream().map((x) -> { if (x.matches("[^a-zA-Z0-9-]")) { //throw new BalanceException("xxx-xxx", "hehe 阅读全文
posted @ 2019-12-28 16:38 wolbo 阅读(2922) 评论(0) 推荐(0) 编辑
摘要:https://sqlbackupandftp.com/blog/how-to-backup-and-restore-postgresql-database 1 备份 pg_dump -v -f gscloud1912 -C -h 10.24.12.143 -U gscloud1912 gsclou 阅读全文
posted @ 2019-12-28 15:04 wolbo 阅读(510) 评论(0) 推荐(0) 编辑
摘要:1 查找锁表的pid select pid from pg_locks l join pg_class t on l.relation = t.oid where t.relkind = 'r' and t.relname = 'lockedtable'; 2 查找锁表的语句 select pid, 阅读全文
posted @ 2019-12-24 13:41 wolbo 阅读(18886) 评论(0) 推荐(0) 编辑
摘要:1 How to build maven project without version? 工程pom中增加 <project> ... <build> ... <finalName>${project.artifactId}</finalName> ... </build> ... </proje 阅读全文
posted @ 2019-12-19 13:56 wolbo 阅读(369) 评论(0) 推荐(0) 编辑
摘要:1 安装nginx sudo apt-get update sudo apt-get install nginx 配置文件 /etc/nginx/nginx.conf 2 安装redis sudo add-apt-repository universe sudo apt-get update sud 阅读全文
posted @ 2019-12-14 00:51 wolbo 阅读(246) 评论(0) 推荐(0) 编辑
摘要:配置如下 [/gscloud] path = /gscloud browseable = yes writable = yes guest ok = yes read only = no create mask = 0755 原因是 [/gscloud] 前面的/ 去掉之后可以访问了 阅读全文
posted @ 2019-12-13 19:17 wolbo 阅读(1199) 评论(0) 推荐(0) 编辑
摘要:1 sudo adduser wolbo 2 sudo vim /etc/sudoers root ALL=(ALL) ALLwolbo ALL=(ALL) ALL wolbo ALL=(ALL) NOPASSWD:ALL 免密 阅读全文
posted @ 2019-12-13 18:24 wolbo 阅读(1848) 评论(0) 推荐(0) 编辑
摘要:1 添加apt-get 代理配置文件 sudo vi /etc/apt/apt.conf.d/proxy.conf 2 添加内容 Acquire::http::Proxy "http://wolbo:Test6530@10.24.21.1:8888"; Acquire::https::Proxy " 阅读全文
posted @ 2019-12-13 18:03 wolbo 阅读(252) 评论(0) 推荐(0) 编辑
摘要:1 安装xfce $ sudo yum install -y epel-release $ sudo yum groupinstall -y "Xfce" $ sudo reboot 2 安装xrdp $ sudo yum install -y epel-release $ sudo yum ins 阅读全文
posted @ 2019-12-10 14:10 wolbo 阅读(830) 评论(0) 推荐(0) 编辑
摘要:$ git checkout <another-branch> <path-to-file> [<one-more-file> ...] $ git status $ git commit -m "'Merge' specific file from '<another-branch>'" 参考: 阅读全文
posted @ 2019-12-03 21:24 wolbo 阅读(1198) 评论(0) 推荐(0) 编辑
摘要:生成秘钥 ssh-keygen -t rsa 不要输入密码 默认生成在 ~/.ssh/id_rsa.pub 复制公钥追加至远端机器的 ~/.ssh/authorized_keys https://blog.csdn.net/qq_33319140/article/details/98965755 阅读全文
posted @ 2019-12-03 20:17 wolbo 阅读(3519) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示