虚拟机安装

虚拟机安装

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/

posted @ 2021-01-16 23:08  Mac_13  阅读(45)  评论(0编辑  收藏  举报