SSH服务器安装
首先必须关闭防火墙和selinux服务
iptables –F
/etc/init.d/iptables save
关闭selinux
vim /etc/selinux/config
把SELINUX=disabled
该服务必须重启才生效
验证方法: # getenforce
[xlxh@localhost ~]$ getenforce
Disabled
[xlxh@localhost ~]$
配置主机名
[root@localhost /]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=xlxh
[root@localhost /]#
配置好本地YUM源
#mount /dev/cdrom /mnt/
vim /etc/yum.repos.d/rhel-source.repo // rhel-source.repo自己创建
参照别的yum源一样
vim /etc/fstab //目的是每次开机后自动挂在
配置挂在的目录
#yum clean all
#yum list
主机的网卡类型是:桥接
开机配置成 init 3 模式