1、初始化系统
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
mkdir
/mnt/cdrom
echo
"/dev/cdrom /mnt/cdrom iso9660 defaults 0 0"
>>
/etc/fstab
mount
-a
rm
/etc/yum
.repos.d/*
echo
'[base]
name=base
enabled=1
baseurl=
file
:
///mnt/cdrom
gpgcheck=0'>
/etc/yum
.repos.d
/base
.repo
yum
install
-y vim xorg-x11-xauth openssh-clients
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
cp
/etc/sysconfig/selinux
/etc/sysconfig/selinux
.bk
echo
'SELINUX=disabled
SELINUXTYPE=targeted'>
/etc/sysconfig/selinux
cat
/etc/sysconfig/selinux
cat
/etc/yum
.repos.d
/base
.repo
getenforce
systemctl status firewalld
|
本文转自1321385590 51CTO博客,原文链接:http://blog.51cto.com/linux10000/1748045,如需转载请自行联系原作者