文档库 最新最全的文档下载
当前位置:文档库 › rhce模拟题

rhce模拟题

rhce模拟题
rhce模拟题

RHCT

1、建立一个分区,大小为300M,挂载到/common,永久生效

2、请依照下列要求新增使用者、群组,并建立其群组所属关系:

建立 admin 群组

建立 naima 用户,使其附属于 admin 群组

建立 taliesin 用户,使其附属于admin 群组

建立 simira 用户,使其无法交互式登录本地系统,且不是 staff 群组成员

以上使用者naima、taliesin及simira 的密码均为 password

3、建立一个工作目录于 /common/staff ,并拥有下列属性:

/common/staff 的所属群组为admin

该目录应对 admin 群组成员有可读、可写、可执行的权限

对taliesin没有任何权限

对naima有可读可写的权限

对其他使用者有可读的权限

4、将 /etc/fstab 文件复制到 /var/tmp目录中,设定/var /tmp/fsta/fstab的权限,使:

/tmp/fsta/fstab文件的属主是 root 使用者

/tmp/fsta/fstab 文件的所属群组是 root 群组

/tmp/fsta/fstab 文件不得为任何人执行

使用者 naima 可以读写 /tmp/fsta/fstab

所有其他使用者(目前的及未来的)可以读取/tmp/fsta/fstab

5、从ftp://https://www.wendangku.net/doc/8a14023657.html,/pub/updates 安装适用的 kernel 更新套件,必须符合下列准则:

更新版的 kernel 套件在重新开机后为预设的 kernel

原来的 kernel 套件依旧存在,并且可以手动启用

6、在您的系统上启用 IP Forwarding 功能,并使之永久生效

7、配置您的系统,使它对任何的ping请求都不响应,这个配置在重新引导后会有效

8、使用 IPP(CUPS)设定您系统上的预设本地打印机列至 https://www.wendangku.net/doc/8a14023657.html, 上的stationX,设定该印表机时请使用“Generic-text-only”印表机。

9、为用户 naima 设立一个任务计划,在本地时间每天 20:45 执行

/bin/echo hello

10、NIS服务器为 192.168.0.254 作为使用者验证,NIS域名为:notexample;请注意下列事项:nisuserX 须能登入您的系统,X 指的是您的工作站编号,但是登入时并无家目录,须等到您完成下面的 autofs考题才会有家目录在您的系统上,所有的 NIS 使用者密码均为 password

11、将home分区缩小为500M,偏差范围在450M~550M之间

12、创建四个分区,各个分区大小是100M,创建两个RAID1设备,每个设备带两个分区,这些设备应该是/dev/md0、/dev/md1;创建一个volgroup卷组,把

/dev/md0、/dev/md1添加到volgroup卷组中;创建一个名为data的逻辑卷,名为data的逻辑卷的大小为200M,偏差范围在150M~250M之间,并挂载到/data目录中

13、将home分区扩大为700M,偏差范围在650~750之间

14、将tmp分区缩小为700M,偏差范围在650~750之间

15、设定您的系统为 https://www.wendangku.net/doc/8a14023657.html, 的NTP 客户端

16、用户disklog在/home/disklog最低限制为40K,当添加80K数据时会提示超出磁盘配额信息

测试:dd if=/dev/zero of=/home/disklog/test bs=1K count=40

dd if=/dev/zero of=/home/disklog/test bs=1K count=80

17、为 NIS 使用者设定 autofs以自动挂载其家目录:

https://www.wendangku.net/doc/8a14023657.html,(192.168.0.254) 通过 NFS 分享 /rhome/stationX 给您的工作站,X为您的工作站编号,nisuserX 使用者的家目录是

https://www.wendangku.net/doc/8a14023657.html,:/rhome/stationX/nisuserX,nisuserX 使用者的家目录应该自动挂载在本地端的 /rhome 下面的 /rhome/nisuserX家目录应设定为具可被其使用者写入的权限,当您使用 nisuser1 ~ nisuser20 登入时,能存取家目录的仅有 nisuserX 使用者范例:station100 须设定在 nisuser100 登入时自动将

https://www.wendangku.net/doc/8a14023657.html,:/rhome/station100/nisuser100 的 NFS 分享挂载到其家目录

/rhome/nisuser100

Selinux #getenforce #setenforce

Iptables #iptables –F #iptables –x #/etc/init.d/iptables save #cat

/etc/sysconfig/iptables

#service iptables stop #chkconfig iptables off

# 基本网络设定

1.配置本机网络参数如下:

eth0接口的IP静态地址为192.168.0.X/255.255.255.0。

默认网关为192.168.0.254。

指定DNS服务器, 先后顺序为127.0.0.1, 192.168.0.254, 域名搜索后缀为https://www.wendangku.net/doc/8a14023657.html,。

指定本机主机名称为https://www.wendangku.net/doc/8a14023657.html,。

运行命令host https://www.wendangku.net/doc/8a14023657.html,显示结果为:

https://www.wendangku.net/doc/8a14023657.html, has address 192.168.0.254。运行命令ping https://www.wendangku.net/doc/8a14023657.html,能够ping通。

2.用户test1以密码123登陆系统后, 能够运行startx -- :1命令成功。

3.系统重启后默认的启动级别为5。

4.将NTP服务器指定为192.168.0.254, 并保持ntpd服务在运行级别35下启动。

答1. #vi /etc/sysconfig/network-scripts/ifcfg-eth0与

#vi/etc/sysconfig/network

IPADDR=192.168.0.6

NETMASK=255.255.255.0

GATEWAY=192.168.0.254

#vi /etc/resolv.conf

search https://www.wendangku.net/doc/8a14023657.html,

nameserver 192.168.0.254

nameserver 127.0.0.1

#hostname https://www.wendangku.net/doc/8a14023657.html,

#vi /etc/sysconfig/network

HOSTNAME=https://www.wendangku.net/doc/8a14023657.html,

#vi /etc/hosts

192.168.0.6 https://www.wendangku.net/doc/8a14023657.html, station6

#service network restart 或#/etc/init.d/network restart

#host https://www.wendangku.net/doc/8a14023657.html, #ping https://www.wendangku.net/doc/8a14023657.html,

#system-config-network

答2. #useradd test1 #echo "123"|passwd --stdin test1

检查用户主目录和tmp目录剩余空间,和主目录权限。

答3. #vi /etc/inittab

id:5:initdefault:

答4. #vi /etc/ntp.conf

server 192.168.0.254

#chkconfig --level 35 ntpd on #chkconfig --list ntpd

#service ntpd restart或#/etc/init.d/ntpd restart #system-config-date

# 账户设定

1.超级用户root以密码exam登录到系统, 但是root无法在tty4终端上登录系统。

2.添加组admin, 指定其GID为3000。

3.添加用户tom, 其附属组为admin, 且其用户主目录为/home/tommy; 添加用户alex其起始组为admin; 添加用户mike, 其UID为603, 该用户shell为无法登陆系统shell; 添加用户selina。此4个用户的密码均为1234。

4.添加用户noexam, 密码为noexam, 该账户会在2012年12月21号被禁用。其umask值为0022。

5.添加用户first, 其初始密码为1234, 该账户第一次登录系统时即被系统要求修改密码。

6.账户noexam可以使用sudo;以tom的身份执行命令/bin/touch

