• 问题杂记,不定时更新


    1.与window远程服务器连接,发现本地代码无法粘贴复制到远程服务器。taskmgr打开任务管理器,在进程找rdpclip.exe如果有的话,杀掉它,在cmd进入黑窗口,输入rdpclip.exe。这时就可本地与远程复制粘贴了。

    2.本地代码改动很多,发现并不是想要的,我们可以直接用git的代码覆盖本地代码。注意:本地修改的重要代码记得备份哦

      git fetch --all && git reset --hard origin/master && git pull

    3.idea突然报错,java需要‘)’等各种错误问题,然而查看并未缺少,这时检查下编码格式,是否与原来的编码相同,可能原来utf-8变成了GBK导致的

    4.该账号当前被锁定,所以用户sa的登录失败,系统管理员无法将该用户解锁。切换成window用户登录,执行以下sql

    ALTER LOGIN sa ENABLE ;
    GO
    ALTER LOGIN sa WITH PASSWORD = 'password' unlock, check_policy = off,
    check_expiration = off ;
    GO

     5.IntelliJ的各类编程工具激活码查询  http://idea.lanyus.com  (有时不一定有效)

    6.springBoot一直找不到bean,需要添加@ComponentScan注解才能找到,这是因为可能没有把application那个类移到外面

    7.springBoot测试里test.save(xxx)报错Inferred type 'S' for type parameter 'S' is not within its bound; should implement 'org.apache.catalina.User报错,这是因为springBoot的版本问题,要在pom.xml降低版本

    8.非虚拟机安装Kali,用其他各种刻录工具后安装一直报错,从光盘读取数据出错,确认光盘已被放置在驱动中,推荐使用Win32 Disk Imager工具刻录。

    9.Java的File.renameto(file)函数,重命名并移动到指定路径,在window机器正常,在Linux一直无法无法成功,这是因为他们的文件系统不同,推荐用阿帕奇的FileUtils。

    10.Jfinal上传文件getFile()函数,如果body有带参数,必须将参数放在getFile()调用后,才能获取到。

    11.mysql时区不对,导致与服务器相差13个小时,执行sql语句

     set global time_zone = '+08:00';
     
      set time_zone = '+08:00';

     12.IDEA插件

    • activate-power-mode
    • CodeGlance
    • Grep Console
    • Lombok plugin
    • Translation

    13.jps命令安装

    yum list *openjdk-devel*
    yum install java-1.7.0-openjdk-devel.x86_64
    which jps
    jps kafka

     14.kafka安装和测试

    https://www.cnblogs.com/littlehb/p/8438401.html
    https://blog.csdn.net/sinat_32023305/article/details/83860441

    kafka后台启动命令

    ./kafka-server-start.sh -daemon ../config/server.properties

    测试localhost地址要替换成自己配置文件的地址

    15.DOS格式化磁盘

    cmd - >diskpart - > list disk ->选择格式化的磁盘 select disk 1 ->clean

    16.logstash后台启动

    nohup /usr/local/logstash/bin/logstash -f /usr/local/logstash/bin/k_es.conf -w 8 -b 1000 > /dev/null 2>&1 

    17.安装Elasticsearch-sql

    https://www.cnblogs.com/biehongli/p/11716558.html
    ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.6.2/elasticsearch-analysis-ik-6.6.2.zip

     18.查看链接数量

    https://blog.csdn.net/he_jian1/article/details/40787269
  • 相关阅读:
    Oracle数据库面试题【转载】
    年龄计算周岁
    丈夫的权力与妻子的职业水平
    JDK 8 and JRE 8 Supported Locales
    一笔画 奇点 偶点
    流水行船问题
    PL/SQL LOOP SAMPLE
    OpenCV——识别各省份地图轮廓
    OpenCV——轮廓面积及长度计算
    树莓派3安装opencv2程序无法运行
  • 原文地址:https://www.cnblogs.com/dslx/p/10921576.html
Copyright © 2020-2023  润新知