创建用户帐户
创建下列用户、组和组成员资格:
名为
sysmgrs
的组用户
natasha
,作为次要组从属于sysmgrs
用户
harry
,作为次要组还从属于sysmgrs
用户
sarah
,无权访问系统上的交互式 shell
且不是sysmgrs
的成员
natasha
、harry
和sarah
的密码应当都是flectrag
1 | [root@node1 ~]# groupadd sysmgrs |
创建用户帐户
创建下列用户、组和组成员资格:
名为
sysmgrs
的组用户
natasha
,作为次要组从属于sysmgrs
用户
harry
,作为次要组还从属于sysmgrs
用户
sarah
,无权访问系统上的交互式 shell
且不是sysmgrs
的成员
natasha
、harry
和sarah
的密码应当都是flectrag
1 | [root@node1 ~]# groupadd sysmgrs |
调试 SELinux
非标准端口
82
上运行的 Web 服务器在提供内容时遇到问题。根据需要调试并解决问题,使其满足以下条件:系统上的 Web 服务器能够提供
/var/www/html
中所有现有的 HTML 文件(注:不要删除或以其他方式改动现有的文件内容)Web 服务器在端口
82
上提供此内容Web 服务器在系统启动时
自动启动
1 | [root@node1 ~]# systemctl is-active httpd.service |
1 | [kiosk@foundation0 ~]$ curl http://172.25.250.100:82 |
1 | [root@node1 ~]# firewall-cmd --get-default-zone |
1 | [kiosk@foundation0 ~]$ curl http://172.25.250.100:82 |
1 | [root@node1 ~]# ls /var/www/html/ |
配置您的系统以使用默认存储库
YUM 存储库已可以从
http://foundation0.ilt.example.com/dvd/BaseOS
和http://foundation0.ilt.example.com/dvd/AppStream
使用配置您的系统,以将这些位置用作默认存储库
1 | [root@node1 ~]# rpm -ivh http://foundation0.ilt.example.com/dvd/BaseOS/Packages/yum-utils-4.0.12-3.el8.noarch.rpm |
1 | [root@node1 ~]# man yum.conf |
将 node1 配置为具有以下网络配置:
主机名:
node1.domain250.example.com
IP 地址:
172.25.250.100
子网掩码:
255.255.255.0
网关:
172.25.250.254
DNS服务器:
172.25.250.254
1 | # VM Control / node1 / Console_node1_VM |
1 | [kiosk@foundation0 ~]$ ssh root@172.25.250.10 |
1 | [kiosk@foundation0 ~]$ ssh root@172.25.250.100 |
1 | final ExecutorService executorService = Executors.newSingleThreadExecutor(); |
Deadlock! Step by step:
"First"
is submitted to an idle
single-threaded pool"First"
"Second"
to a thread
poolget()
will wait forever, unable to acquire thread