日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

RedHat Linux 7.3基础环境搭建

發布時間:2023/12/20 linux 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 RedHat Linux 7.3基础环境搭建 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

文章目錄

  • 1.更改主機名
  • 2.關閉selinux
  • 3.關閉火墻
  • 4.重啟機器
  • 5.設置ip
  • 6.掛載yum源
  • 7.升級openssh
  • 8.安全基線
  • 9.時區
  • 10.時間同步
  • 11.安裝Vmtools
  • 12.分盤

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

總結

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

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。