摘要: 1.安装补全命令sudo apt-get install bash-completion2.修改配置文件/etc/profile,添加sudo vi /etc/profile /* */ if [ -f /etc/bash_completion ]; then. /etc/bash_completi 阅读全文
posted @ 2023-08-15 17:04 听风者~ 阅读(136) 评论(0) 推荐(0) 编辑
摘要: $ ll -bash: ll: command not found没有ll这个命令。 一行搞定: echo "alias ll='ls -l'" >> ~/.bashrc && source ~/.bashrc 阅读全文
posted @ 2023-08-15 16:40 听风者~ 阅读(144) 评论(0) 推荐(0) 编辑
摘要: gitlab-rails csettings = ApplicationSetting.lastsettings.update_column(:runners_registration_token_encrypted, nil)settings.update_column(:encrypted_ci 阅读全文
posted @ 2022-08-10 10:40 听风者~ 阅读(110) 评论(0) 推荐(0) 编辑
摘要: https://www.macdo.cn/925.html 阅读全文
posted @ 2021-02-02 23:25 听风者~ 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 一本书,delete是把目录撕了,truncate是把书的内容撕下来烧了,drop是把书烧了 阅读全文
posted @ 2020-11-06 10:41 听风者~ 阅读(116) 评论(0) 推荐(0) 编辑
摘要: docker kill --signal=SIGINT 容器名称或容器id 亲测好用。 阅读全文
posted @ 2020-10-29 11:13 听风者~ 阅读(4753) 评论(0) 推荐(0) 编辑
摘要: 现有需求 @Log(description = "{a}查询{b}的数据") 动态拼接参数保存到数据库中,就像redis缓存中key的动态拼接,@Cacheable(value="RptGroupAgent",key="'localAgentName'+#localAgentName") 。接下来我 阅读全文
posted @ 2020-06-29 15:48 听风者~ 阅读(10732) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-23 10:16 听风者~ 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 多态是同一个行为具有多个不同表现形式或形态的能力。 多态就是同一个接口,使用不同的实例而执行不同操作。 现实中,比如我们按下 F1 键这个动作: 如果当前在 Flash 界面下弹出的就是 AS 3 的帮助文档; 如果当前在 Word 下弹出的就是 Word 帮助; 在 Windows 下弹出的就是 阅读全文
posted @ 2019-04-21 22:39 听风者~ 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1、打开终端 2、输入以下代码查看当前鼠标移动速度 defaults read -g com.apple.mouse.scaling 你会看到输出的是 “3”,这是初始速度 3、输入以下代码改变鼠标移动速度 defaults write -g com.apple.mouse.scaling 7 后面 阅读全文
posted @ 2018-11-18 18:23 听风者~ 阅读(7704) 评论(0) 推荐(0) 编辑
摘要: https://blog.bosonnlp.com/c16a60c5b591.html 阅读全文
posted @ 2018-03-13 17:14 听风者~ 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1、面向对象的特征有哪些方面?2、访问修饰符public,private,protected,以及不写(默认)时的区别?3、String 是最基本的数据类型吗?4、float f=3.4;是否正确?5、short s1 = 1; s1 = s1 + 1;有错吗?short s1 = 1; s1 += 阅读全文
posted @ 2018-03-13 16:33 听风者~ 阅读(128) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/snowater/p/8024776.html 在Java开发过程中,使用iterator遍历集合的同时对集合进行修改就会出现java.util.ConcurrentModificationException异常,本文就以ArrayList为例去理解和 阅读全文
posted @ 2018-03-13 16:29 听风者~ 阅读(220) 评论(0) 推荐(0) 编辑
摘要: “服务不支持 chkconfig”: 请注意检查脚本的前面,是否有完整的两行:#chkconfig: 2345 80 90 #description:auto_run 在脚本前面这两行是不能少的,否则不能chkconfig命令会报错误。 阅读全文
posted @ 2017-03-06 17:10 听风者~ 阅读(3123) 评论(0) 推荐(1) 编辑
摘要: 启动redis server后,SecureCRT进入redis-cli,输入不断在后面追加IP:Port显示设置当前的Session Options-->Terminal-->Emulation-->Terminal为Linux 之后就正常了: 阅读全文
posted @ 2017-03-06 16:25 听风者~ 阅读(2280) 评论(0) 推荐(0) 编辑
摘要: 先停止所有mysql有关进程。 1 sudo rm /usr/local/mysql2 sudo rm -rf /usr/local/mysql*3 sudo rm -rf /Library/StartupItems/MySQLCOM4 sudo rm -rf /Library/Preference 阅读全文
posted @ 2017-02-28 16:19 听风者~ 阅读(1062) 评论(0) 推荐(0) 编辑
摘要: 一、问题描述 mac有自带的终端,可以运行ssl和sftp,但是目录操作,文件操作和文件上传是分开的,很不方便,并且文件上传命令需要文件的全路路径。 使用securecrt能方便的解决上述的问题,并且文件上传采用选择文件的方式。但是由于有多个服务器需要连接和管理,每次连接securecrt都需要重新 阅读全文
posted @ 2017-02-15 16:46 听风者~ 阅读(1626) 评论(0) 推荐(0) 编辑
摘要: 配置hibernate时出现了如下错误: Java.lang.NoClassDefFoundError: org/hibernate/util/DTDEntityResolver 错误原因:hibernate3.5以后,hibernate-core已经集成了hibernate-annotations 阅读全文
posted @ 2017-02-13 17:14 听风者~ 阅读(259) 评论(0) 推荐(0) 编辑
摘要: sqlite3 ~/Library/Keychains/*/ocspcache.sqlite3 'DELETE FROM responses WHERE responderURI LIKE "%http://%.globalsign.com/%";' 阅读全文
posted @ 2016-11-02 10:23 听风者~ 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: (1).Apache安装 首先要安装APR、APR-Util和PCRE。安装之前,来看下怎么下载它们。先来看下APR与APR-Util的下载,大家可以去http://apr.apache.org进行下载,看下面两张图: 再来看下怎么下载PCRE。大家可以去http://www.pcre.org进行下 阅读全文
posted @ 2016-10-28 17:08 听风者~ 阅读(1594) 评论(0) 推荐(0) 编辑
摘要: 1、执行python mysql数据库查询操作时,产生中文乱码 运行结果: 2、解决办法 在连接数据库的时候,加个参数,说明数据库那边的字段类型一致,charset='utf8'。 db = MySQLdb.connect("192.168.1.1", "root", "111111", "test 阅读全文
posted @ 2016-10-28 15:26 听风者~ 阅读(5471) 评论(0) 推荐(0) 编辑
摘要: 1、Java环境配置问题: java_home:D:\Program Files\Java\jdk1.7.0_25(安装jdk路径) classpath:.;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar path:在path路径中添加%java_h 阅读全文
posted @ 2016-10-28 12:29 听风者~ 阅读(31638) 评论(5) 推荐(6) 编辑
摘要: 阅读全文
posted @ 2016-10-26 16:41 听风者~ 阅读(2059) 评论(0) 推荐(0) 编辑
摘要: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun BY KAVIT · OCTOBER 1, 2015 Have you upgraded to OS X 阅读全文
posted @ 2016-10-20 10:41 听风者~ 阅读(42430) 评论(0) 推荐(2) 编辑
摘要: Druid是阿里巴巴开源平台上的一个项目,整个项目由数据库连接池、插件框架和SQL解析器组成。该项目主要是为了扩展JDBC的一些限制,可以让程序员实现一些特殊的需求,比如向密钥服务请求凭证、统计SQL信息、SQL性能收集、SQL注入检查、SQL翻译等,程序员可以通过定制来实现自己需要的功能。 1、p 阅读全文
posted @ 2016-10-19 23:43 听风者~ 阅读(2239) 评论(0) 推荐(0) 编辑
摘要: Percona server安装和MySQL安装一模一样,安装如下: 1、安装依赖包 yum y install gcc gcc c++ ncurses ncurses devel 2、下载相应源码包 wget http://www.cmake.org/files/v2.8/cmake 2.8.11 阅读全文
posted @ 2016-10-19 17:44 听风者~ 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 操作系统:centos7 1、[root@chaoge ~]# ifconfig-bash: ifconfig: 未找到命令 安装net-tools即可: [root@chaoge ~]# yum install net-tools 阅读全文
posted @ 2016-10-17 11:34 听风者~ 阅读(102) 评论(0) 推荐(0) 编辑
摘要: spring mvc里的root/child WebApplicationContext的继承关系 在传统的spring mvc程序里会有两个WebApplicationContext,一个是parent,从applicationContext.xml里加载的,一个是child,从servlet-c 阅读全文
posted @ 2016-10-13 15:14 听风者~ 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 一、问题 hive如何将 a b 1a b 2a b 3c d 4c d 5c d 6 变为: a b 1,2,3c d 4,5,6 二、数据 test.txt a b 1 a b 2 a b 3 c d 4 c d 5 c d 6 三、答案 1.建表 drop table test;create 阅读全文
posted @ 2016-09-28 14:33 听风者~ 阅读(3250) 评论(0) 推荐(0) 编辑
摘要: TRUNCATE:truncate用于删除所有的行,这个行为在hive元存储删除数据是不可逆的delect:用于删除特定行条件,你可以从给定表中删除所有的行insert overwrite table table_name select * from table_name where 1=0; 阅读全文
posted @ 2016-09-28 14:33 听风者~ 阅读(742) 评论(0) 推荐(0) 编辑