Linux6.5+vmware workstation安装

时间:2021-11-09 18:23:01

Linux6.5+vmware workstation安装

Linux6.5+vmware workstation安装

Linux6.5+vmware workstation安装Linux6.5+vmware workstation安装


Linux6.5+vmware workstation安装

主机名:itpuxweb01

IP:192.168.0.201 (按你window主机配置)

子网掩码:24

网关:192.168.0.1(按你window主机配置)

Linux6.5+vmware workstation安装

Linux6.5+vmware workstation安装

Linux6.5+vmware workstation安装

Linux6.5+vmware workstation安装

先设swap ,系统设置3G内存, swap这里设置6G (物理内存的两倍),系统内存16G以上设为物理内存的一半

Linux6.5+vmware workstation安装

根目录把所有磁盘空间都使用,强制为主分区

Linux6.5+vmware workstation安装

Linux6.5+vmware workstation安装

Linux6.5+vmware workstation安装

Linux6.5+vmware workstation安装

Linux6.5+vmware workstation安装

基本系统:主框架访问(软件包勾选),基本,JAva平台,Perl平台,大系统性能,性能工具,控制台互联网工具,目录客户端,硬件监控工具,继承UNIX兼容性(全选软件包),网络文件系统客户端,调试工具,

Linux6.5+vmware workstation安装

服务器:服务器平台,系统管理工具(全部勾选)

Linux6.5+vmware workstation安装

系统管理:系统管理(全部勾选)

Linux6.5+vmware workstation安装

桌面:全选,就第一项(KDE桌面不选)

Linux6.5+vmware workstation安装

应用程序:全选

Linux6.5+vmware workstation安装

开发:开发工具(全选打钩),桌面平台开发(全选打钩)

Linux6.5+vmware workstation安装

语言:中文,英国英语

Linux6.5+vmware workstation安装

安装

Linux6.5+vmware workstation安装


[root@itpuxweb01 ~]# df -h(磁盘空间)

Filesystem      Size Used Avail Use% Mounted on

/dev/sda1        44G 5.1G   37G  13% /

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

Diskidentifier: 0x0008f5d3

 

   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

Diskidentifier: 0x00000000

 

 

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

Diskidentifier: 0x00062d40

 

   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

         sectors (command 'u').

 

Command (mfor help): n 加盘

Commandaction

   e  extended

   p  primary partition (1-4)

p 加主盘

Partitionnumber (1-4): 1 第一分区

Firstcylinder (1-13054, default 1):

Usingdefault value 1

Lastcylinder, +cylinders or +size{K,M,G} (1-13054, default 13054): +30G

 

Command (mfor help): p 查看大小结果

 

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

Diskidentifier: 0x0008f5d3

 

   Device Boot      Start         End      Blocks  Id  System

/dev/sdb1               1        3917   31463271   83  Linux

 

Command (mfor help): 保存

Thepartition table has been altered!

 

Callingioctl() to re-read partition table.

Syncingdisks.

