标签:linux学习 linux初始调试 关闭防火墙 关闭selinux 服务器
【本节内容】
    *RHEL的基本操作
    *创建快照
    *组装服务器
    *认识常见的服务器
【创建实验可用快照必备条件】
    1.固定的IP
    2.关闭防火墙
    3.关闭selinux
    4.配置yum源
    5.光盘自动挂载
【IP配置】
    RHEL6.5可以通过setup来配置IP地址,但RHEL7弱化了这一功能,需通过NetworkManager来配置IP地址。
    ->systemctl status NetworkManager         #查看网络服务状态
    ->systemctl restart NetworkManager        #重启网络服务
    ->ifconfig                                #查看IP配置
*start 开启 restart 重启 stop 停止/关闭
    ->nmtui-edit eno16777736                  #编辑网卡配置,在图像界面编辑
    ->nmtui-connect eno16777736               #激活网卡
    ->systemctl restart NetworkManager               #重启网卡,使配置生效
       *service network restart   #重启网卡
【关闭防火墙】
{ sysctl stop iptables #rhel6.5中关闭防火墙
    不可取{ systemctl disable firewalld         #rhel6.5中不能用
{ iptables #rhel6.5中防火墙名称
    rhel7中如何关闭防火墙
    ->systemctl stop firewalld                  #临时关闭防火墙
    ->systemctl disable firewalld               #设置开机自动关闭放火墙
【关闭selinux】
    临时关闭selinux 
    ->setenforce 0
    设置开机自动关闭selinxu
    方法一:
    ->vim /etc/selinux/config
       将“SELINUX=enforcing”改为“SELINUX=disalbed”
    ->[ESC] :wq
    方法二:
    ->sed -i ‘s/SELINUX=enforcing/SELINUX=disalbed‘ /etc/selinux/config
【设置光盘开机自动挂载】
    ->echo "/dev/sr0 /mnt iso9660 defaults 0 0" >> /etc/fatab
                #将系统镜像加载到/etc/fstab文件中
【配置yum源】
    清空yum源
    ->rm -rf /etc/yum.repos.d/*
    配置yum源
    ->cat > /etc/yum.repos.d/rhel7.repo << EOF
          >[rhel7-source]
          >name=rhel7-source
>baseurl=file:///mnt
          >enabled=1
          >gpgcheck=0
          >EOF
【如何组装服务器】
    1U=4.45cm
    【服务器采购考量】
        *评估访问量,公司服务需求
        *服务特点,选硬件,冗余,稳定
        *网上调研,对比
        *查询IDC机房,得到不同价格
            !机房要防雷、防震
    【DIY 1U服务器】
        *华硕2109A-D8
        *Inter E5-2640 V3
        *希捷600G 企业级硬盘 SAS 128M 3年 4块
        *金士顿内存
        *电源,机箱
        *风扇
        *UPS
    1.华硕官网,查询
    2.内存:种类、代数
        RDIMM:服务器专用
        UDIMM:普通PC用
    3.硬盘
        SAS硬盘种类:300G、600G、900G
    4.电源
80plus
【常见服务器】
    浪潮 天旭 小型机
    IBM大型机
    超云 SUPERCLOUD
本文出自 “非安全” 博客,转载请与作者联系!
标签:linux学习 linux初始调试 关闭防火墙 关闭selinux 服务器
原文地址:http://renzhe27.blog.51cto.com/1735477/1761354