2019年8月28日

Linux 脚本----PXE脚本

摘要: #!/bin/bash#zxs read -p "请输入IP地址:" nameread -p "请输入网段:" aread -p "请输入地址池:" bread -p "请输入网关:" c iptables -F &> /dev/nullsystemctl stop firewalld &> /de 阅读全文

posted @ 2019-08-28 20:08 iimcan 阅读(168) 评论(0) 推荐(0) 编辑

Linux 脚本----用户脚本作业

摘要: #!/bin/bash#zxs#用户管理 while true do echo "// \\| 用户管理系统 | | 1、创建用户 || 2、删除用户 || 3、锁定用户 || 4、解锁用户 || 5、查看用户 || 6、退出脚本 | "#编制read -p "请输入你的操作选择" number # 阅读全文

posted @ 2019-08-28 19:39 iimcan 阅读(298) 评论(0) 推荐(0) 编辑

Linux 脚本----DHCP脚本

摘要: #!/bin/bash#zxsread -p "域名" aread -p "定义地址池" bread -p "默认网关" c read -p "网段" d #安装dhcprpm -q dhcp="dhcp-4.2.5-58.el7.centos.x86_64" || yum -y install d 阅读全文

posted @ 2019-08-28 19:27 iimcan 阅读(347) 评论(0) 推荐(0) 编辑

Linux 脚本----DNS脚本

摘要: #!/bin/bash#zxs #安装dnsif[ $(rpm -q bind)="bind" ]thenecho "安装"elseyum -y install bindecho "安装完成"fi #配置echo "nameserver 192.168.221.8" >> /etc/resolv.c 阅读全文

posted @ 2019-08-28 19:24 iimcan 阅读(315) 评论(0) 推荐(0) 编辑

Linux 脚本 ----yum脚本

摘要: #!/bin/bash#Author:zxs systemctl disable firewalldsed -i '7 s/enforcing/disabled/' /etc/selinux/config #构建本地yum仓库umount /dev/sr0if [ -e media ]thenmou 阅读全文

posted @ 2019-08-28 19:23 iimcan 阅读(271) 评论(0) 推荐(0) 编辑

2019年8月9日

Linux 10---进程和计划任务管理

摘要: 1、通过ps命令的两种选项形式查看进程信息 [root@localhost ~]# ps aux [root@localhost ~]# ps -elf 2、通过top命令查看进程 [root@localhost ~]# top -d 5top - 12:37:18 up 38 min , (启动时 阅读全文

posted @ 2019-08-09 09:39 iimcan 阅读(153) 评论(0) 推荐(0) 编辑

2019年8月4日

Linux 系统管理 09—磁盘管理综合测试

摘要: [root@localhost ~]# fdisk /dev/sdb欢迎使用 fdisk (util-linux 2.23.2)。 更改将停留在内存中,直到您决定将更改写入磁盘。使用写入命令前请三思。 Device does not contain a recognized partition ta 阅读全文

posted @ 2019-08-04 14:14 iimcan 阅读(222) 评论(0) 推荐(0) 编辑

2019年8月2日

Linux 管理 LVM逻辑卷

摘要: 1.为主机增加80G SCSI 接口硬盘 2.划分三个各20G的主分区 设备 Boot Start End Blocks Id System/dev/sdb1 2048 41945087 20971520 83 Linux/dev/sdb2 41945088 83888127 20971520 83 阅读全文

posted @ 2019-08-02 11:05 iimcan 阅读(188) 评论(0) 推荐(0) 编辑

2019年7月31日

Linux 系统管理 06—磁盘管理

摘要: 1、为主机新增两块30GB的SCSI硬盘 2、划分3个主分区,各5GB,剩余空间作为扩展分区 设备 Boot Start End Blocks Id System/dev/sdb1 2048 10487807 5242880 83 Linux/dev/sdb2 10487808 20973567 5 阅读全文

posted @ 2019-07-31 16:05 iimcan 阅读(229) 评论(0) 推荐(0) 编辑

2019年7月30日

Linux 系统管理 05—权限及归属管理

摘要: 1、创建/guanli 目录,在/guanli下创建zonghe 和 jishu 两个目录(一条命令) [root@localhost ~]#mkdir -p /guanli/{zonghe,jishu} [root@localhost ~]# ls /guanlijishu zonghe 2、添加 阅读全文

posted @ 2019-07-30 16:54 iimcan 阅读(225) 评论(0) 推荐(0) 编辑

导航