[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

         sectors (command 'u').

 

Command (mfor help): n

Commandaction

   e  extended

   p  primary partition (1-4)

p

Partitionnumber (1-4): 1

Firstcylinder (1-3916, default 1):

Usingdefault value 1

Lastcylinder, +cylinders or +size{K,M,G} (1-3916, default 3916):

Usingdefault value 3916

 

Command (mfor help): p

 

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

Diskidentifier: 0x272e2382

 

   Device Boot      Start         End      Blocks  Id  System

/dev/sdc1               1        3916   31455238+  83  Linux

 

Command (mfor help): w 保存

Thepartition table has been altered!

 

格式化两个新建磁盘:

[root@itpuxweb01~]# mkfs.ext4 /dev/sdb1

有乱码就设置环境变量

[root@itpuxweb01~]# vi ~/.bash_profile

#.bash_profile

 

# Get thealiases and functions

if [ -f~/.bashrc ]; then

        . ~/.bashrc

fi

 

# Userspecific environment and startup programs

 

PATH=$PATH:$HOME/bin

 

export PATH

export LANG=en_US

 

我们要建立两个文件,分别是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

 

#

#/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

sysfs                   /sys                    sysfs   defaults        0 0

proc                    /proc                   proc    defaults        0 0

/dev/sdb1              /weblogic               ext4    defaults        0 0

/dev/sdc1              /soft                   ext4    defaults        0 0

 

[root@itpuxweb01~]# df -h

Filesystem      Size Used Avail Use% Mounted on

/dev/sda1        44G 5.1G   37G  13% /

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   |

                           |   Firewallconfiguration         |

                           |   Keyboard configuration         |

                           |   Network configuration          |

                           |   RHN Register                   |

                           |   System services                |

                           |                                  |

                           |      +----------+  +------+     |

                           |      | Run Tool |  | Quit |     |

                           |      +----------+  +------+     |

                           |                                  |

                           |                                  |

                          +----------------------------------+

 

[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.

SELINUX=disabled 改成这个保存

#SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes areprotected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

 

linux6.5母机配置

安装操作系统linux6.5配置

ip地址192.168.0.201

网关192.168.1.1

安装操作系统时配置磁盘信息

Disk /dev/sda: 53.7 GB, 53687091200 bytes

rehl6.5-01-root.vmdk

Disk /dev/sdb: 107.4 GB, 107374182400 bytes

rehl6.5-01-web.vmdk

Disk /dev/sdc: 32.2 GB, 32212254720 bytes

rehl6.5-01-temp.vmdk

在/dev/sda上划分swap 6个G   /目录用完所有空间,强制主分区

分别在给/dev/sdb+30G空间 /dev/sdc用完所有空间,

命令 fdisk/dev/sdb fdisk /dev/sdc

给两个分区格式化

mkfs.ext4/dev/sdb   mkfs.ext4 /dev/sdc

修改下边英文字符 vi~/.bash_profile

exportLANG=en_US

分别创建了两个文件夹 适用于以后实验,一个是weblogic 另一个是soft,创建完成后分别将两个磁盘挂载到文件夹上,因操作系统从起后不会自动挂载,所以写入配置文件内,

[root@itpuxweb01~]# mkdir /weblogic

[root@itpuxweb01~]# mkdir /soft

[root@itpuxweb01~]# mount /dev/sdb1 /weblogic

[root@itpuxweb01~]# mount /dev/sdc1 /soft

vi/etc/fstab

/dev/sdb1               /weblogic               ext4    defaults        0 0

/dev/sdc1               /soft                   ext4    defaults        0 0

[root@itpuxweb01~]# setup 选择第二项关闭防火墙

[root@itpuxweb01~]# vi /etc/selinux/config      关闭一个linux的认证                                        

SELINUX=disabled 保存

[root@itpuxweb01~]# vi /etc/hosts (修改主机名)

127.0.0.1   localhost localhost.localdomain localhost4localhost4.localdomain4

::1         localhost localhost.localdomainlocalhost6 localhost6.localdomain6

192.168.0.201  itpuxweb01

~

[root@itpuxweb01~]# df -h

Filesystem      Size Used Avail Use% Mounted on

/dev/sda1        44G 5.1G   37G  13% /

tmpfs           1.5G   72K 1.5G   1% /dev/shm

/dev/sdb1        30G 172M   28G   1% /weblogic

/dev/sdc1        30G 172M   28G   1% /soft

Linux6.5+vmware workstation安装

克隆一台:

Linux6.5+vmware workstation安装

克隆完以后打开

Linux6.5+vmware workstation安装

MAC地址修改一次类推 c3 c4c5克隆一台 往后推一位

Linux6.5+vmware workstation安装


登录第二台克隆机修改信息

修改主机名hostname ipuxweb02

vi/etc/hosts

192.168.0.202ipuxweb02

vi/etc/sysconfig/network

修改IP参数

cd/etc/udev/rules.d

rm -rf70-persistent-net.rules

cd/etc/sysconfig/network-scripts/

rm -rfifcfg-eth0Linux6.5+vmware workstation安装

reboot

servicenetwork restart 重启网络 再去ping 第一台的iP地址