linux
力不竭!!!战不止!!!
You just run, OK?
展开
-
如何快速定位到报错日志中的关键信息,一招学会,赶快GET吧
一般的服务器日志一个可能大的有几十上百m,小的也得几百k,里面内容是比较多的,如拿到日志没思路去看的话,下面一些办法可以让你快速定位到日志中的异常错误信息下面的这块日志可以作为练习参考步骤1:定位到错误信息再那个日志中(grep)当天日志可能比较多,被切分成很多个小日志如下图如果出现这种情况,我们可以使用这种办法来定位错误信息再那个日志中比如我们有相关的关键字可以直接用,用关键字匹配日志从上面我们可以直接定位到错误信息在server.log.2022-11-14-21和server.log原创 2022-11-29 22:25:53 · 4540 阅读 · 2 评论 -
[Docker Desktop]在创建的环境使用docker指令抛: Got permission denied while trying to connect to the...
使用Docker Desktop创建新环境之后使用docker指令报错。再次使用docker指令就ok了。原创 2022-10-17 14:38:04 · 489 阅读 · 0 评论 -
配置yum 源遇到的一个问题
阿里云配置yum源方法:#1、运行以下命令备份原软件源。sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup#2、运行以下任一命令添加CentOS 7软件源。sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.reposudo curl -o /etc/yum.re原创 2021-07-05 17:42:42 · 2142 阅读 · 0 评论 -
sed: 1: “s/os.remove(“/xx/xxx. ...“: invalid command code f
想使用sed指令替换root/路径下所有文件夹所有有次内容的文件时报这个错误sed -i “” ‘s/os.remove("/xx/xxx.conf")/#os.remove("/xx/xxx.conf")/g’ /root/*原因:替换的内容有/,将使用sed -i “” ‘s/原内容/想被替换的内容/g’ filename变为:sed -i “” ‘s|原内容|想被替换的内容|g’ filenamesed -i “” ‘s|os.remove("/xx/xxx.conf")|#os.remove原创 2021-04-19 17:09:47 · 1277 阅读 · 0 评论 -
在root用户下改变其他用户的java变量
#先准备一个脚本[root@hadoop /]#vi /root/test.sh#里面加上内容echo "" > ~/.bashrccat <<EOF > ~/.bashrc# .bashrc# Source global definitionsif [ -f /etc/bashrc ]; then . /etc/bashrcfi# Uncomment the following line if you don't like systemctl's auto原创 2021-03-23 16:58:21 · 1273 阅读 · 0 评论 -
linux升级openssl到1.1.1j 【2021-3-20】亲测可使
[root@hadoop ~]# wget https://www.openssl.org/source/openssl-1.1.1j.tar.gz[root@hadoop ~]# tar -zxvf openssl-1.1.1j.tar.gz -C /root/[root@hadoop ~]# cd /root/openssl-1.1.1j/[root@hadoop ~]# ./config --prefix=/usr/local/ssl --shared[root@hadoop ~]# mv /原创 2021-03-20 11:48:05 · 3376 阅读 · 0 评论 -
安装kibana后的坑
使用docker方式启动的kibana日志报错:{“type”:“log”,"@timestamp":“2021-01-15T12:22:48Z”,“tags”:[“license”,“warning”,“xpack”],“pid”:6,“message”:“License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Error: Request T原创 2021-01-15 20:31:33 · 3583 阅读 · 0 评论 -
很实用的linux指令
很实用的linux指令持续补充中。。。#实时将执行指令结果内容输出到文件中[将sh test.sh 执行的结果输出到/root/test.log中]nohup sh test.sh > /root/test.log 2>&1 #kill掉tomcat进程ps -ef |grep tomcat | grep -v grep | awk '{print $2}' | xargs sudo kill -9#列出当前路径下所有文件已经文件夹属性信息ls -lsh#linux原创 2021-01-06 14:43:19 · 8794 阅读 · 5 评论
分享