101 questions and answers for RHCE (7) and 101 questions and answers for rhce

Source: Internet
Author: User
Tags dovecot squid proxy

101 questions and answers for RHCE (7) and 101 questions and answers for rhce


To make it easier for people who plan to perform RedHat certification and O & M work to learn more systematically, I have selected 101 RHCE questions and answers from the Internet. Considering that the daily learning volume is large, therefore, we extract 10 questions every day for pushing until the push is complete. I hope it will be useful to you. Thank you.


61. 1. Create a partition with a size of 300 M. mount it to/common and make it take effect permanently.
# Fdisk/dev/sda
P → n → + 300M → w
# Partprobe
# Mkfs. ext3/dev/sda5
# Mkdir/common
# Mount/dev/sda5/common
# Df-TH
# Vim/etc/fstab
/Dev/sda5/common ext3 defaults 0 0

Assume that your partition is/dev/sda5
Method 2:
1. e2label/dev/sda5 common
2. echo-e "LABEL = common \ t/common \ t ext3 \ t defaults \ t 1">/etc/fstab
Method 3:
Echo "mount/dev/sda5/common">/etc/rc. local


62. Configure the NTP client to synchronize time with the server1.example.com server.

Auto-start
RHCT
You must complete all questions within 3.5 hours. After 3.5 hours, the system will automatically shut down!
You will notice that some conditions specify that a service is invalid for the my133t.org domain. All systems in this domain are in the 172.25.0.0/255.255.0.0 network segment, and all hosts in this network segment are in the my133t.org domain; hosts in the example.com domain are in the network segment 172.24.0.0/255.255.255.0.0!
To install the software, you can use YUM. The YUM Source Path is:
Http://server1.example.com/pub/server
Before you take the test, you must first obtain the permission and set your system password to rW9ySX.
Configure static address information:
IP Address: 172.24.0.X (X indicates the local ID)
Subnet Mask: 255.255.0.0
Gateway; 172.24.254.254
DNS: 172.24.254.254
Join
Vim/etc/hosts
172.24.X.X stationX.example.com stationX


64. Configure the apache Virtual Host to meet the following requirements:
A. the DocumentRoot path is/var/www/virt.
B. Download the main page file from the server http://server1.example.com/pub/#.htmland set it as the home page of the virtual terminal.
Cd/var/www/virt/
Wget http://server1.example.com/pub/virt.html
Vim/etc/httpd/conf/httpd. conf
Modify the virtual directory of Row 3
ServerAdmin root@www13.example.com
DocumentRoot/var/www/virt
ServerName www13.example.com
DirectoryIndex pai.html

/Etc/init. d/httpd restart

C. The website domain name is http://wwwx.example.com (x is the current station number)
D. Allow the user usr-2 to create files in the/var/www/virt folder
Cd/var/www/
Setfacl-m u: usr-2: rwx virt/
Detects su to usr-2 creating files under virt


65. Configure the Squid Proxy Server to meet the following requirements:
Yum install squid-y
A. Change the Squid listening port to 8080.
Vim/etc/squid. conf
Change 921 rows to 8080
B. Only allow all hosts in the Local Machine and example.com to access the local Squid service.
Add a line of acl example src 172.24.0.0/255.255.255.0 to the row 574
Add an http_access allow example line under row 637 (do not add it to the bottom of DENY)
/Etc/init. d/squid restart
Chkconfig squid on
Detect proxy detection in the browser


66. Configure the apache service to meet the following requirements:
Yum install httpd-*-y
A. Access the local apache service through stationx.example.com (x indicates the current station number)
Cd/var/www/html/
Wget http://server1.example.com/pub/test.html
B. The home page path is http://server1.example.com/pub/test.html
Vim/etc/httpd/conf/httpd. conf
Modify the virtual directory of Row 3
ServerAdmin root@station13.example.com
DocumentRoot/var/www/html
ServerName station13.example.com
DirectoryIndex test.html
/Etc/init. d/httpd restart


67. All Hosts in hack.org are denied access to the ftp service of the local machine.
Vim/etc/hosts. deny
Vsftpd: 172.25.0.0/255.255.255.0.0


68. Configure the ftp service
Yum install vsftpd-y
/Etc/init. d/vsftpd restart
Chkconfig vsftpd on


59. Configure the IMAPS email encryption service to meet the following requirements:
Vim/etc/dovecot. conf
91 92 lines remove comments
A. IMAPS only provides services for all hosts in the example.com domain. The electronic certificate information used by IMAPS is as follows:
Cd/etc/pki/tls/certs
Make dovecot. pem
Dovecot. pem as required below
B. Use the default country. state. locality. organization
C. Set Organizational unit to rhce
C. Common Name is stationx.example.com (x is the current station number)
Only. the email address is root@stationx.example.com (x is the current station number)
Finally, copy dovecot. pem to the directory of line 92 of/etc/dovecot.
Cp dovecot. pem/etc/pki/dovecot/private/
Cp dovecot. pem/etc/pki/dovecot/certs/
/Etc/init. d/dovecot restart
Detect mutt-f imaps: // usr-1@stationx.example.com


69. All Hosts in hack.org are denied access to the pop3 service of the local machine.
Iptables-a input-p tcp-s 172.25.0.0/16 -- dport 110-j REJECT
Iptables-a input-p udp-s 172.25.0.0/16 -- dport 110-j REJECT
Iptables-a input-p tcp-s 172.25.0.0/16 -- dport 993-j REJECT
/Etc/init. d/iptables save


70. Configure the local SMTP service so that it can accept local and external emails
Yum install sendmail-*-y
Yum install m4-y (may be installed by default)
Cd/etc/mail
Vim sendmail. mc
Change row 127.0.0.1 to 0.0.0.0.
M4 sendmail. mc> sendmail. cf
Vim local-host-names
Add stationX.example.com
/Etc/init. d/sendmail restart
Test
Mutt-f imap: // usr-1@stationX.example.com send and receive mail Test


Free Linux cloud computing courses are on course,5 days freeO & M dry goods content free of charge,Click the end of the article"Read original"Free O & M courses!Speed to grab ~~~~

PS: Check out the free gift package provided by xiaobian ~

Benefits | more than 10 thousand sets of PPT templates for free! Unconditional receipt!

Free | more than 1000 sets of resume templates are offered free of charge, and a resume creation tutorial is provided!

Free of charge | the "Shell script 100 cases" ebook is free of charge and must be used for O & M ~



Click 【Read original], Free to listen to five days of Linux O & M Dry Goods sharing courses, hot discussion, come to grab!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.