雲計算初級考試試題


網絡管理
使用eNSP模擬器,啟動S5700交換機。通過一條命令在S1交換機上創建vlan101、vlan102,配置g0/0/1端口為access模式,所屬vlan101,配置g0/0/2端口為trunk模式,放行vlan101、vlan102。將以上所有操作命令和返回結果以文本形式提交大答題框。(使用完整命令-通過Tab鍵補全) (20)分
[Huawei]vlan batch 101 102
[Huawei-vlan101]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 101
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan 101
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan 102

42、
網絡管理
使用eNSP模擬器。配置路由器R1(路由器使用AR2220)端口g0/0/1地址為192.168.101.1/30,配置g0/0/2端口地址為12.12.12.2/30。添加靜態路由去往192.168.1.0/24網段,下一跳地址為192.168.101.2,添加靜態路由去往192.168.2.0/24,下一跳地址為12.12.12.1。將以上所有操作命令和返回結果以文本形式提交到答題框。(使用完整命令-通過Tab鍵補全) (30)分
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.101.1 30
[R1]interface GigabitEthernet 0/0/2
[R1-GigabitEthernet0/0/2]ip address 12.12.12.2 30
[R1]ip route-static 192.168.1.0 24 192.168.101.2
[R1]ip route-static 192.168.2.0 24 12.12.12.1

