随笔分类 -  linux系统

摘要:lsblk -o SERIAL /dev/sdb 或者 smartctl --all /dev/sdb|grep "Serial Number" 阅读全文
posted @ 2022-09-02 11:19 zk01 阅读(578) 评论(0) 推荐(0) 编辑
摘要:岛怪服务:denyhosts 问题描述: ssh连接报ssh_exchange_identification: read: Connection reset by peer 原因之前这IP肯定登陆失败过,超过了denyhosts.cfg配置文件中的阀值 解决: 1. 根据你/usr/share/de 阅读全文
posted @ 2022-02-10 11:36 zk01 阅读(8994) 评论(0) 推荐(0) 编辑
摘要:显示报错信息:passwd: Have exhausted maximum number of retries for service 清空配置文件:> /etc/security/opasswd 重新修改密码passwd。 /etc/security/opasswd 记录曾经使用过的密码 阅读全文
posted @ 2021-12-14 08:45 zk01 阅读(1003) 评论(0) 推荐(0) 编辑
摘要:方法一:rc.local 将shell脚本绝对路径加入rc.local,并赋予执行权限 查看rc.local运行状态 systemctl enable rc-local systemctl restart /etc/rc-local.service systemctl status /etc/rc- 阅读全文
posted @ 2020-06-05 17:39 zk01 阅读(258) 评论(0) 推荐(0) 编辑
摘要:在CentOS 使用yum 安装软件的时候 出现错误no more mirrors to try,导致软件安装失败 清理yum源:yum clean all 更新缓存:yum makecache更新系统:yum -y update yum man: * install package1 [packa 阅读全文
posted @ 2020-06-05 13:19 zk01 阅读(3458) 评论(0) 推荐(0) 编辑
摘要:环境:ubuntu系统可以连接公网 备份:sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 编辑/etc/apt/sources.list文件 更新网络源:sudo apt-get update 阿里源: deb http://mirro 阅读全文
posted @ 2020-06-04 19:05 zk01 阅读(465) 评论(0) 推荐(0) 编辑
摘要:一、/etc/fstab文件的作用 磁盘被手动挂载之后都必须把挂载信息写入/etc/fstab这个文件中,否则下次开机启动时仍然需要重新挂载。 系统开机时会主动读取/etc/fstab这个文件中的内容,根据文件里面的配置挂载磁盘。这样我们只需要将磁盘的挂载信息写入这个文件中我们就不需要每次开机启动之 阅读全文
posted @ 2020-05-22 14:50 zk01 编辑
摘要:crond和crontab的概念 crond是后台守护进程的名称(d代表daemon),用来实际执行脚本,它在系统中一直是运行状态。 systemctl status crond 可以查看运行状态 crontab是一个工具,用来列出cron中当前运行的作业、向cron中添加作业、编辑作业、删除作业。 阅读全文
posted @ 2020-04-14 21:18 zk01 阅读(113) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示