第四题 传送内核参数
开启kmctl的值为5,并在/proc/cmdline可以中验证。
[root@desktop2 ~]# vim /boot/grub/grub.conf

[root@desktop2 ~]# init 6

第五题 脚本批量创建用户
① 写一个脚本/root/user.sh;可自动批量创建50个用户:xmws3001--3050
指定uid从3001--3050;用户初始密码为:xmws.bbs
[root@desktop2 ~]# vim user.sh

②执行脚本,批量创建用户。
[root@desktop2 ~]# chmod o+x user.sh
[root@desktop2 ~]# sh user.sh
[root@desktop2 ~]# tail /etc/passwd |more
第六题 配置web服务器
配置一个HTTP服务器。通过http://desktopx.example.com 可以被访问到;
发布的页面请从http://instructor.example.com/pub/xmws.html下载


为了保证第八题虚拟主机成功,所以这里要用虚拟主机方式!
下载网页文件

确保context值:

用浏览器测试: 