43、
本地YUM源管理
使用VMWare軟件啟動提供的xserver1虛擬機(配置虛擬機xserver1的IP為192.168.100.11,主機名為xserver1),在虛擬機的/root目錄下,存在一個CentOS-7-x86_64-DVD-1511.iso的鏡像文件,使用這個鏡像文件配置本地yum源,要求將這個鏡像文件掛載在/opt/centos目錄,請問如何配置自己的local.repo文件,使得可以使用該鏡像中的軟件包,安裝軟件。請將local.repo文件的內容和執行yum repolist的返回結果以文本形式提交到答題框。
[centos]
name=centos
baseurl=file:///opt/centos
gpgcheck=0
enabled=1
[root@ xserver1 ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id repo name status
!centos centos 4,067
repolist: 4,067

44、
FTP安裝使用
使用xserver1虛擬機,安裝ftp服務,並配置ftp的共享目錄為/opt。使用VMWare軟件繼續啟動提供的xserver2虛擬機(配置虛擬機xserver2的IP為192.168.100.12,主機名為xserver2),並創建該虛擬機的yum源文件ftp.repo使用xserver1的ftp源(配置文件中的FTP地址使用主機名)。配置完成后,將xserver1節點執行netstat -ntpl命令(netstat命令若不能用,則自行安裝net-tools工具)的返回結果和將xserver2節點的ftp.repo文件以文本形式提交到答題框。 (20)分
[root@xserver1 yum.repos.d]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1514/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2043/master
tcp6 0 0 :::21 ::😗 LISTEN 2792/vsftpd
tcp6 0 0 :::22 ::😗 LISTEN 1514/sshd
tcp6 0 0 ::1:25 ::😗 LISTEN 2043/master
[ftp]
name=ftp
baseurl=ftp://xserver2/centos
gpgcheck=0
enabled=1

45、
NFS服務管理
使用xserver1、xserver2虛擬機,安裝NFS服務所需要的軟件包,將xserver1節點中的/mnt/share目錄使用NFS服務共享出來(目錄不存在請自行創建,要求可訪問共享目錄的網段為192.168.100.0/24),接着在xserver2節點上,將xserver1中共享的文件掛載到/mnt目錄下。操作完畢后,依次將xserver1節點上執行showmount -e ip命令和xserver2節點上執行df -h命令的返回結果以文本形式提交到答題框。 (30)分
[root@xserver1 ~]# showmount -e 192.168.100.11
Export list for 192.168.100.11:
/mnt/share 192.168.100.0/24
[root@xserver2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 36G 7.6G 28G 22% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 8.6M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda1 497M 125M 373M 25% /boot
tmpfs 378M 0 378M 0% /run/user/0
192.168.100.11:/mnt/share 36G 7.6G 28G 22% /mnt

46、
主從數據庫管理
在xserver1、xserver2上安裝mariadb數據庫,並配置為主從數據庫(xserver1為主節點、xserver2為從節點),實現兩個數據庫的主從同步。配置完畢后,請在xserver2上的數據庫中執行“show slave status \G”命令查詢從節點復制狀態,將查詢到的結果以文本形式提交到答題框。 (30)分
MariaDB [(none)]> show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: xserver1
Master_User: user
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000001
Read_Master_Log_Pos: 531
Relay_Log_File: mariadb-relay-bin.000002
Relay_Log_Pos: 815
Relay_Master_Log_File: mysql-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 531
Relay_Log_Space: 1111
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 12
1 row in set (0.00 sec)

47、
LNMP環境部署
使用xserver1節點,安裝單節點lnmp環境。安裝lnmp環境需要用到的YUM源為CentOS-7-x86_64-DVD-1511.iso和lnmp目錄(均在/root目錄下)。安裝並配置完lnmp環境后。依次查詢數據庫、nginx、php服務的狀態,並使用netstat -ntpl命令查看端口開放情況。最后依次將查詢服務狀態的返回結果,和查看端口開放情況的返回結果以文本形式提交到答題框。 (50)分
[root@xserver1 ~]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 2871/php-fpm: maste
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2488/mysqld
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2777/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1111/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1576/master
tcp6 0 0 :::21 ::😗 LISTEN 1114/vsftpd
tcp6 0 0 :::22 ::😗 LISTEN 1111/sshd
tcp6 0 0 ::1:25 ::😗 LISTEN 1576/master

48、
部署WordPress應用
使用xserver1節點,基於lnmp環境,部署WordPress應用(WordPress源碼包在/root目錄下)。應用部署完畢后,設置WordPress的站點標題為自己的姓名(例:名字叫張三,則設置站點標題為張三的BLOG),設置完畢后登錄WordPresss首頁。最后將命令curl ip(ip為wordpress的首頁ip)的返回結果以文本形式提交到答題框。 (30)分
[root@xserver1 default]# curl 192.168.100.11

張三 – 又一個WordPress站點

49、
Linux存儲LVM管理
使用xserver1虛擬機,使用VMWare軟件自行添加一塊大小為20G的硬盤,使用fdisk命令對該硬盤進形分區,要求分出兩個大小為5G的分區。使用兩個分區,創建名xcloudvg的卷組,然后再創建一個5G的分區,將xcloudvg擴容至15G,最后執行vgdisplay命令查看卷組信息。將上述所有操作命令和返回結果以文本形式提交到答題框。 (30)分
[root@php ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x2587988d.

Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p):
Using default response p
Partition number (1-4, default 1): 1
First sector (2048-41943039, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039): +5G
Partition 1 of type Linux and of size 5 GiB is set

Command (m for help): n
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p):
Using default response p
Partition number (2-4, default 2):
First sector (10487808-41943039, default 10487808):
Using default value 10487808
Last sector, +sectors or +size{K,M,G} (10487808-41943039, default 41943039): +5G
Partition 2 of type Linux and of size 5 GiB is set

Command (m for help): p

Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x2587988d

Device Boot Start End Blocks Id System
/dev/sdb1 2048 10487807 5242880 83 Linux
/dev/sdb2 10487808 20973567 5242880 83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@php ~]# pvcreate /dev/sdb[1-2]
Physical volume "/dev/sdb1" successfully created.
Physical volume "/dev/sdb2" successfully created.
[root@php ~]# vgcreate xcloudvg /dev/sdb[1-2]
Volume group "xcloudvg" successfully created
[root@php ~]# vgextend xcloudvg /dev/sdb3
Volume group "xcloudvg" successfully extended


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM