随笔分类 -  linux

摘要:在客户端安装sshpass,利用sshpass进行登陆操作; 安全考虑, 操作完把明文的账号密码yjk.txt删除掉; --创建用户 [root@zhu ~]# cat create_user.sh #!/bin/bash for i in $(cat /root/yjk.txt) do echo 阅读全文
posted @ 2023-12-10 14:34 辉bird 阅读(48) 评论(0) 推荐(0)
摘要:#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os,sys #计数器,记录错误数来强制结束程序。 err_num=0 TNS={ '172.16.132.3':{'username':'root','password':'xxxx','m 阅读全文
posted @ 2019-05-04 15:51 辉bird 阅读(1072) 评论(0) 推荐(0)
摘要:vmware根目录,不重启增加新硬盘扩容做快照创建新硬盘主机总线号、重新扫描SCSI总线来添加设备执行fdisk –l 显示当前服务器的硬盘信息确定主机总线号root@centos7 ~]# ls /sys/class/scsi_host/重新扫描SCSI总线来添加设备 (执行以下命令 "-" 之后在一空格)[root@centos7 ~]# echo "- - -" > /sys/class/... 阅读全文
posted @ 2016-05-26 09:25 辉bird 阅读(355) 评论(0) 推荐(0)
摘要:[root@localhost ~]# rpm -qa |grep glibcglibc-common-2.12-1.132.el6.x86_64glibc-devel-2.12-1.132.el6.x86_64glibc-2.12-1.132.el6.x86_64glibc-headers-2.12-1.132.el6.x86_64[root@localhost ~]# lsanaconda-k... 阅读全文
posted @ 2016-05-26 09:24 辉bird 阅读(10163) 评论(0) 推荐(0)
摘要:备注:具体操作详细解析见:http://www.wtoutiao.com/a/2362248.html 简要步骤:一、在虚拟机选择网桥模式;二、配制网络,使虚拟机和主机,虚拟机和虚拟机之间能够网络互通;1、使用setup工具进行配置;2、或者选择编辑文本进行配置;vi /etc/sysconfig/network-scripts/ifcfg-eth0service network restart;... 阅读全文
posted @ 2016-05-26 09:24 辉bird 阅读(25640) 评论(0) 推荐(1)
摘要:建立删除文件脚本#!/bin/sh#定义所删除目录路径location="/u01/app/oracle/admin/jmhrms/bdump"find $location -mtime +365 -type f -name 'jmhrms_*.trc' -exec rm -f {} \; 或者#!/bin/sh find /u01/app/oracle/admin/jmhrms/bdum... 阅读全文
posted @ 2016-05-26 09:20 辉bird 阅读(4176) 评论(0) 推荐(0)
摘要:1、等保加固/etc/pam.d/system-auth后无法登录ssh 应在/etc/pam.d/system-auth文件中配置:auth required /lib/security/pam_tally.so onerr=fail no_magic_root account required 阅读全文
posted @ 2016-04-29 09:20 辉bird 阅读(5561) 评论(0) 推荐(0)