日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) >

RedHat Linux 7.3基础环境搭建

發(fā)布時(shí)間:2023/12/20 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 RedHat Linux 7.3基础环境搭建 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

文章目錄

  • 1.更改主機(jī)名
  • 2.關(guān)閉selinux
  • 3.關(guān)閉火墻
  • 4.重啟機(jī)器
  • 5.設(shè)置ip
  • 6.掛載yum源
  • 7.升級(jí)openssh
  • 8.安全基線
  • 9.時(shí)區(qū)
  • 10.時(shí)間同步
  • 11.安裝Vmtools
  • 12.分盤(pán)

1.更改主機(jī)名

vi /etc/hostname

2.關(guān)閉selinux

vi /etc/selinux/config
編輯:SELINUX = disabled

3.關(guān)閉火墻

systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld

4.重啟機(jī)器

shutdown –r 0

5.設(shè)置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.升級(jí)openssh

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

8.安全基線

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

9.時(shí)區(qū)

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

10.時(shí)間同步

檢查是否安裝: rpm -qa |grep chrony
安裝: yum install chrony
systemctl start chronyd.service
啟動(dòng)時(shí)間同步服務(wù):# systemctl start chronyd.service
配置時(shí)間同步源:# vi /etc/chrony.conf
server xx.x.xxx.xxx iburst
server xx.x.xxx.xxx iburst
重啟時(shí)間同步服務(wù):# systemctl restart chronyd.service
查看時(shí)間同步狀態(tài):# systemctl status chronyd.service
查看時(shí)間同步源:# chronyc sources –v
查看時(shí)間同步源狀態(tài):# chronyc sourcestats -v

11.安裝Vmtools

VMware vSphere管理平臺(tái)–主機(jī)名–右鍵–客戶機(jī)–安裝vmtools

12.分盤(pán)

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

總結(jié)

以上是生活随笔為你收集整理的RedHat Linux 7.3基础环境搭建的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。