摘要: vim /etc/yum.repos.d/CentOS-epel.repo failovermethod=priority 注释 :wq! 强制保存 阅读全文
posted @ 2022-03-28 13:55 只可远观呢 阅读(1609) 评论(0) 推荐(0)
摘要: # wget http://download.redis.io/releases/redis-6.0.8.tar.gz # tar xzf redis-6.0.8.tar.gz # cd redis-6.0.8 # make# cat redis.conf | grep -v "#" | grep 阅读全文
posted @ 2022-03-18 16:35 只可远观呢 阅读(28) 评论(0) 推荐(0)
摘要: 1:赋值 String s1 = "123"; String s2 = "123"; System.out.println(s1 == s2); System.out.println(s1.equals(s2)); String字符串属于常量,常量需要进入内存中的字符串常量池(进入常量池规则:如果常 阅读全文
posted @ 2022-03-01 14:41 只可远观呢 阅读(59) 评论(0) 推荐(0)
摘要: JSONObject json = new JSONObject(); //按照put的先后顺序 JSONObject json = new JSONObject(new LinkedHashMap()); 阅读全文
posted @ 2021-12-14 14:37 只可远观呢 阅读(302) 评论(0) 推荐(0)
摘要: 执行: chown -R mysql:mysql /var/lib/mysql 报错: chown: invalid user: ‘mysql:mysql’ 执行以下命令: chattr -ia /etc/passwdchattr -ia /etc/groupchattr -ia /etc/shad 阅读全文
posted @ 2021-11-26 21:06 只可远观呢 阅读(5452) 评论(1) 推荐(0)
摘要: public static void main(String[] args) throws Exception { String a = "a"; System.out.println("修改前" + a ); Field value = a.getClass().getDeclaredField( 阅读全文
posted @ 2021-10-30 21:51 只可远观呢 阅读(77) 评论(0) 推荐(0)
摘要: ok:try { if (true) { System.out.println("?"); break ok; } System.out.println("正常执行");} catch (Exception e) {} 阅读全文
posted @ 2021-10-30 21:13 只可远观呢 阅读(64) 评论(0) 推荐(0)
摘要: 错误:Couldn’t connect to host, port: smtp.qq.com, 25;原因:阿里云禁用25端口更正:spring: mail: host: smtp.qq.com password: password username: @qq.com protocol: smtp 阅读全文
posted @ 2021-10-30 15:56 只可远观呢 阅读(102) 评论(0) 推荐(0)