杂记

1.  相对于流量攻击而言,资源耗尽攻击要容易判断一些,假如平时Ping网站主机和访问网站都是正常的,发现突然网站访问非常缓慢或无法访问了,而Ping还可以Ping通,则很可能遭受了资源耗尽攻击,此时若在服务器上用Netstat -na命令观察到有大量的SYN_RECEIVED、TIME_WAIT、FIN_WAIT_1等状态存在,而ESTABLISHED很少,则可判定肯定是遭受了资源耗尽攻击

 

2. cent os

   fdisk -l

1,遇到移动硬盘在 linux上无法挂在情况 :
mount: unknown filesystem type ‘ntfs’(这是由于CentOS release 5.3(Final)上无法识别NTFS格式的分区。 )。
可解决方案:
打开ntfs-3g的下载点http://www.tuxera.com/community/ntfs-3g-download/ ,将其下载到CentOS,执行以下命令安装:
1) 编译安装 ntfs-3g:
# ./configure
# make
# make install (或 sudo make install)
// 执行 ./configure后注意查看最后两行日志,如出现错误,有可能是没安装c语言编译程序 gcc,安装方法: # yum -y install gcc
2) 查看USB设备点
# fdisk -l
Disk /dev/sda: 154.7 GB, 154750418432 bytes
255 heads, 63 sectors/track, 18814 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 18814 151019032+ 8e Linux LVM

Disk /dev/sdb: 500.1 GB, 500107861504 bytes
255 heads, 62 sectors/track, 61781 cylinders
Units = cylinders of 15810 * 512 = 8094720 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 61782 488384000+ 7 HPFS/NTFS
3) 挂载NTFS分区
# mount –t ntfs-3g /dev/sda1 /mnt/usb

这样就可以挂载了,如果想开机启动 ,就挂载上的话,编辑/etx/fstat 文件如下:
/dev/sda4 /mnt/windows ntfs-3g defaults 0 0

 

 

 

posted @ 2020-05-23 09:47  water.wjf  阅读(119)  评论(0编辑  收藏  举报