一、步骤整理 1、挂载镜像 mkdir /mnt/cdrom mount -o loop CentOS-7-x86_64-Minimal-2009.iso /mnt/cdrom 2、安装工具 yum -y install anaconda createrepo mkisofs rsync syslinux 3、 同步/mnt/cdrom/下的文件到/ISO/路径下,除了Packages和repodata文件夹 /usr/bin
Pxe自动安装脚本配置方法: yum安装system-config-kickstart [root@localhost ~]# yum -y install system-config-kickstart 修改/var/lib/tftpboot/pxelinux.cfg/default文件: 在append initrd 的最后添加ks路径,用空格隔开: ks=ftp://192.168.140/ks.cfg [root@localhost ~]# sys
# monitor prometheus We use prometheus,alertmanager,grafana and other tools to monitoring our systems and services. ## Prometheus Prometheus is an open-source systems monitoring and alerting toolkit - Prometheus pull data from exporters or from pushgatewa
1 编写脚本selinux.sh,实现开启或禁用SELinux功能 通过sed命令对centos7的/etc/selinux/config文件进行编辑: 开启selinux功能:sed -i.bak 's@SELINUX=disabled@SELINUX=enforcing@' /etc/selinux/config 关闭selinux功能:sed -i.bak 's@SELINUX=enforcing@SELINUX=disabled@' /etc/s
以下cfg模板都是带图行化的 CentOS 7.6.cfg #version=DEVEL# System authorization informationauth --enableshadow --passalgo=sha512# Use CDROM installation media#cdrominstallurl --url=$tree# Use graphical installgraphical# Run the Setup Agent on first bootfirst