Configure the system synchronous as 172.24.40.10.
Configure the system synchronous as 172.24.40.10. Graphical Interfaces: System–>Administration–>Date & Time OR # system-config-date
Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /
Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally. # chkconfig autofs on # cd /etc/ # vim /etc/auto.master /rhome /etc/auto.ldap # cp auto.misc auto.ldap # vim […]
Configure the verification mode of your host account and the password as LDAP.
Configure the verification mode of your host account and the password as LDAP. And it can ldapuser40. The password is set as “password”. And the certificate login successfully through can be downloaded from http://ip/dir/ldap.crt. After the user logs on , the user has no host directory unless you configure the autofs in the following questions. […]
Configure a HTTP server, which can be accessed through http://station.domain40.example.com.
Configure a HTTP server, which can be accessed through http://station.domain40.example.com. Please download the released page from http://ip/dir/example.html. # yum install -y httpd # chkconfig httpd on # cd /var/www/html # wget http://ip/dir/example.html # cp example.com index.html # vim /etc/httpd/conf/httpd.conf NameVirtualHost 192.168.0.254:80 DocumentRoot /var/www/html/ ServerName station.domain40.example.com
Install a FTP server, and request to anonymous download from /var/ftp/pub catalog.
Install a FTP server, and request to anonymous download from /var/ftp/pub catalog. (it needs you to configure yum direct to the already existing file server. ) # cd /etc/yum.repos.d # vim local.repo [local] name=local.repo baseurl=file:///mnt enabled=1 gpgcheck=0 # yum makecache # yum install -y vsftpd # service vsftpd restart # chkconfig vsftpd on # chkconfig […]
Create a user named alex, and the user id should be 1234, and the password should be alex111.
Create a user named alex, and the user id should be 1234, and the password should be alex111. # useradd -u 1234 alex # passwd alex alex111 alex111 OR echo alex111|passwd -stdin alex
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the origina
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition. # fdisk /dev/sda p (check Partition table) n (create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions) Enter […]
Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile, and the seque
Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile, and the sequence is requested as the same as /etc/testfile. # cat /etc/testfile | while read line; do echo $line | grep abcde | tee -a /tmp/testfile done OR grep `abcde’ /etc/testfile > /tmp/testfile
Find the files owned by harry, and copy it to catalog: /opt/dir
Find the files owned by harry, and copy it to catalog: /opt/dir # cd /opt/ # mkdir dir # find / -user harry -exec cp -rfp {} /opt/dir/ \;
Configure a task: plan to run echo hello command at 14:23 every day
Configure a task: plan to run echo hello command at 14:23 every day. # which echo # crontab -e 23 14 * * * /bin/echo hello # crontab -l (Verify)