主机名:itpuxweb01
IP:192.168.0.201 (按你window主机配置)
先设swap ,系统设置3G内存, swap这里设置6G (物理内存的两倍),系统内存16G以上设为物理内存的一半
根目录把所有磁盘空间都使用,强制为主分区
基本系统:主框架访问(软件包勾选),基本,JAva平台,Perl平台,大系统性能,性能工具,控制台互联网工具,目录客户端,硬件监控工具,继承UNIX兼容性(全选软件包),网络文件系统客户端,调试工具,
服务器:服务器平台,系统管理工具(全部勾选)
系统管理:系统管理(全部勾选)
桌面:全选,就第一项(KDE桌面不选)
应用程序:全选
开发:开发工具(全选打钩),桌面平台开发(全选打钩)
语言:中文,英国英语
安装
[root@itpuxweb01 ~]# df -h(磁盘空间)
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.5G 72K 1.5G 1% /dev/shm
[root@itpuxweb01~]# fdisk -l(安装完查看磁盘信息)现在一共三个盘,根目录安装在/dev/sda上,然后分别在/dev/sdb上分30个G空间、dev/sdc全部用完空间,然后格式化
Disk /dev/sdb: 107.4 GB,107374182400 bytes
255 heads,63 sectors/track, 13054 cylinders
Units =cylinders of 16065 * 512 = 8225280 bytes
Sector size(logical/physical): 512 bytes / 512 bytes
I/O size(minimum/optimal): 512 bytes / 512 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdc: 32.2 GB,32212254720 bytes
255 heads,63 sectors/track, 3916 cylinders
Units =cylinders of 16065 * 512 = 8225280 bytes
Sector size(logical/physical): 512 bytes / 512 bytes
I/O size(minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 53.7 GB,53687091200 bytes
255 heads,63 sectors/track, 6527 cylinders
Units =cylinders of 16065 * 512 = 8225280 bytes
Sector size(logical/physical): 512 bytes / 512 bytes
I/O size(minimum/optimal): 512 bytes / 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5763 46283776 83 Linux
/dev/sda2 5763 6528 6144000 82 Linux swap / Solaris
[root@itpuxweb01~]# fdisk /dev/sdb 给30G空间
WARNING:DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') andchange display units to
Firstcylinder (1-13054, default 1):
Lastcylinder, +cylinders or +size{K,M,G} (1-13054, default 13054): +30G
Disk/dev/sdb: 107.4 GB, 107374182400 bytes
255 heads,63 sectors/track, 13054 cylinders
Units =cylinders of 16065 * 512 = 8225280 bytes
Sector size(logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal):512 bytes / 512 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 3917 31463271 83 Linux
Thepartition table has been altered!
Callingioctl() to re-read partition table.
[root@itpuxweb01~]# fdisk /dev/sdc 加所有空间,一路回车即可
Devicecontains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building anew DOS disklabel with disk identifier 0x272e2382.
Changeswill remain in memory only, until you decide to write them.
After that,of course, the previous content won't be recoverable.
Warning:invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING:DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') andchange display units to
Firstcylinder (1-3916, default 1):
Lastcylinder, +cylinders or +size{K,M,G} (1-3916, default 3916):
Disk/dev/sdc: 32.2 GB, 32212254720 bytes
255 heads,63 sectors/track, 3916 cylinders
Units =cylinders of 16065 * 512 = 8225280 bytes
Sector size(logical/physical): 512 bytes / 512 bytes
I/O size(minimum/optimal): 512 bytes / 512 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 3916 31455238+ 83 Linux
Thepartition table has been altered!
[root@itpuxweb01~]# mkfs.ext4 /dev/sdb1
[root@itpuxweb01~]# vi ~/.bash_profile
# Get thealiases and functions
# Userspecific environment and startup programs
我们要建立两个文件,分别是weblogic和 soft两个文件夹,适用于以后做实验存放的路径,然后再挂载,然后在写入环境变量里面去,防止从起计算机以后没有这些内容,
[root@itpuxweb01~]# mkdir /weblogic
[root@itpuxweb01~]# mkdir /soft
[root@itpuxweb01~]# mount /dev/sdb1 /weblogic
[root@itpuxweb01~]# mount /dev/sdc1 /soft
[root@itpuxweb01~]# vi /etc/fstab
# Createdby anaconda on Mon May 1 22:00:08 2017
#Accessible filesystems, by reference, are maintained under '/dev/disk'
# See manpages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
UUID=c538ee53-4548-4fac-adcd-2be6684f48cc/ ext4 defaults 1 1
UUID=d0cf08fb-49e5-4099-b0d0-d1f20c960cb7swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/sdb1 /weblogic ext4 defaults 0 0
/dev/sdc1 /soft ext4 defaults 0 0
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.5G 72K 1.5G 1% /dev/shm
/dev/sdb1 30G 172M 28G 1% /weblogic
/dev/sdc1 30G 172M 28G 1% /soft
[root@itpuxweb01~]# setup 选择第二项关闭防火墙
Text ModeSetup Utility 1.19.9 (c) 1999-2006 Red Hat, Inc.
+--------+ Choose aTool +---------+
| Authentication configuration |
+----------------------------------+
[root@itpuxweb01~]# vi /etc/selinux/config 关闭一个linux的认证
# This filecontrols the state of SELinux on the system.
# SELINUX=can take one of these three values:
# enforcing - SELinux security policy isenforced.
# permissive - SELinux prints warningsinstead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes areprotected,
# mls - Multi Level Security protection.
Disk /dev/sda: 53.7 GB, 53687091200 bytes
Disk /dev/sdb: 107.4 GB, 107374182400 bytes
Disk /dev/sdc: 32.2 GB, 32212254720 bytes
在/dev/sda上划分swap 6个G /目录用完所有空间,强制主分区
分别在给/dev/sdb+30G空间 /dev/sdc用完所有空间,
命令 fdisk/dev/sdb fdisk /dev/sdc
mkfs.ext4/dev/sdb mkfs.ext4 /dev/sdc
分别创建了两个文件夹 适用于以后实验,一个是weblogic 另一个是soft,创建完成后分别将两个磁盘挂载到文件夹上,因操作系统从起后不会自动挂载,所以写入配置文件内,
[root@itpuxweb01~]# mkdir /weblogic
[root@itpuxweb01~]# mkdir /soft
[root@itpuxweb01~]# mount /dev/sdb1 /weblogic
[root@itpuxweb01~]# mount /dev/sdc1 /soft
/dev/sdb1 /weblogic ext4 defaults 0 0
/dev/sdc1 /soft ext4 defaults 0 0
[root@itpuxweb01~]# setup 选择第二项关闭防火墙
[root@itpuxweb01~]# vi /etc/selinux/config 关闭一个linux的认证
[root@itpuxweb01~]# vi /etc/hosts (修改主机名)
127.0.0.1 localhost localhost.localdomain localhost4localhost4.localdomain4
::1 localhost localhost.localdomainlocalhost6 localhost6.localdomain6
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.5G 72K 1.5G 1% /dev/shm
/dev/sdb1 30G 172M 28G 1% /weblogic
/dev/sdc1 30G 172M 28G 1% /soft
克隆一台:
克隆完以后打开
MAC地址修改一次类推 c3 c4c5克隆一台 往后推一位
登录第二台克隆机修改信息
cd/etc/sysconfig/network-scripts/
servicenetwork restart 重启网络 再去ping 第一台的iP地址