/home/tommy/sudo.txt, 且无需提供密码; 以root身份执行命令/sbin/ifconfig eth0时需要提供密码, 但是不能执行命令/sbin/ifconfig eth1。

7.用户selina可以在除tty4终端之外的所有终端登录系统。

8.用户alex的最大终端登录数是2个。

答1. #echo "exam"|passwd --stdin root #vi /etc/securetty 删除tty4

答2. #groupadd -g 3000 admin

答3. #useradd -G admin -d /home/tommy tom #useradd -g admin alex

#useradd -u 603 -s /sbin/nologin mike #useradd selina

#for UNAME in tom alex mike selina;

>do

>echo "1234"|passwd --stdin $UNAME

>done

答4. #useradd noexam -e 2012-12-21 noexam或#/etc/init.d/chage noexan #echo "noexam"|passwd --stdin noexam

#vi /home/noexam/.bashrc

umask 0022

答5. #useradd first #echo "1234"|passwd --stdin first #chage -d 0 first

答6. #visudo (编辑/etc/sudoers文件) #visudo –c查看语法

noexam station6=(tom) NOPASSWD: /bin/touch

/home/tommy/sudo.txt

noexam station6=(root) /sbin/ifconfig eth0

noexam station6=(root) ! /sbin/ifconfig eth1

$sudo -u tom /bin/touch /home/tommy/sudo.txt $sudo /sbin/ifconfig eth0 #sudo –l -U noexam

答7. #vi /etc/pam.d/login

account required pam_access.so 添加为account类的第一行#vi /etc/security/access.conf

- : selina : tty4 注释permission:users:origins users与origins可加EXCEPT

答8. #vi /etc/security/limits.conf

alex hard maxlogins 2

#tail /etc/passwd #tail /etc/shadow #tail /etc/group

# 文件系统分区

1.创建一个分区大小为600M~800M之间, 并将其格式化为ext3格式, 该文件系统将每间隔5次挂载会被自动fsck;将其挂载至/admin目录。

#fdisk /dev/sdb

n p 1 1 +770M w

#partprobe /dev/sdb #mkfs.ext3 /dev/sdb1 #tune2fs -c 5 /dev/sdb1 #mkdir /admin

#vi /etc/fstab #mount /dev/sdb1 /admin

/dev/sdb1 /admin ext3 defaults 1 1

2.创建一个大小为800M~1000M之间的RAID设备, 其级别为RAID0, 将其格式化为ext3格式, 设置卷标为/data, 挂载至/data目录。使用上面方法创建两个大小450M左右的分区。

#mdadm -c /dev/md0 -l 0 -n 2 -c 64 /dev/sdb2 /dev/sdb3 -a yes

#cat /proc/mdstat #echo "DEVICE /dev/sdb2 /dev/sdb3" >>

/etc/mdadm.conf

#mdadm -Dvs >> /etc/mdadm.conf #mkfs.ext3 /dev/md0 #e2label

/dev/md0 /data

#mkdir /data

#vi /etc/fstab #mount /dev/md0 /data #df -h

LABEL=/data /data ext3 defaults 1 1

3. 创建一个LVM, 其VG名称为vgrhce, 包含有1个PV设备(大小为

1800M~2000M之间), 在vgrhce下创建2个LV名称为lvexam1和lvexam2, 大小均为300M~400M之间, 均格式化为ext3格式, 将lvexam1这个LV挂载至/lvexam1目录, 将lvexam2这个LV挂载至/lvexam2目录。使用上面方法创建一个大小1900M左右的分区。

#pvcreate /dev/sdb5

#vgcreate vgrhce -s 16M /dev/sdb5

#lvcreate -n lvexam1 -L +370M vgrhce #lvcreate -n lvexam2 -L +370M vgrhce

#mkdir lvexam{1,2} #mkfs.ext3 /dev/vgrhce/lvexam1 #mkfs.ext3

/dev/vgrhce/lvexam2

#mount /dev/vgrhce/lvexam1 /lvexam1 #mount /dev/vgrhce/lvexam2

/lvexam2

#vi /etc/fstab

/dev/vgrhce/lvexam1 /lvexam1 ext3 defaults 1 1

/dev/vgrhce/lvexam2 /lvexam2 ext3 defaults 1 1

4. 将vgtest这个VG扩展增加一个PV(大小为400M~500M之间), 并将vgtest 下的名为lvtest的LV在原有基础上扩展增加200M~300M之间。使用上面方法创建两个分区,一个2000M一个450M。创建vgtest,lvtest,lvhome挂载到/lvtest,/lvhome下。

#pvcreate /dev/sdb6 /dev/sdb7 #vgcreate vgtest /dev/sdb6

#lvcreate -n lvtest -L +250M vgtest #lvcreate -n lvhome -L +1000M vgtest #mkfs.ext3 /dev/vgtest/lvtest #mkfs.ext3 /dev/vgtest/lvhome

#mkdir /lvtest /lvhome #mount /dev/vgtest/lvtest /lvtest #mount

/dev/vgtest/lvhome /lvhome

#vi /etc/fstab

/dev/vgtest/lvtest /lvtest ext3 defaults 1 1

/dev/vgtest/lvhome /lvhome ext3 defaults 1 1

#vgextend vgtest /dev/sdb7

#lvextend -L +250M /dev/vgtest/lvtest /dev/sdb7

#resize2fs /dev/vgtest/lvtest

5. 将vgtest这个VG下的名为lvhome的LV缩减至500M(大小为450M~550M之间均可)。

#umount /lvhome

#e2fsck -v -f /dev/vgtest/lvhome

#resize2fs /dev/vgtest/lvhome 500M

#lvreduce -L -470M /dev/vgtest/lvhome

#mount /dev/vgtest/lvhome /lvhome 或者#mount -a

#pvdisplay #pvs #vgdisplay #vgs #lvdisplay #lvs #df -h

# 目录权限

1.创建目录/admin/sales、/admin/devel、/admin/training、/admin/other、

/admin/default。

#for DNAME in sales devel training other default;

>do

>mkdir $DNAME

>done

或#mkdir /admin/{sales,devel,training,other,default}

2.目录/admin/sales的所有者为root, 所属组为admin, 隶属于admin组的所有用户均可在此目录下创建文件, 但新建文件和目录的所属组自动是admin, 所有者是创建者自身; 其它用户无任何权限。

#chgrp admin sales/或 #chown root:admin /admin/sales

#chmod 2770 sales/或 #chmod g+s /admin/sales #chmod 770 /admin/salec

3.目录/admin/devel和/data的所有者为root,所属组root, 所有人均可在此目录下创建文件, 但不能删除别的用户创建的文件。

#chmod 1757 ./devel #chmod 1757 /data 或

#chown root:root /admin/devel #chown root:root /data

#chmod 1777 /admin/devel #chmod 1777 /data

4.目录/admin/training的所有者为root,所属组root, 用户root拥有所有权限, 组root只能读和执行,其他人无任何权限, 但是用户alex在此目录下创建文件, 而用户tom可以读取该目录下的文件。

#vi /etc/fstab #mount -o remount /admin

/dev/sdb1 /admin ext3 defaults,acl 1 1

#chmod 750 training #setfacl -m u:alex:wx training/ #setfacl -m u:tom:rx training/

或#chown root:root /admin/training #chmod 750 /admin/training

#Setfacl -m d:u:alex:wx /admin/training #Setfacl -m d:u:tom:rx

/admin/training

