虚拟机安装

虚拟机安装

yum install -y epel-release

yum install -y psmisc nc net-tools rsync vim lrzsz ntp libzstd openssl-static tree iotop

修改系统名:
vim /etc/hostname

修改网络配置:
vim /etc/sysconfig/network-scripts/ifcfg-ens33

hosts:
192.168.1.101 node01
192.168.1.102 node02
192.168.1.103 node03
192.168.1.104 node04

查看防火墙状态:
systemctl status firewalld
禁用防火墙:
systemctl disable firewalld

创建用户:
useradd machuan
passwd machuan 密码:123456
赋予权限:
vim /etc/sudoers
machuan ALL=(ALL) NOPASSWD:ALL
更改文件权限:
chown machuan:machuan module/ software/

原文地址:https://www.cnblogs.com/mac-13/p/14287835.html