Loading

随笔分类 -  Linux

1
摘要:内网环境连接生产需要多次跳转,今天突然中间的一台机器无法ssh过去,通过查看主机状态的时候未发现其他的异常,最后df -h的时候直接夯住,不能返回命令结果集,开始的时候以为是这个问题导致的,后来发现修复后也仍不能登录,这里仅仅记录下如何排查df -h夯住问题排查处理思路 strace -tt -T 阅读全文
posted @ 2024-01-19 10:07 李行行 阅读(38) 评论(0) 推荐(0) 编辑
摘要:原文连接:https://linux.cn/article-7310-1.html 在 Linux 系统中,我们经常用 free 命令来查看系统内存的使用状态。在一个 RHEL6 的系统上,free 命令的显示内容大概是这样一个状态: [root@tencent64 ~]# free total u 阅读全文
posted @ 2023-02-24 14:03 李行行 阅读(54) 评论(0) 推荐(0) 编辑
摘要:$ machinfo CPU info: #CPU信息 4 Intel(R) Itanium 2 9100 series processors (1.59 GHz, 18 MB) #4个CPU 532 MT/s bus, CPU version A1 8 logical processors (2 阅读全文
posted @ 2023-02-17 13:30 李行行 阅读(39) 评论(0) 推荐(0) 编辑
摘要:hp unix mount -F nfs -o rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp,suid,forcedirectio 172.16.8.90:/xtts /xtts aix mount -t n 阅读全文
posted @ 2023-02-17 13:23 李行行 阅读(200) 评论(0) 推荐(0) 编辑
摘要:今天碰见了两个常见小问题,简单记录下 1.Terminal too wide 处理方式:在当前会话界面输入以下内容stty columns 100 2.crontab无法调用 $ crontab -lcrontab:you are not authorized to use cron. Sorry. 阅读全文
posted @ 2023-02-13 10:19 李行行 阅读(122) 评论(0) 推荐(0) 编辑
摘要:1.使用dd命令创建一个大小为2G的文件[root@db-test-ls-3dd0 ~]# dd if=/dev/zero of=/u01/swapfile1 bs=1024 count=2097152 2097152+0 records in2097152+0 records out2147483 阅读全文
posted @ 2022-10-24 09:58 李行行 阅读(24) 评论(0) 推荐(0) 编辑
摘要:#云主机使用root密码登陆如下提示 输入密码后仍无法登陆,使用普通用户可以正常登陆且可以使用su - root切换到root用户下 root密码确认没有问题,root用户登陆参数,无问题 PermitRootLogin yes 后经排查发现sshd_config参数Banner被使用 Banner 阅读全文
posted @ 2022-09-30 11:08 李行行 阅读(960) 评论(0) 推荐(0) 编辑
摘要:pmap -x pid 阅读全文
posted @ 2021-09-14 14:22 李行行 阅读(58) 评论(0) 推荐(0) 编辑
摘要:应客户要求,配置告警信息,通过crontab命令来进行调用,配置完成之后,crontab任务一直无法调用,日志文件/var/log/cron有调用信息 解决: 脚本中添加一下命令,调用环境变量 #set -x source ~/.bash_profile 阅读全文
posted @ 2021-08-18 15:54 李行行 阅读(229) 评论(0) 推荐(0) 编辑
摘要:执行iotop -u -mysql报告 [root@oracle11g support-files]# iotop -u mysql File "/usr/sbin/iotop", line 10 except ImportError, e: ^ SyntaxError: invalid synta 阅读全文
posted @ 2021-08-17 20:51 李行行 阅读(255) 评论(0) 推荐(0) 编辑
摘要:tar -tvf 压缩包 查看目录内容 阅读全文
posted @ 2020-08-31 22:26 李行行 阅读(2695) 评论(0) 推荐(0) 编辑
摘要:\0:null字符 \n:换行 特殊文件,一般是使用空字符来进行分割的,比如: [root@rsync-test03 ~]# cat /proc/94577/environ HOSTNAME=rsync-test03SHELL=/bin/bashTERM=xtermHISTSIZE=1000QTDI 阅读全文
posted @ 2020-07-23 10:51 李行行 阅读(236) 评论(0) 推荐(0) 编辑
摘要:下面简单介绍一下Linux内核编译过程 该操作时在Linux redhat 6.5进行操作,Ubuntu操作同理,只需要下载对应的Linux内核就可以 1.下载linux-2.6.37.tar.bz2 链接:https://pan.baidu.com/s/1h_rjk8VjpQXr_InO-pw27 阅读全文
posted @ 2020-06-13 18:17 李行行 阅读(543) 评论(0) 推荐(0) 编辑
摘要:[root@tz-yycs-db01 etc]# systemctl list-unit-files |grep enable brandbot.path enabled auditd.service enabled autovt@.service enabled crond.service ena 阅读全文
posted @ 2020-05-27 10:56 李行行 阅读(1290) 评论(0) 推荐(0) 编辑
摘要:系统yum安装文件的时候,突然掉电重启。再次使用yum安装提示一下报错,但是能够安装成功 There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum 阅读全文
posted @ 2020-05-27 10:45 李行行 阅读(632) 评论(0) 推荐(0) 编辑
摘要:系统:redhat 7.6 说明:配置yum源,提示This system is not registered with an entitlement server. You can use subscription-manager to register. 配置文件: [root@localhos 阅读全文
posted @ 2020-05-26 19:59 李行行 阅读(23025) 评论(0) 推荐(1) 编辑
摘要:1.删除某个目录下的几天前的文件 find /u01/app/oracle/diag/rdbms/marc/marc1/trace -mtime +7 -exec rm {} \; find /u01/app/oracle/diag/rdbms/orcl/orcl/trace -mtime +1|x 阅读全文
posted @ 2020-02-26 10:16 李行行 阅读(133) 评论(0) 推荐(0) 编辑
摘要:系统版本 [root@rsync-test01 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.8 (Santiago) 脚本内容 #!/bin/bash cd /u01/app/oracle/diag/rd 阅读全文
posted @ 2020-02-25 10:06 李行行 阅读(734) 评论(0) 推荐(0) 编辑
摘要:服务器端配置 1.关闭防火墙,以及设置开启不自启 [root@localhost network-scripts]# systemctl stop firewalld [root@localhost network-scripts]# systemctl disable firewalld Remo 阅读全文
posted @ 2019-10-31 17:27 李行行 阅读(1525) 评论(0) 推荐(0) 编辑
摘要:inotifywait命令使用简介:inotifywait尤其适用于在脚本中等待某事件的发生,并可基于特定的事件执行相应操作。如将其用于脚本中监控某指定目录中的文件上的修改、新建、删除、属性信息的改变,而后使用rsync命令将某事件对应的文件同步至其它主机上。在测试过程中,测试inotifywait 阅读全文
posted @ 2019-01-14 10:30 李行行 阅读(659) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up dark_mode palette
选择主题