5.以root身份创建文件/admin/other/nodelete, 所有人在目录/admin/other均可创建和删除文件, 但文件/admin/other/nodelete不能被任何人(包括root)删除和重命名。

#touch /admin/other/nodelete #chmod 777 /admin/other

#chattr +a /admin/other/nodelete

6.在目录/admin/default下的文件(现在的和将来的)对于selina用户都是可读可写可执行的

#setfacl -R -m d:u:selina:rwx /admin/default/

# 磁盘配额

1.用户selina在/data分区下最多创建100个文件,当创建到第90个文件时会有超出quota的警告信息出现。

#vi /etc/fstab

LABEL=/data /dataext3 defaults,usrquota,grpquota 1 1

#mount -o remount /data

#quotacheck -cmvug /data

#quotaon -a或 #quotaon /data

#cd /data #edquota -u selina

inodes soft 90 hard 100

#repquota /data

2.用户alex在/data分区下最多使用50M空间,当使用到40M时会收到quota 的警告信息。

#cd /data #edquota -u selina

blocks soft 40000 hard 50000

#repquota /data

3.quota的宽限期为5天.

#edquota -t

# kernel升级

1.从ftp://https://www.wendangku.net/doc/8a14023657.html,/pub/errata/下选取kernel-

2.6.18-

164.1.gls.el5.i686包安装, 保证下次系统启动默认使用的是新的kernel。

#rpm -vih ftp://https://www.wendangku.net/doc/8a14023657.html,/pub/errata/kernel-2.6.18-

164.1.gls.el5.i686.rpm

打开/etc/grub.conf,修改default值

2.原有的kernel依然可用。

#vi /boot/grub/grub.conf

# sysctl控制

1.打开本机的路由转发包的功能。

#vi /etc/sysctl.conf

net.ipv4.ip_forward = 1

#sysctl -p

2.运行命令cat /proc/sys/net/ipv4/ip_default_ttl显示结果为128。

#vi /etc/sysctl.conf

net.ipv4.ip_default_ttl = 128

#sysctl -p

# 打印机配置

1.配置本地打印机, 其打印任务会以IPP(CUPS)的形式转至打印服务器

192.168.0.254上的名为stationX的打印队列, 该打印机的类型为Generic---Text-only。

#system-config-printer 添加时注意选择ipp、generic、text-only printer、设置为默认。

#/etc/init.d/cups start #chkconfig cups on #chkconfig --list cups

2.通过命令elinks -dump http://192.168.0.254/printers/stationX 可以看到你的打印内容.

#elinks -dump http://192.168.0.254/printers/station6

# 计划任务

1. 定义一个系统级别的计划任务,使其可以在每天的凌晨4点2分执行某个脚本(脚本内容如下, 脚本名称由你任意定义,但请保持以下格式及内容在脚本文件中不变):

#!/bin/sh

DATE=$(date +"%b %d %H:%M:%S")

HOST=$(hostname -s)

PID=$(cat /var/run/crond.pid)

echo "$DATE $HOST crond[$PID]: Now, kill ntpd daemon, and update time from server 192.168.0.254 ..." >>/var/log/messages

pkill ntpd

ntpdate -b 192.168.0.254 &>/dev/null &

sleep 1

hwclock --systohc

sleep 1

/etc/init.d/ntpd start &>/dev/null &

echo "$DATE $HOST crond[$PID]: Update time done, ntpd daemon is started." >> /var/log/messages

# done

#touch /home/scripts/updatetime.sh 将脚本放置于文件中。

#chmod a+x /home/scripts/updatetime.sh

#vi /etc/crontab

02 04 * * * root /home/scripts/updatetime.sh

#/etc/init.d/crond restart

2.禁止alex用户使用cron。

#vi /etc/cron.deny

alex 添加用户

# NIS

1.绑定NIS域名为notexample, 其服务器为19

2.168.0.254。

(yp_tools与ypbind两个包实现以下功能)

(1)Yum install yp_tools ypbind

(2)authconfig-tui 启用NIS认证主机名 192.168.0.254 NIS域名 notexample

(3)nisdomainname notexample

(4)vim /etc/sysconfig/network-script/ifcfg-eht0

NISDOMAIN=notexample

(5) service ypbind restart

Chkconfig ypbind restart

2.用户guest200X以密码1234登录到你的机器上时, 会自动将192.168.0.254上的家目录/home/guests/guest200X挂载至你本地的/home/guests/guest200X 这个家目录下( 你能够通过showmount看到https://www.wendangku.net/doc/8a14023657.html,上通过NFS共享出来的/home/guests目录), 用户guest200X可以对家目录读写。

#vi /etc/auto.master

/home/guests /etc/auto.nis (名字可以自定义auto.guests) 最后一行加入。#vi /ect/auto.nis (#cp /etc/auto.misc /etc/auto.guests自定义要统一

auto.guests)

* -rw,intr,soft 192.168.0.254:/home/guests/&

#/etc/init.d/autofs restart #chkconfig autofs on #chkconfig --list autofs Ctrl+alt+fx guest2006 #mount 查看

3.将guest200X用户的密码修改成guest1234#vt。

#yppasswd -p "guest1234#vt"或 #echo "guest1234#vt"|passwd --stdin guest2006

# YUM

1. 配置YUM仓库, 分别指向ftp://19

2.168.0.254/pub/ClusterStorage,

ftp://192.168.0.254/pub/Cluster, ftp://192.168.0.254/pub/VT和

ftp://192.168.0.254/pub/Server,gpgcheck设置成0。

#vi /etc/yum.repos.d/rhel-local.repo

[Server-local]

baseurl=ftp://192.168.0.254/pub/Server

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[VT-local]

baseurl=ftp://192.168.0.254/pub/VT

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[Cluster-local]

baseurl=ftp://192.168.0.254/pub/Cluster

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [ClusterStorage-local]

baseurl=ftp://192.168.0.254/pub/ClusterStorage

enabled=1

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

