RedHat Linux 7.3基础环境搭建

1.更改主机名

vi /etc/hostname

2.关闭selinux

vi /etc/selinux/config
编辑:SELINUX = disabled

3.关闭火墙

systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld

4.重启机器

shutdown –r 0

5.设置ip

cd /etc/sysconfig/network-scripts
ls –l
vi ifcfg-eth0
更改:
BOOTPROTO = static
ONBOOT = yes
添加:
IPADDR=xx.x.xxx.xxx
NETMASK=255.255.255.0
GATEWAY=xx.x.xxx.x
DNS1=xx.x.xxx.xxx
DNS2=xx.x.xxx.xxx
重启:systemctl restart network

6.挂载yum源

https://blog.csdn.net/fanxindong0620/article/details/103581903

7.升级openssh

https://blog.csdn.net/fanxindong0620/article/details/103581737

8.安全基线

https://blog.csdn.net/fanxindong0620/article/details/103581652

9.时区

timedatectl status
timedatectl set-timezone “Asia/Shanghai”
timedatectl set-timezone UTC

10.时间同步

检查是否安装: rpm -qa |grep chrony
安装: yum install chrony
systemctl start chronyd.service
启动时间同步服务:# systemctl start chronyd.service
配置时间同步源:# vi /etc/chrony.conf
server xx.x.xxx.xxx iburst
server xx.x.xxx.xxx iburst
重启时间同步服务:# systemctl restart chronyd.service
查看时间同步状态:# systemctl status chronyd.service
查看时间同步源:# chronyc sources –v
查看时间同步源状态:# chronyc sourcestats -v

11.安装Vmtools

VMware vSphere管理平台–主机名–右键–客户机–安装vmtools

12.分盘

https://blog.csdn.net/fanxindong0620/article/details/106472349

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章