10、創建一個由至少兩個物理卷組成的大小爲20G的卷組;要求,PE大小爲8M;而在卷組中創建一個大小爲5G的邏輯卷mylv1,格式化爲ext4文件系統,開機自動掛載至/users目錄,支持acl;
[root@wangyafei ~]# fdisk -l
磁盤 /dev/sda:128.8 GB,128849018880 字節,251658240 個扇區
Units = 扇區 of 1 * 512 = 512 bytes
扇區大小(邏輯/物理):512字節 / 512 字節
I/O 大小(最小/最佳):512字節 / 512 字節
磁盤標籤類型:dos
磁盤標識符:0x000aaf3f
設備Boot Start End Blocks Id System
/dev/sda1 * 2048 4196351 2097152 83 Linux
/dev/sda2 4196352 96479231 46141440 8e Linux LVM
磁盤 /dev/sdb:53.7 GB, 53687091200字節,104857600 個扇區
Units = 扇區 of 1 * 512 = 512 bytes
扇區大小(邏輯/物理):512字節 / 512 字節
I/O 大小(最小/最佳):512字節 / 512 字節
磁盤 /dev/mapper/cl-root:42.9 GB,42945478656 字節,83877888 個扇區
Units = 扇區 of 1 * 512 = 512 bytes
扇區大小(邏輯/物理):512字節 / 512 字節
I/O 大小(最小/最佳):512字節 / 512 字節
磁盤 /dev/mapper/cl-swap:4294 MB,4294967296 字節,8388608 個扇區
Units = 扇區 of 1 * 512 = 512 bytes
扇區大小(邏輯/物理):512字節 / 512 字節
I/O 大小(最小/最佳):512字節 / 512 字節
[root@wangyafei ~]# fdisk /dev/sdb
歡迎使用 fdisk (util-linux 2.23.2)。
更改將停留在內存中,直到您決定將更改寫入磁盤。
使用寫入命令前請三思。
Device does not contain a recognized partition table
使用磁盤標識符 0x9a210386 創建新的DOS 磁盤標籤。
命令(輸入 m 獲取幫助):n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
分區號 (1-4,默認1):
起始扇區 (2048-104857599,默認爲2048):
將使用默認值 2048
Last 扇區, +扇區 or+size{K,M,G} (2048-104857599,默認爲104857599):+10G
分區 1 已設置爲Linux 類型,大小設爲 10 GiB
命令(輸入 m 獲取幫助):n
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p): p
分區號 (2-4,默認2):
起始扇區 (20973568-104857599,默認爲20973568):
將使用默認值 20973568
Last 扇區, +扇區 or+size{K,M,G} (20973568-104857599,默認爲104857599):+10G
分區 2 已設置爲Linux 類型,大小設爲 10 GiB
命令(輸入 m 獲取幫助):t
分區號 (1,2,默認2):1
Hex 代碼(輸入 L 列出所有代碼):L
0 空 24 NEC DOS 81 Minix / 舊 Linu bf Solaris
1 FAT12 27 隱藏的NTFS Win 82 Linux 交換/ So c1 DRDOS/sec (FAT-
2 XENIX root 39 Plan 9 83 Linux c4 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 84 OS/2 隱藏的 C: c6 DRDOS/sec (FAT-
4 FAT16 <32M 40 Venix 80286 85 Linux 擴展 c7 Syrinx
5 擴展 41 PPC PReP Boot 86 NTFS 卷集 da 非文件系統數據
6 FAT16 42 SFS 87 NTFS 卷集 db CP/M / CTOS / .
7 HPFS/NTFS/exFAT 4d QNX4.x 88 Linux 純文本 de Dell 工具
8 AIX 4e QNX4.x 第2部分 8e Linux LVM df BootIt
9 AIX 可啓動 4f QNX4.x 第3部分 93 Amoeba e1 DOS 訪問
a OS/2 啓動管理器 50 OnTrack DM 94 Amoeba BBT e3 DOS R/O
b W95 FAT32 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStor
c W95 FAT32 (LBA) 52 CP/M a0 IBM Thinkpad 休 eb BeOS fs
e W95 FAT16 (LBA) 53 OnTrack DM6Aux a5 FreeBSD ee GPT
f W95 擴展 (LBA) 54 OnTrackDM6 a6 OpenBSD ef EFI (FAT-12/16/
10 OPUS 55 EZ-Drive a7 NeXTSTEP f0 Linux/PA-RISC
11 隱藏的FAT12 56 Golden Bow a8 Darwin UFS f1 SpeedStor
12 Compaq 診斷 5c Priam Edisk a9 NetBSD f4 SpeedStor
14 隱藏的FAT16 <3 61 SpeedStor ab Darwin 啓動 f2 DOS 次要
16 隱藏的FAT16 63 GNU HURD or Sys af HFS / HFS+ fb VMware VMFS
17 隱藏的HPFS/NTF 64 Novell Netware b7 BSDI fs fc VMware VMKCORE
18 AST 智能睡眠 65 Novell Netware b8 BSDI swap fd Linux raid 自動
1b 隱藏的W95 FAT3 70 DiskSecure 多啓bb Boot Wizard 隱 fe LANstep
1c 隱藏的W95 FAT3 75 PC/IX be Solaris 啓動 ff BBT
1e 隱藏的W95 FAT1 80 舊Minix
Hex 代碼(輸入 L 列出所有代碼):8e
已將分區“Linux”的類型更改爲“LinuxLVM”
命令(輸入 m 獲取幫助):t
分區號 (1,2,默認2):2
Hex 代碼(輸入 L 列出所有代碼):8e
已將分區“Linux”的類型更改爲“LinuxLVM”
命令(輸入 m 獲取幫助):w
The partition table has been altered!
Calling ioctl() to re-read partition table.
正在同步磁盤。
[root@wangyafei ~]# partx -a /dev/sdb
partx: /dev/sdb: error adding partitions 1-2
[root@wangyafei ~]# pvcreate /dev/sdb{1,2}
Physical volume"/dev/sdb1" successfully created.
Physical volume "/dev/sdb2"successfully created.
[root@wangyafei ~]# pvs #
PV VG Fmt Attr PSize PFree
/dev/sda2 cl lvm2 a-- 44.00g 4.00m
/dev/sdb1 lvm2 --- 10.00g 10.00g
/dev/sdb2 lvm2 --- 10.00g 10.00g
[root@wangyafei ~]# vgcreate -s 8M myvg /dev/sdb{1,2}
Volume group "myvg"successfully created
[root@wangyafei ~]# vgdisplay #
--- Volume group ---
VG Name cl
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 44.00 GiB
PE Size 4.00 MiB
Total PE 11264
Alloc PE / Size 11263 / 44.00 GiB
Free PE / Size 1 / 4.00 MiB
VG UUID 8QRUBs-CFNx-5MnZ-4cKp-1gAH-4x2r-GZNJnK
--- Volume group ---
VG Name myvg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 19.98 GiB
PE Size 8.00 MiB
Total PE 2558
Alloc PE / Size 0 / 0
Free PE / Size 2558 / 19.98 GiB
VG UUID pLfdvf-A4Ns-BAfM-bZAd-yIkg-6b7o-GSObEp
[root@wangyafei ~]# lvcreate -L 5G -n mylv1 myvg
Logical volume "mylv1"created.
[root@wangyafei ~]# mke2fs -t ext4 /dev/myvg/mylv1
mke2fs 1.42.9 (28-Dec-2013)
文件系統標籤=
OS type: Linux
塊大小=4096 (log=2)
分塊大小=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
327680 inodes, 1310720 blocks
65536 blocks (5.00%) reserved for the super user
第一個數據塊=0
Maximum filesystem blocks=1342177280
40 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912,819200, 884736
Allocating group tables: 完成
正在寫入inode表: 完成
Creating journal (32768 blocks): 完成
Writing superblocks and filesystem accounting information: 完成
[root@wangyafei ~]# mkdir /users
[root@wangyafei ~]# vim /etc/fstab
[root@wangyafei ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Jan 31 20:45:26 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/cl-root / xfs defaults 0 0
UUID=5cd62028-36a3-4147-a3d4-8ff6b5d7500b /boot xfs defaults 0 0
/dev/mapper/cl-swap swap swap defaults 0 0
/dev/mapper/myvg-mylv1 /users ext4 acl 0 0
[root@wangyafei ~]# mount -a
[root@wangyafei ~]# mount | grep '^/dev/mapper/myvg-mylv1'
/dev/mapper/myvg-mylv1 on /users type ext4(rw,relatime,seclabel,data=ordered)
[root@wangyafei ~]# df -lh
文件系統 容量 已用 可用已用%掛載點
/dev/mapper/cl-root 40G 4.8G 36G 12% /
devtmpfs 982M 0 982M 0% /dev
tmpfs 993M 0 993M 0% /dev/shm
tmpfs 993M 9.0M 984M 1% /run
tmpfs 993M 0 993M 0% /sys/fs/cgroup
/dev/sda1 2.0G 128M 1.9G 7% /boot
tmpfs 199M 0 199M 0% /run/user/0
/dev/mapper/myvg-mylv1 4.8G 20M 4.6G 1% /users
[root@wangyafei ~]#
11、擴展mylv1至9G,確保擴展完成後原有數據完全可用;
[root@wangyafei ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 cl lvm2 a-- 44.00g 4.00m
/dev/sdb1 myvg lvm2 a-- 9.99g 4.99g
/dev/sdb2 myvg lvm2 a-- 9.99g 9.99g
[root@wangyafei ~]# vgs
VG #PV #LV #SN Attr VSize VFree
cl 1 2 0 wz--n- 44.00g 4.00m
myvg 2 1 0 wz--n- 19.98g 14.98g
[root@wangyafei ~]# lvextend -L 9G /dev/myvg/mylv1
Size of logical volumemyvg/mylv1 changed from 5.00 GiB (640 extents) to 9.00 GiB (1152 extents).
Logical volume myvg/mylv1 successfullyresized.
[root@wangyafei ~]# resize2fs -p /dev/myvg/mylv1
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/myvg/mylv1 is mounted on /users; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2
The filesystem on /dev/myvg/mylv1 is now 2359296 blocks long.
[root@wangyafei ~]# df -lh #
文件系統 容量 已用 可用已用%掛載點
/dev/mapper/cl-root 40G 4.8G 36G 12% /
devtmpfs 982M 0 982M 0% /dev
tmpfs 993M 0 993M 0% /dev/shm
tmpfs 993M 9.0M 984M 1% /run
tmpfs 993M 0 993M 0% /sys/fs/cgroup
/dev/sda1 2.0G 128M 1.9G 7% /boot
tmpfs 199M 0 199M 0% /run/user/0
/dev/mapper/myvg-mylv1 8.8G 23M 8.3G 1% /users
[root@wangyafei ~]#
12、縮減mylv1至7G,確保縮減完成後原有數據完全可用;
[root@wangyafei ~]# umount /dev/myvg/mylv1
[root@wangyafei ~]# e2fsck -f /dev/myvg/mylv1
e2fsck 1.42.9 (28-Dec-2013)
第一步: 檢查inode,塊,和大小
第二步: 檢查目錄結構
第3步: 檢查目錄連接性
Pass 4: Checking reference counts
第5步: 檢查簇概要信息
/dev/myvg/mylv1: 11/589824 files (0.0% non-contiguous), 75551/2359296 blocks
[root@wangyafei ~]# resize2fs /dev/myvg/mylv1 7G
resize2fs 1.42.9 (28-Dec-2013)
Resizing the filesystem on /dev/myvg/mylv1 to 1835008 (4k) blocks.
The filesystem on /dev/myvg/mylv1 is now 1835008 blocks long.
[root@wangyafei ~]# lvreduce -L 7G /dev/myvg/mylv1
WARNING: Reducing active logicalvolume to 7.00 GiB.
THIS MAY DESTROY YOUR DATA (filesystemetc.)
Do you really want to reduce myvg/mylv1? [y/n]: y
Size of logical volume myvg/mylv1changed from 9.00 GiB (1152 extents) to 7.00 GiB (896 extents).
Logical volume myvg/mylv1 successfullyresized.
[root@wangyafei ~]# lvs #
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root cl -wi-ao---- 40.00g
swap cl -wi-ao---- 4.00g
mylv1 myvg -wi-a----- 7.00g
13、對mylv1創建快照,並通過備份數據;要求保留原有的屬主屬組等信息;
[root@wangyafei ~]# lvcreate -L 3G -p r -s-n mylv1_bak /dev/myvg/mylv1
14、如何將Linux主機接入到TCP/IP網絡,請描述詳細的步驟。(手動指定的方式)
使用ifconfig查看網卡配置信息,看主要使用的網卡名稱
到/etc/sysconfig/network-scripts/目錄下查找對應的網卡配置文件
主要配置項
DEVICE(設備名稱)
TYPE(設備類型。端口爲Ethernet)
ONBOOT(系統啓動時讀取)
BOOTPROTO=static(ip配置協議。當前爲靜態ip,可設置DHCP,)
IPADDR(ip地址)
NETMASK(子網掩碼)
GATEWAY(網關地址)
DNS1(DNS服務器地址)
重啓網絡服務 service network restart
在CLI中輸入ping www.magedu.com/測試網絡連接
15、爲Linux主機配置網絡信息的方式有哪些,請描述各個過程。
ifconfig eth0 IP/mask
ip addr add IP device eth0
Linux網絡屬性配置的tui(textuser interface):system-config-network-tui
使用setup圖形界面設置
16、寫一個腳本,使用ping命令探測172.16.250.1-172.16.250.254之間的所有主機的在線狀態;
在線的主機使用綠色顯示;
不在線的主使用紅色顯示;
#!/bin/bash
#
for i in {1..254};do
ping -c 1 -w 1"192.168.1.$i" > /dev/null
if [ $? -eq 0 ];then
echo -e"\033[0;32;1m 172.16.250.$i is up \033[0m"
else
echo -e"\033[0;31;1m 172.16.250.$i is down \033[0m"
fi
done
17、常用的網絡管理類工具有哪些,並用示例形式描述他們的使用方法。
ifconfig
常見用法:
查看網卡信息:ifconfig [interface]
查看所有網卡信息:ifconifg -a
開啓或關閉網卡:ifconfig IFACE [up|down]
配置網卡參數:ifconfig interface [aftype] options | address ...
配置網卡IP地址:
ifconfig IFACE IP/mask [up]
ifconfig IFACE IP network MASK
[root@localhost~]# ifconfig
eno16777736:flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet192.168.2.108 netmask 255.255.255.0 broadcast 192.168.2.255
inet6fe80::20c:29ff:fe0d:4a8b prefixlen64 scopeid 0x20<link>
ether00:0c:29:0d:4a:8b txqueuelen 1000 (Ethernet)
RX packets6681 bytes 455288 (444.6 KiB)
RX errors0 dropped 0 overruns 0 frame 0
TX packets 1627 bytes 268207 (261.9 KiB)
TX errors0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen0 (Local Loopback)
RX packets4 bytes 340 (340.0 B)
RX errors0 dropped 0 overruns 0 frame 0
TX packets4 bytes 340 (340.0 B)
TX errors0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether52:54:00:47:81:6c txqueuelen 0 (Ethernet)
RX packets0 bytes 0 (0.0 B)
RX errors0 dropped 0 overruns 0 frame 0
TX packets 0 bytes0 (0.0 B)
TX errors0 dropped 0 overruns 0 carrier 0 collisions 0
說明:
eno16777736:表示當前使用的網卡,
flags=4163<UP,BROADCAST,RUNNING,MULTICAST> 標誌狀態
mtu 1500:最大數據包大小爲 1500bytes
網卡的IPv地址:inet192.168.2.108,
子網掩碼:netmask 255.255.255.0,
廣播地址:broadcast 192.168.2.255,
網卡的IPv6地址:inet6fe80::20c:29ff:fe0d:4a8b
網卡物理地址(MAC地址):ether00:0c:29:0d:4a:8b
lo:表示主機的回壞地址的相關信息。
virbr0:表示虛擬機橋接網絡的相關信息。
配置IP地址
1.給網卡配置IP地:192.168.2.156
[root@localhost~]# ifconfig ens33 192.168.2.156
ip:顯示/配置路由,接口,策略路由和隧道
常見用法:
網卡添加多一個IP地址,並設置別名爲eth0:0
ipaddr IPADDR/MASK dev eth0 label 'eth0:0'
顯示網卡設備的信息: ipaddr show
清除IP地址信息:ip addr flush dev interface
添加路由:ip routeadd TARGET via GW dev INTERFACE src SOURCE_IP
刪除單條路由: iproute del TARGET
示例:
[root@wangyafei~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueuestate UNKNOWN qlen 1
link/loopback00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scopehost lo
valid_lft foreverpreferred_lft forever
inet6 ::1/128 scopehost
valid_lft foreverpreferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdiscpfifo_fast state UP qlen 1000
link/ether00:0c:29:65:87:db brd ff:ff:ff:ff:ff:ff
inet 192.168.2.107/24brd 192.168.2.255 scope global dynamic ens33
valid_lft 4860secpreferred_lft 4860sec
inet6fe80::1efb:59d6:3462:a123/64 scope link
valid_lft foreverpreferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500qdisc noqueue state DOWN qlen 1000
link/ether52:54:00:26:96:17 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24brd 192.168.122.255 scope global virbr0
valid_lft foreverpreferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdiscpfifo_fast master virbr0 state DOWN qlen 1000
link/ether52:54:00:26:96:17 brd ff:ff:ff:ff:ff:ff
[root@wangyafei ~]#
route:路由管理命令
查看路由條目:route-n
添加路由條目:routeadd
route add [-net|-host] target[netmask Nm] [gw Gw] [[dev] if]
刪除路由:routedel
route del [-net|-host] target [gwGw] [netmask Nm] [[dev] If]
示例
[root@wangyafei ~]# route -n
KernelIP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 100 0 0 ens33
192.168.2.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
[root@wangyafei ~]#
netstat:顯示網絡連接、路由表、接口數據統計、僞裝連接、組播成員關係
常用選項:
-t : 顯示TCP協議相關已建立的連接(ESTABLISHED)
-u : 顯示UDP協議相關已建立的連接(ESTABLISHED)
-r : 顯示raw socket(裸套接字)相關已建立的連接(ESTABLISHED)
-l : 處於監聽狀態的連接
-n : 以數字顯示IP和協議端口(默認顯示協議名稱,如SSH)
-a : 顯示所有狀態的連接
-e : 擴展格式
-p : 顯示相關進程及PID
常用組合:
-tan , -uan , -tnl, -unl,-tunlp
示例
[root@wangyafei ~]# netstat -t
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 52 wangyafei:ssh 192.168.2.100:49291 ESTABLISHED
[root@wangyafei ~]# netstat -u
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
udp 0 0 wangyafei:58937 85.199.214.101:ntp ESTABLISHED
udp 0 0 wangyafei:48190 161.53.131.133:ntp ESTABLISHED
ss:網絡狀態查看工具
常見選項:
-t : tcp協議相關
-u : udp協議相關
-w : 裸套接字相關
-x : unix sock相關
-l : listen狀態的連接
-a : 所有
-n : 數字格式
-p : 相關的程序及PID
-e : 擴展的信息
-m : 內存用量
-o : 計時器信息
常用組合:
-tan , -tanl , -tanlp ,-uan,-tunlp
[root@wangyafei ~]# ss -tan
State Recv-Q Send-QLocal Address:Port PeerAddress:Port
LISTEN 0 128 *:111 *:*
LISTEN 0 5 192.168.122.1:53 *:*
LISTEN 0 128 *:22 *:*
LISTEN 0 128 127.0.0.1:631 *:*
LISTEN 0 100 127.0.0.1:25 *:*
LISTEN 0 128 127.0.0.1:6010 *:*
ESTAB 0 52 192.168.2.107:22 192.168.2.100:49291
LISTEN 0 128 :::111 :::*
LISTEN 0 128 :::22 :::*
LISTEN 0 128 ::1:631 :::*
LISTEN 0 100 ::1:25 :::*
LISTEN 0 128 ::1:6010 :::*
[root@wangyafei ~]#
18、寫一個腳本,完成以下功能
(1) 假設某目錄(/etc/rc.d/rc3.d/)下分別有K開頭的文件和S開頭的文件若干;
(2) 顯示所有以K開頭的文件的文件名,並且給其附加一個stop字符串;
(3) 顯示所有以S開頭的文件的文件名,並且給其附加一個start字符串;
(4) 分別統計S開頭和K開頭的文件各有多少;
#!/bin/bash
declare -i k=0,s=0
for i in $(ls /etc/rc.d/rc3.d/K* | grep -o"[^/]*$");do
echo "$istop"
let k++
done
for j in $(ls /etc/rc.d/rc3.d/S* | grep -o"[^/]*$");do
echo "$jstart"
let s++
done
echo "S開頭的文件有$s個"
echo "K開頭的文件有$k個"
19、寫一腳本,用ping命令測試172.16.250.20-172.16.250.100以內有哪些主機在線,將在線的顯示出來;
#!/bin/bash
#
for((i=20;i<=100;i++));do
ping -w 1 -c 1172.16.250.$i &>/dev/null
if [ $? -eq 0];then
echo "172.16.250.$ionline"
fi
done
20、打印九九乘法表;
[root@wangyafei ~]# vim test11.sh
[root@wangyafei ~]# cat test11.sh
#!/bin/bash
#Authen:wangyafei
i=1
j=1
for i in {1..9};do
for j in $(seq 1$i);do
echo -e -n"${i}*${j}=$[$i*$j]\t"
done
echo
done
[root@wangyafei ~]# bash test11.sh
1*1=1
2*1=2 2*2=4
3*1=3 3*2=6 3*3=9
4*1=4 4*2=8 4*3=12 4*4=16
5*1=5 5*2=10 5*3=15 5*4=20 5*5=25
6*1=6 6*2=12 6*3=18 6*4=24 6*5=30 6*6=36
7*1=7 7*2=14 7*3=21 7*4=28 7*5=35 7*6=42 7*7=49
8*1=8 8*2=16 8*3=24 8*4=32 8*5=40 8*6=48 8*7=56 8*8=64
9*1=9 9*2=18 9*3=27 9*4=36 9*5=45 9*6=54 9*7=63 9*8=72 9*9=81
[root@wangyafei ~]#