当前位置:   article > 正文

21年广东省云计算技能大赛样卷(基础运维部分)_在 controller 节点上安装 vsftp 服务,将/opt 目录设为共享,并设置为开机自启动

在 controller 节点上安装 vsftp 服务,将/opt 目录设为共享,并设置为开机自启动,

【任务1】基础运维任务[5分]

【题目1】基础环境配置

(1)设置控制节点主机名为controller,设置计算节点主机名为compute;

[root@controller ~]# hostnamectl set-hostname controller
[root@compute ~]# hostnamectl set-hostname compute

(2)修改hosts文件将IP地址映射为主机名;

[root@controller ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.100.10 controller
192.168.100.20 compute

(3)关闭控制节点的防火墙,设置开机不启动;

[root@controller ~]# systemctl stop firewalld
[root@controller ~]# systemctl disable firewalld

(4)设置SELinux为Permissive 模式。

[root@controller ~]# cat /etc/selinux/config 
​
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=permissive                               
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/75516
推荐阅读