(#cd /etc/yum.repo.d #lftp 192.168.0.254 >cd /pub/gls >get server1.repo #ls )

# FTP服务

1.匿名用户访问后, 能够看到pub, share和incoming三个目录, 且匿名用户只能上传(不能改名和删除)文件至incoming目录。

#mkdir /var/ftp/share #mkdir /var/ftp/incoming

#chown ftp.ftp /var/ftp/incoming

#vi /etc/vsftpd/vsftpd.conf

anon_upload_enable=YES

#service vsftpd restart或#/etc/init.d/vsftpd restart

2.子网192.168.0.0/255.255.255.0之外的主机不能访问该服务。

#vi /etc/hosts.deny

vsftpd: ALL EXCEPT 192.168.0.0/255.255.255.0

3.该服务器只允许tom, alex和匿名3个用户访问。

#vi /etc/vsftpd/vsftpd.conf

userlist_deny=NO

#vi /etc/vsftpd/userlist 写入上述用户名,一行一个。

4.tom和alex可以在自己的家目录下写入内容。

默认可以,注意selinux。

# SSH服务

1.本地用户alex不允许访问该ssh服务。

#vi /etc/ssh/sshd_config

DenyUsers alex

2.来自192.168.0.0/255.255.255.0子网的ssh访问允许,其余一概拒绝。

#vi /etc/hosts.deny

sshd: ALL EXCEPT 192.168.0.0/255.255.255.0

3.本地用户selina不允许从192.168.0.230登录该ssh服务。(注: 你可以以用户sshexamX/密码123连接到192.168.0.230上进行测试)

#vi /etc/ssh/sshd_config

DenyUsers selina@192.168.0.230

# SAMBA服务

1.将目录/var/samba/docs共享出去, 共享名为stationX, 可以被浏览到, 只有用户tom以密码123可以对其读写, 其他用户只读。

[station10]

path = /var/samba/docs

browseable = yes

write list = tom

writeable = no

2.将目录/var/samba/public共享出去,共享名为publicX,该共享只允许用户alex 以密码123访问,其它用户不可以访问该服务。

[public10]

path = /var/samba/public

browseable = yes

valid users = alex

3.将目录/var/samba/share共享出去,共享名为share,该共享可以匿名只读访问。

[share]

path = /var/samba/share

public = yes

4. 该samba服务器必须在WORKGROUP这个工作组内。

#vi /etc/samba/smb.conf

workgroup = WORKGROUP

#smbpasswd -a alex #smbpasswd -a tom

# WEB服务

1.运行命令wget https://www.wendangku.net/doc/8a14023657.html,/exam/stationX.html,并将其重命名为index.html放在你的DocumentRoot目录下。当访问

https://www.wendangku.net/doc/8a14023657.html, 时可以看到内容。

#wget https://www.wendangku.net/doc/8a14023657.html,/exam/station6.html

#mv station10.html index.html

#mv index.html /var/www/station6

2.创建一个虚拟主机名为https://www.wendangku.net/doc/8a14023657.html,,其DocumentRoot目录指向/var/www/station1X,默认主页内容在

https://www.wendangku.net/doc/8a14023657.html,/exam/station1X.html 上可以下载下来放到你的虚拟主机上;且该DocumentRoot目录只允许192.168.0.0/24客户端主机访问其内容。(原服务https://www.wendangku.net/doc/8a14023657.html,依然存在并有效.)NameVirtualHost *:80

ServerAdmin root@https://www.wendangku.net/doc/8a14023657.html,

DocumentRoot /var/www/station16

ServerName https://www.wendangku.net/doc/8a14023657.html,

ErrorLog logs/https://www.wendangku.net/doc/8a14023657.html,-error_log

CustomLog logs/https://www.wendangku.net/doc/8a14023657.html,-access_log common

AllowOverride None

Options FollowSymLinks

Order allow,deny

Allow from 192.168.0

# NFS服务

1.将你的/data目录输出,只允许19

2.168.0.0/255.255.255.0客户端和https://www.wendangku.net/doc/8a14023657.html,域客户端以读写方式访问,其它客户端以只读方式访问。

#vi /etc/export

/data 192.168.0.0/255.255.255.0(rw)

/data *https://www.wendangku.net/doc/8a14023657.html,(rw)

/data *(ro)

# DNS服务

1.将本机作为https://www.wendangku.net/doc/8a14023657.html,域的从服务器,主服务器为19

2.168.0.254。

#vi /var/name/chroot/etc/name.conf或 #vi /etc/named.conf

zone "https://www.wendangku.net/doc/8a14023657.html," {

type slave;

file "slaves/https://www.wendangku.net/doc/8a14023657.html,.zone.db";

masters { 192.168.0.254; } ;

};

2.运行命令dig @192.168.0.X https://www.wendangku.net/doc/8a14023657.html, mx能够查看到结果。

# Mail服务

1.拒绝来自和发往https://www.wendangku.net/doc/8a14023657.html,域的所有邮件。

#vi /etc/mail/access

From:https://www.wendangku.net/doc/8a14023657.html, REJECT

To:https://www.wendangku.net/doc/8a14023657.html, REJECT

2.发送给alex@https://www.wendangku.net/doc/8a14023657.html,的邮件会被转发给alex自己和tom。

#vi /etc/aliases

alex: alex,tom

3.当发送给noreply@https://www.wendangku.net/doc/8a14023657.html,的邮件时,给对方返回一个THE MAILBOX CAN NOT REPLY错误消息。

#vi /etc/mail/access

To:noreply@https://www.wendangku.net/doc/8a14023657.html, ERROR:"THE MAILBOX CAN NOT REPLY"

4.收取邮件服务器只监听在pop3/pop3s/imap端口,imaps关闭。

#vi /etc/dovecot.conf

protocols = imap pop3 pop3s

5.用户alex可以在本域客户端上使用POP客户端收取自己的邮件。

#service dovecot start 注意防火墙。

#mutt -f p o p://alex@https://www.wendangku.net/doc/8a14023657.html,

6. 自https://www.wendangku.net/doc/8a14023657.html,域发起的POP3(端口110)请求一律禁止(我们认为, 您可以指定https://www.wendangku.net/doc/8a14023657.html,域的地址范围是172.16.1.100~105/24).

#iptables -t filter -A INPUT -s 172.16.1.100 -m tcp -p tcp --dport 110 -j DROP #iptables -t filter -A INPUT -s 172.16.1.101 -m tcp -p tcp --dport 110 -j DROP #iptables -t filter -A INPUT -s 172.16.1.102 -m tcp -p tcp --dport 110 -j DROP #iptables -t filter -A INPUT -s 172.16.1.103 -m tcp -p tcp --dport 110 -j DROP #iptables -t filter -A INPUT -s 172.16.1.104 -m tcp -p tcp --dport 110 -j DROP #iptables -t filter -A INPUT -s 172.16.1.105 -m tcp -p tcp --dport 110 -j DROP #iptables -t filter -A INPUT -s 172.16.1.100/24 -m tcp -p tcp --dport 110 -j ACCEPT

# Web Proxy服务

https://www.wendangku.net/doc/8a14023657.html,域客户端可以使用该代理, 其它不允许。

#vi /etc/squid/squid.conf

acl examplecom srcdom.regex –i https://www.wendangku.net/doc/8a14023657.html,

http_access allow examplecom

2.squid服务监听在8080端口。

#vi /etc/squid/squid.conf

http_port 8080

3.拒绝客户端访问目标为https://www.wendangku.net/doc/8a14023657.html,域。

#vi /etc/squid/squid.conf

acl qqcom dstdom.regex –i https://www.wendangku.net/doc/8a14023657.html,

http_access deny qqcom

4.所有客户端不允许在每日的下午9点至早上7点使用该代理, 但是客户端192.168.0.230不受此限制.

(注: 你可以以用户sshexamX/密码123连接到192.168.0.230上进行测试)

#vi /etc/squid/squid.conf

acl host230 src 192.168.0.230

acl denytime time MTWHF 21:00-24:00

acl denytime time MTWHF 00:00-07:00

http_access allow host230

http_access deny denytime

# 附加题:

1. WWW: 目录/var/www/station1X/private只允许来自

192.168.0.0/255.255.255.0(但不包括192.168.0.230)的客户端访问。

Vim /etc/httpd/conf/httpd.conf

Order allow deny

Allow form 192.168.0.0/255.255.255.0

Deny from 192.168.0.230

2. HTTPS: 客户端浏览到https://https://www.wendangku.net/doc/8a14023657.html, 时, 显示内容为"This is stationX's SSL site."

2.用户alex只允许从客户端192.168.0.230上登录到本机ftp服务.

Vim /etc/hosts.allow

Vsftp:192.168.0.230

Vim /etc/vsftpd/vsftpd.conf

userlist_deny=NO

#vi /etc/vsftpd/userlist 写入alex,一行一个。

RHCE认证考试模拟题及答案.docx

RHCT/RHCE考前模拟试卷 针对考试图形化界面 说明: 1、测试环境https://www.wendangku.net/doc/8a14023657.html,对应的IP网络地址:192.168.0.0,子网掩码:255.255.255.0 2、测试环境https://www.wendangku.net/doc/8a14023657.html,对应的IP网络地址:192.168.1.0,子网掩码:255.255.255.0 3、测试机器环境192.168.1.10 https://www.wendangku.net/doc/8a14023657.html, 用户 root 密码: redhat 4、NFS服务器:192.168.0.254,NFS文件共享:/var/ftp/pub 5、FTP服务器:192.168.0.254 6、yum服务器:ftp://192.168.0.254/pub/Server 7、系统要求:(selinux和firewall必须开启,使用UTC时钟),时区选择上海 IP地址使用静态地址,IP地址为 192.168.0.X(X是你的机器号),子网掩码为255.255.255.0 网关:192.168.0.254,对应域名为 https://www.wendangku.net/doc/8a14023657.html, 8、root帐户密码 redhat 新建普通用户 student 密码 password 考题基础部分: 1、将root密码修改为:redhat,使得root能够正常登录runlevel 3。 Vi /etc/inittab找到如下这行,将数字5修改为3 2、配置静态IP地址为:192.168.0.X/24(X是你的考试号),能够ping通指定主机192.168.0.254。

或者编辑如下文件 3、配置DNS服务器为192.168.0.254,能够使用dig命令解析指定的域名:https://www.wendangku.net/doc/8a14023657.html, 第一句搜索整个域可以不要

2005年研究生入学考试数学一模拟试题参考答案

2005年研究生入学考试数学一模拟试题参考答案 一、填空题(本题共6小题,每小题4分,满分24分. 把答案填在题 (1) [解] 0 ()()()()lim x f x x f x f x x f x x x αβ?→+?---?? -? ????? 0()()()()lim x f x x f x f x x f x x x αβαβαβ?→?? +?---=+???-?? ()()()()f x f x f x αβαβ'''=+=+ (2)[解] ,01()1,1x x f x x x ≤

L 包含(0,0)O 于其内,∴ P Q y x ??≠??. 作2 2 2 *:4,((0,1))L x y εε+=∈ 则 * * 222 1 4L L L xdy ydx xdy ydx x y ε -= =-+?? ? ** 2 2 1 2 (11)D D dxdy dxdy ε ε = += ????2 2 2 ε πε πε = = (5)[解] 2 311(2)(5)0A A E A E A E E +-=-+-= (2)(5),A E A E E ?-+= ∴1 (2) 5.A E A E --=+ (6)[解] 2 2 (234)(234)[(234)]E X Y D X y E X Y -+=-++-+ 24()9()2cov(2,3)(434)42593622(3)0.45625 305 D X D Y X Y =++-+-+=?+?+??-??+= 二、选择题(本题共8小题,每小题4分,满分32分,每小题给出的四个选项中,只有一项符合要求,把所选项前的字母填在题后的括号内) (7)[解] 112lim ()n n n n n n I e →∞++=+ 110 01 ln 1dx x x e e ?===. 选(A ) (8)[解] 000210.()2()()10,y yy f x f x f x ''''''--=--=  00()0,()1f x f x '''=?= 选(A ) (9)[解] 1 1 (1) ,(0)n n n n u u ∞ -=->∑条件收敛. 由条件收敛级数的所有正项与所有负项所构成的级数发散. ∴ 选 (C) (10 [解] 212,2()y y f f y C x '''==+ 由1(,0)()y f x x C x x '=?= 222(,)()y f y x f x y y xy C x '?=+?=++

RHCE 题库100道含答案

1.cron 后台常驻程序 (daemon) 用于: A. 负责文件在网络中的共享 B. 管理打印子系统Manages the printing subsystem C. 跟踪管理系统信息和错误 D. 管理系统日常任务的调度 (scheduling) 2.在大多数Linux发行版本中,以下哪个属于块设备 (block devices) ? A. 串行口 B. 硬盘 C. 虚拟终端 D. 打印机 3.下面哪个Linux命令可以一次显示一页内容? A. pause B. cat C. more D. grep 4.怎样了解您在当前目录下还有多大空间? A. Use df B. Use du / C. Use du . D. Use df . 5.怎样更改一个文件的权限设置? A. attrib B. chmod C. change D. file 6.假如您需要找出 /etc/my.conf 文件属于哪个包 (package) ,您可以执 行: A. rpm -q /etc/my.conf B. rpm -requires /etc/my.conf C. rpm -qf /etc/my.conf D. rpm -q | grep /etc/my.conf 7.假如当前系统是在 level 3 运行,怎样不重启系统就可转换到 level 5 运行? A. Set level = 5 B. telinit 5 C. run 5 D. ALT-F7-5

8.那个命令用于改变 IDE 硬盘的设置? A. hdparam B. ideconfig C. hdp arm D. hddp arm 9.下面哪个命令可以列出定义在以后特定时间运行一次的所有任务? A. atq B. cron C. batch D. at 10.下面命令的作用是:set PS1="[\u\w\t]\\$",export PS1 A. 改变错误信息提示 B. 改变命令提示符 C. 改变一些终端参数 D. 改变辅助命令提示符 11.作为一个管理员,你希望在每一个新用户的目录下放一个文件 .bashrc , 那么你应该在哪个目录下放这个文件,以便于新用户创建主目录时自动将这个文件复制到自己的目录下。 A. /etc/skel/ B. /etc/default/ C. /etc/defaults/ D. /etc/profile.d/ 12.在bash中,export命令的作用是: A. 在子shell中运行条命令 B. 使在子shell中可以使用命令历史记录 C. 为其它应用程序设置环境变量 D. 提供NFS分区给网络中的其它系统使用 13.在使用了shadow口令的系统中,/etc/passwd和/etc/shadow两个文件的 权限正确的是: A. -rw-r----- , -r-------- B. -rw-r--r-- , -r--r--r-- C. -rw-r--r-- , -r-------- D. -rw-r--rw- , -r-----r-- 14.下面哪个参数可以删除一个用户并同时删除用户的主目录? A. rmuser -r B. deluser -r C. userdel -r

考研英语考级模拟试题1及答案

考研英语模拟试题一及答案 Section I Use of English Directions: Read the following text. Choose the best word (s) for each numbered blank and mark A, B, C or D on the ANSWER SHEET. (10 points) Could a hug a day keep the doctor away? The answer may be a resounding "yes!" 1 helping you feel close and 2 to people you care about, it turns out that hugs can bring a 3 of health benefits to your body and mind. Believe it or not, a warm embrace might even help you 4 getting sick this winter. In a recent study 5 over 400 health adults, researchers from Carnegie Mellon University in Pennsylvania examined the effects of perceived social support and the receipt of hugs 6 the participants' susceptibility to developing the common cold after being 7 to the virus .People who perceived greater social support were less likely to come 8 with a cold ,and the researchers 9 that the stress-reducing effects of hugging 10 about 32 percent of that beneficial effect. 11 among those who got a cold, the ones who felt greater social support and received more frequent hugs had less severe 12 . "Hugging protects people who are under stress from the 13 risk for colds that's usually 14 with stress," notes Sheldon Cohen, a professor of psychology at Carnegie. Hugging "is a marker of intimacy and helps 15 the feeling that others are there to help 16 difficulty." Some experts 17 the stress-reducing , health-related benefits of hugging to the release of oxytocin, often called "the bonding hormone" 18 it promotes attachment in relationships, including that between mother and their newborn babies. Oxytocin is made primarily in the central lower part of the brain , and some of it is released into the bloodstream. But some of it 19 in the brain, where it 20 mood, behavior and physiology. 1.[A] Unlike [B] Besides [C] Despite [D] Throughout 2.[A] connected [B] restricted [C] equal [D] inferior 3.[A] choice [B] view [C] lesson [D] host 4.[A] recall [B] forget [C] avoid [D] keep 5.[A] collecting [B] involving [C] guiding [D] affecting 6.[A] of [B] in [C] at [D] on 7.[A] devoted [B] exposed [C] lost [D] attracted 8.[A] across [B] along [C] down [D] out 9.[A] calculated [B] denied [C] doubted [D] imagined

考研数学二模拟题(新)

考研数学二模拟题 一、选择题:1~8小题,每小题4分,共32分。在每小题给出的四个选项中,只有一项符合 题目要求,把所选项前的字母填在题后的括号中。 (1)当0x →时,设2 arctan x α=,11(0)a x a β=(+)-≠,2 arcsin x tdt γ=? ,把三个无 穷小按阶的高低由低到高排列起来,正确的顺序是( ) (A ),,αβγ;(B ),,βγα;(C ),,βαγ;(D ),,γβα; (2)设函数()f x 在(,)-∞+∞内连续,在(,0) (0,)-∞+∞内可导,函数()y y x =的图像为 则其导数的图像为( ) (A) (B)

(C) (D) (3)若()f x 是奇函数,()x ?是偶函数,则[()]f x ?( ) (A )必是奇函数 (B )必是偶函数 (C )是非奇非偶函数 (D )可能是奇函数也可能是偶函数 (4)设220ln(1)() lim 2x x ax bx x →+-+=,则( ) (A )51,2a b ==- ;(B )0,2a b ==-;(C )5 0,2 a b ==-;(D )1,2a b ==- (5)下列说法中正确的是( ) (A )无界函数与无穷大的乘积必为无穷大; (B )无界函数与无穷小的乘积必为无穷小; (C )有界函数与无穷大之和必为无穷大; (D )无界函数与无界函数的乘积必无解; (6)设线性无关的函数123,,y y y 都是二阶线性非齐次方程()()()y p x y q x y f x '''++=的解, 123,,C C C 为任意常数,则该方程的通解是( ) (A )112333C y C y C y ++; (B )1123123()C y C y C C y +++; (C )1123123(1)C y C y C C y +---;(D )1123123(1)C y C y C C y ++--; (7)设A 是n 阶矩阵,齐次线性方程组(I )0Ax =有非零解,则非齐次线性方程组(II )T A x b =,对任何12(,, )T n b b b b = (A )不可能有唯一解; (B )必有无穷多解; (C )无解; (D )可能有唯一解,也可能有无穷多解

rhce考试试题以及答案

RHCT考试: 问题1:基本网络设定#配置静态地址信息: #通过hostname查看本机编号,例如 #https://www.wendangku.net/doc/8a14023657.html, 其中X为本机编号 #IP地址为:192.168.0.X #子网掩码:255.255.255.0 #网关:192.168.0.254 #网页测试:https://www.wendangku.net/doc/8a14023657.html,/rhct.html 答案: #hostname #vim /etc/sysconfig/network HOSTNAME=https://www.wendangku.net/doc/8a14023657.html, #hostname https://www.wendangku.net/doc/8a14023657.html, #vim /etc/sysconfig/network-scripts/ifcfg-eth0 BOOTPROTO=none IPADDR=192.168.0.6 NETWORK=255.255.255.0 GATEWAY=192.168.0.254 :wq #Service network restart #ping 192.168.0.254 Ping通 网页测试:https://www.wendangku.net/doc/8a14023657.html,/rhct.html 问题2:账户管理 #建立staff 群组 #建立naima 用户,使其附属于staff 群组 #建立taliesin 用户,使其附属于staff 群组 #建立simira 用户,使其无法交互式登录本地系统,且不是staff 群组成员#以上使用者naima、talisin及simira 的密码均为passwd 答案: #groupadd staff #useradd –G staff naima #useradd -G staff taliesin #useradd –s /sbin/nologin simira #passwd naima Passwd

考研英语模拟试题及答案

2018考研英语模拟试题一及答案 Section I Use of English Directions: Read the following text. Choose the best word (s) for each numbered blank and mark A, B, C or D on the ANSWER SHEET. (10 points) Could a hug a day keep the doctor away? The answer may be a resounding "yes!" 1 helping you feel close and 2 to people you care about, it turns out that hugs can bring a 3 of health benefits to your body and mind. Believe it or not, a warm embrace might even help you 4 getting sick this winter. In a recent study 5 over 400 health adults, researchers from Carnegie Mellon University in Pennsylvania examined the effects of perceived social support and the receipt of hugs 6 the participants' susceptibility to developing the common cold after being 7 to the virus .People who perceived greater social support were less likely to come 8 with a cold ,and the researchers 9 that the stress-reducing effects of hugging 10 about 32 percent of that beneficial effect. 11 among those who got a cold, the ones who felt greater social support and received more frequent hugs had less severe 12 . "Hugging protects people who are under stress from the 13 risk for colds that's usually 14 with stress," notes Sheldon Cohen, a professor of psychology at Carnegie. Hugging "is a marker of intimacy and helps 15 the feeling that others are there to help 16 difficulty." Some experts 17 the stress-reducing , health-related benefits of hugging to the release of oxytocin, often called "the bonding hormone" 18 it promotes attachment in relationships, including that between mother and their newborn babies. Oxytocin is made primarily in the central lower part of the brain , and some of it is released into the bloodstream. But some of it 19 in the brain, where it 20 mood, behavior and physiology. 1.[A] Unlike [B] Besides [C] Despite [D] Throughout 2.[A] connected [B] restricted [C] equal [D] inferior 3.[A] choice [B] view [C] lesson [D] host 4.[A] recall [B] forget [C] avoid [D] keep 5.[A] collecting [B] involving [C] guiding [D] affecting 6.[A] of [B] in [C] at [D] on 7.[A] devoted [B] exposed [C] lost [D] attracted 8.[A] across [B] along [C] down [D] out 9.[A] calculated [B] denied [C] doubted [D] imagined

RHCE70考试真题解析

RHCSA考试 网络环境 DNS、Gateway:172.24.11.250/24、172.24.11.254/24 虚拟机器名:station.domain*.example. 物理机名:host.domain*.example. 服务器:server1.domain*.example. 物理机器:为LDAP服务器 虚拟机:硬盘为8G ,存1G, /vda1 /boot /vda2 /vgvol-lv0 /home /vda3 /vgroup 4G swap 512M RHCSA考试仅需在server上配置即可, 首先需要设置主机的密码、启动图形界面、配置IP、DNS、getway、主机名。(rd.break) 删除console=ttys0,115200n8这句话,tab建,在段尾加入rd.break回车 进入交换模式以后输入指令: mount -o remount,rw /sysroot chroot /sysroot passwd 密码(or echo redhat | passwd --stdin root) touch /.autorelabel exit exit # freezing enforcing=0 #init 5 启动虚拟机上的图形化界面。 #安装图形化界面方法(在startx无法启动图形化的情况): yum -y install xorg* yum -y install gnome* yum -y install glx* startx后者init 5 密码修改完成,注意此处修改的是你考试用虚拟码,而不是物理码。 关于ip地址设置,请查看考题要求(虚拟机IP地址、主机名信息) Ip link # 或ip addr,查看端口信息hostnamectl set-hostname station.domain*.example. nmcli con mod eno1677736 ipv4.method manual

硕士研究生入学考试模拟试题.doc

硕士研究生入学考试模拟试题3 一、比较每一组名词术语(50分): 1.胚乳和外胚乳 2.外始式和内始式 3.传递细胞和输导组织 4.叶痕和叶迹 5.单雌蕊和离生雌蕊 6.聚合果和聚花果 7.真花说和假花说 8.种子植物和被子植物 9.同型叶和异型叶 10.定根和不定根 二、填空(每空0.5分,共20分): 1.一个成熟植物细胞的细胞壁由外到内依次由、和三层构成。 2.裸子植物输导水分与矿物质由完成,输导有机物由完成,起机械支持作用的分子是。 3.种子的基本构造由种皮、和组成。 4.微管形成层细胞通过平周分裂向外产生,向内产生。 5.根据可判断树龄,根据可判断枝条的年龄。 6.三回羽状复叶,即叶轴分枝次,再生小叶。 7.植物的繁殖可分为、和三种类型。 8.多歧聚伞花序、单歧聚伞花序、二歧聚伞花序都属于花序。 9.胚囊母细胞减数分裂形成个大孢子,其中个发育成成熟胚囊。 10.植物双名法第一个词是名,为词,第二个词是,为词,第三个词是的缩写。如小麦的学名为Triticum aestivum L.,其中Triticum为,aestivum为,L.为。 11.常用的分类检索表的格式有和两类。 12.有胚植物包括植物、植物、植物和植物。 13.我国蕨类植物学家秦仁昌教授将蕨类植物门分为5个亚门,即亚门、亚门、亚门、亚门和亚门。 14.草本、茎四棱、叶对生、花唇形、二强雄蕊、坚果是科的识别要点;在北方常见植物中,单体雄蕊是科植物具有的特点。 三、判断正误(10分): 1.成熟的导管分子和筛管分子都是死细胞。() 2.种子萌发时,胚芽首先突破种皮向上生长。() 3.胡萝卜是变态根,食用部分主要是其次生韧皮部。() 4.叶中脉的韧皮部靠近上表皮,木质部靠近下表皮。() 5.杨柳科既具有风媒花传粉的特点,又具有虫媒花传粉的特点。()

红帽子RHCE考试题目及参考答案

RHCE题目及答案 1、对sshd做访问控制, 要求只能来自https://www.wendangku.net/doc/8a14023657.html,域的用户可以访问你的ssh服务器,其他的不可以访问 步骤: rpm –qa |grep openssh vi /etc/hosts.deny >sshd: 192.168.1. wq service sshd restart chkconfig sshd on 或者iptables -F iptables –A INPUT –s ! 192.168.0.0/24 –p tcp –dport 22 –j REJECT iptables –A INPUT –s ! 192.168.0.0/24 –p udp –dport 22 –j REJECT service iptables save service iptables restart 2、开启pop3服务,要求来自https://www.wendangku.net/doc/8a14023657.html,域的主机上的用户tom 可以收取你的pop3服务器上tom的mail。来自于https://www.wendangku.net/doc/8a14023657.html,的成员不可以访问你的pop3服务器 步骤; yum install sendmail* yum install dovecot*

chkconfig sendmail on chkconfig dovecot on service sendmail start service dovecot start cd /etc/mail vi local-host-names >https://www.wendangku.net/doc/8a14023657.html, https://www.wendangku.net/doc/8a14023657.html, wq vi sendmail.mc > wq m4 sendmail.mc > sendmail.cf vi access >192.168.0 RELAY 192.168.1 REJECT wq makemap hash access.db < access vi /etc/dovecot.conf >#protocols = imap imaps pop3 pop3s 去掉# wq service sendmail restart

最新考研英语模拟试题:阅读理解

考研英语模拟试题:阅读理解 Faces, like fingerprints, are unique. Did you ever wonder how it is possible for us to recognize people? Even a skilled writer probably could not describe all the features that make one face different from another. Yet a very young child-or even an animal, such as a pigeon-can learn to recognize faces. We all take this ability for granted. We also tell people apart by how they behave. When we talk about someone’s personality, we mean the ways in which he or she acts, speaks, thinks and feels that make that individual different from others. Like the human face, human personality is very complex. But describing someone’s personality in words is somewhat easier than describing his face. if you were asked to describe what anice facelooked like, you probably would have a difficult time doing so. But if you were asked to describe anice person,you might begin to think about someone who was kind, considerate, friendly, warm,and so forth. There are many words to describe how a person thinks, feels and acts. Gordon all ports, an American psychologist, found nearly 18 000 English words characterizing differences in people’s behavior. And many of us use this information as a basis for describing, or typing, his personality. Bookworms, conservatives, military types-people are described with such terms. People have always tried totypeeach other. Actors in early Greek

RHCE-测试试题详解

RHCE-试题详解

————————————————————————————————作者:————————————————————————————————日期:

RHCE7.0 试题详解 RHCSA部分 关于密码破解,在上午的考试中需要我们自己安装图形化界面和破解root密码,root的密码按照题目的要求来进行修改。可以使用单用户模式或者使用上课讲的re.break都可以。 re.break方法: 删除console=ttys0,115200n8这句话在最后加入rd.break 进入交换模式以后输入下列指令: 1 2 3 4 5 mount -o remount,rw /sysroot chroot /sysroot passwd #密码 touch /.autorelabel reboot init方法估计在考试的虚拟机中无法使用,可能是我的打开方式不对吧。 图形化界面安装: 考试的时候可能需要自己安装图形化界面,如果在startx 无法启动图形化的情况下可以是下面的命令进行安装: 1 2 3 4 yum –y install xorg* yum –y install gnome* yum –y install glx* startx #or init 5 密码修完完成,注意此处是修改的你考试用的虚拟机密码,而不是物理机密码。关于IP地址的设置,请查看考题的其他信息里面可以看到虚拟机应该设置的IP地址信息,和主机名信息。 1 2 3 4 5 6 7 hostnamectl set-hostname https://www.wendangku.net/doc/8a14023657.html, nmcli connection modify eno16777736 ipv4.method manual nmcli connection modify eno16777736 ipv4.addresses '172.24.11.10/24 172.24.11.254' nmcli connection modify eno16777736 ipv4.dns '172.24.11.250' nmcli connection up eno16777736 nmcli con show eno16777736 | grep ipv4 host https://www.wendangku.net/doc/8a14023657.html, route -n IP地址也可以使用nm-connection-editor图形化界面进行修改。修改完成以上信息以后就可以开始正式做题了。 1. 配置SELINUX使其工作在enforcing模式下 1 2 3 4 5 getenforce #查看模式setenforce 1 #设置为enforcing模式getenforce #查看 vim /etc/selinux/config #永久修改selinux=enforcing

2017年考研政治模拟试题及答案

2017年考研政治模拟试题及答案 2017年考研政治模拟试题及答案 单项选择题(下列每题的选项中,只有一项最符合题意。) 1.唐代诗人刘禹锡有诗云:“沉舟侧畔千帆过,病树前头万木春。”其蕴含的哲理是() A.矛盾是事物发展的动力 B.发展的实质是新事物的产生和旧事物的灭亡 C.事物之间是普遍联系的 D.事物的发展是量变和质变的统一 2.联系是指事物内部各要素之间和事物之间相互影响、相互制约和相互作用的关系。辩证联系的前提是() A.事物之间的区别 B.事物的相互过渡 C.事物的相互依存D.事物的相互转化 3.凡真实的联系都是事物本身所固有的联系,而不是人们强加给事物的主观臆想的联系。这种情况主要说明,联系是() A.客观的 B.普遍的 C.复杂多样的 D.关系范畴 4.事物运动变化的基本趋势是() A.联系B.发展 C.矛盾D.质变答案及解析 1.【答案】B 【解析】本题考查的知识点:发展的实质唯物辩证法是关于世界普遍联系和永恒发展的科学。肯定世界的普遍联系和永恒发展,是唯物辩证法的总特征。依照唯物辩证法,包括自然、人类社会和人类自身在内的整个世界的一切事物和现象,都处在普遍的联系和运

动、变化、发展之中。联系的观点和发展的观点是唯物辩证法的基本观点和总特征。其中,发展是前进的上升的运动,发展的实质是新事物的产生和旧事物的灭亡。新事物是指合乎历史前进方向、具有远大前途的东西;旧事物是指丧失历史必然性、日趋灭亡的东西。在本题中,诗句“沉舟侧畔千帆过,病树前头万木春”表达的是新旧事物之间转换的意思,体现了发展的实质的哲理。所以,本题的正确答案是选项B。最近几年的考试中经常会有以名人名言或诗句命制的题目,很多考生一见到这样的题目就会大脑一片空白,根本找不到解题头绪。其实,答这类题的时候并不要逐字逐句的进行翻译,通常可以通过找关键词和核心词的方法,快速解题,起到事半功倍的效果。 2.【答案】A 【解析】本题考查的知识点:联系的含义作为唯物辩证法的两大特征之一,联系是指事物内部各要素之间和事物之间相互影响、相互制约和相互作用的关系。辩证联系是以事物之间的区别为前提的,相互区别的事物又通过联系而相互过渡。辩证法要求在区别中看到联系,在联系中看到区别。如果世界上的`事物相互之间没有任何区别,没有相对的界限,那么,它们将是一团混沌,也就没有任何联系可言了。承认事物相互之间的区别和界限,决不能否认事物相互之间的联系,否认它们的相互过渡和转化。如果说,只承认事物的相互区别和界限而不承认事物的联系和转化,就

考研高数模拟试题

模拟测试题(七) 考生注意:(1)本试卷共三大题,23小题,满分150分. (2)本试卷考试时间为180分钟. 一、选择题(本题共8小题,每题4分,共32分) (1)函数sin y x x =+及其表示的曲线 ( ). (A ) 没有极值点,有无限个拐点 ; (B ) 有无限个极值点和无限个拐点 ; (C ) 有无限个极值点,没有拐点 ; (D ) 既无极值点,也无拐点 . (2) 设222 22(0(,)0,0x y x y f x y x y ?++≠?=??+=? 则在(0,0)点处, (,)f x y ( ). (A ) 连续但二偏导数不都存在 ; (B ) 二阶偏导数存在但不连续; (C ) 连续且二偏导数存在但不可微 ; (D ) 可微 . (3)(一、三)设级数 n n a ∞ =∑收敛,则下列三个级数① 2 1 ,n n a ∞ =∑②41 ,n n a ∞ =∑③61 n n a ∞ =∑中( ) (A ) ①、②、③均收敛 ; (B ) 仅②、③收敛 ; (C ) 仅③收敛 ; (D ) ①、②、③均未必收敛 . (3)(二) 设21,0 ()||,(),,0 x x f x x g x x x -≥?==?

(完整版)rhcsa考试题库

Mkdir –p /home/admins Chown admin /home/admins Chmod 770 /home/admins Chmod g+s /home/admins Ld –ld /home/admins 在home下创建一个目录admins,加入组admin组的用户可以读和写,其他用户不允许进入。在这个目录下的任何文件所属组都自动继承为admin Mkdir /home/admins Ls –ld /home/admims Chgrp –R admin /home/admins Chmod 760 /home/admins Chmodg+s /home/admins Ls –ld /home/admins Ld 查看文件夹的本身 Ls 查看文件夹里面的东西

Groupadd –g 610 admin 添加一个组GID 为610 groupadd -g610 admin Fdisk /dev/vda N P 1 +420M T 8e W Partprobe /dev/vda Cat /proc/partitions Pvcreate /dev/vda1 格式化vda1

Vgcreate –s 8M vg1 /dev/vda1 –s指定pe大小默认4M Lvcreate –l 50 –n lv1 vg1 -n表示卷名–L表示指定lv大小-s支持快照Mkfs.ext4 /dev/vg1/lv1 Mkdir –p /mnt/data Vim /etc/fstab /dev/vg1/lv1 /mnt/data etx4 defaults 0 0 Mount -a df -Th Pvcreate /dev/sda1 (sd1要分的比400M大一些) Vgcreatevgtest /dev/sda1 –s 8M lvcreate–l 50 –n lvtestvgtest Mkfs.ext4 /dev/vgtest/lvtest Vim /etc/fstab /dev/vgtest/lvtest /mnt/data ext4 default 0 0 Mount -a df -Th

RHCE70练习题汇总

RHCSA部分 关于密码破解,在上午的考试中需要我们自己安装图形化界面和破解root密码,root的密码按照题目的要求来进行修改。可以使用单用户模式或者使用上课讲的re.break都可以。 re.break方法: 删除console=ttys0,115200n8这句话在最后加入rd.break 进入交换模式以后输入下列指令: mount -o remount,rw /sysroot chroot /sysroot passwd 密码 touch /.autorelabel exit reboot init方法估计在考试的虚拟机中无法使用,可能是我的打开方式不对吧。 图形化界面安装: 考试的时候可能需要自己安装图形化界面,如果在startx无法启动图形化的情况下可以是下面的命令进行安装: yum –y install xorg* yum –y install gnome* yum –y install glx* startx后者init 5 密码修完完成,注意此处是修改的你考试用的虚拟机密码,而不是物理机密码。关于IP地址的设置,请查看考题的其他信息里面可以看到虚拟机应该设置的IP 地址信息,和主机名信息。 hostnamectl set-hostname https://www.wendangku.net/doc/8a14023657.html, nmcli connection modify eno ipv4.method manual nmcli connection modify eno ipv4.addresses '172.24.11.10/24 172.24.11.254' nmcli connection modify eno ipv4.dns '172.24.11.250' nmcli connection up eno nmcli con show eno | grep ipv4 host https://www.wendangku.net/doc/8a14023657.html, route -n IP地址也可以使用nm-connection-editor图形化界面进行修改。 修改完成以上信息以后就可以开始正式做题了。 1.配置SELINUX使其工作在enforcing模式下 解法: getenforce //查看模式 setenforce 1 //设置为enforcing模式 getenforce //查看 vim /etc/selinux/config //永久修改 selinux=enforcing :wq 重启 然后使用sestatus命令查看

相关文档