【运维】vsphere client6.0安装Redhat7

vsphere client6.0安装Redhat7

1.新建虚拟机,基本配置大都默认,以下为几个关键:

【运维】vsphere client6.0安装Redhat7

【运维】vsphere client6.0安装Redhat7
【运维】vsphere client6.0安装Redhat7
【运维】vsphere client6.0安装Redhat7

2.连接系统镜像

【运维】vsphere client6.0安装Redhat7
【运维】vsphere client6.0安装Redhat7
【运维】vsphere client6.0安装Redhat7

3.装好后,打开虚拟机电源,开机装系统,中文,确认默认安装位置

【运维】vsphere client6.0安装Redhat7
【运维】vsphere client6.0安装Redhat7
【运维】vsphere client6.0安装Redhat7

4.设置root密码

【运维】vsphere client6.0安装Redhat7

5.装完后重启

6.root 登录,设置用户并提权成管理员

adduser 用户名
passwd 用户名
开始输入密码:***
确认密码:***
注:这时就得到了一个普通用户
提权
打开配置文件
vi /etc/passwd
按 i 编辑
找到新添加的用户一般在最下面
【运维】vsphere client6.0安装Redhat7
更改后:
【运维】vsphere client6.0安装Redhat7
esc退出编辑状态
:wq 保存退出

7.改IP,联网

ip addr show 可以进行网卡的查看
【运维】vsphere client6.0安装Redhat7

vi /etc/sysconfig/network-scripts/ifcfg-eno16780032
按 i 编辑
修改前
【运维】vsphere client6.0安装Redhat7
修改后
【运维】vsphere client6.0安装Redhat7
按esc键退出编辑,然后 :x 保存并退出
重启服务:service network restart
【运维】vsphere client6.0安装Redhat7
ping 百度
ping baidu.com
【运维】vsphere client6.0安装Redhat7
收到回复表示能ping通,Ctrl+c取消

8.xshell、xftp连接装jdk

连xftp,用xftp 拷贝文件到/usr/java/jdk1.8(没有就新建)
配置环境变量 vi /etc/profile
按“i”键进入编辑模式,在文件末尾加入以下内容

#####JDK###########

JAVA_HOME=/usr/java/jdk1.8
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH

让环境变量生效
source /etc/profile

给文件夹提权
chmod -R 777 /usr/java/jdk1.8

检查JDK配置是否生效
javac -version

出现下面的场景说明配置成功
【运维】vsphere client6.0安装Redhat7