RedHat Linux 7.3基础环境搭建
文章目錄
- 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)題。
- 上一篇: 网络爬虫--24.【selenium实战
- 下一篇: java项目打镜像_docker通过do