Linux 操作系统运维必备的实用工具有哪些?
15. maxretry = 5 # 实行错误次数包围全局中的 maxretry 1. [root@localhost ~]# touch /var/log/sshd.log 2. [root@localhost ~]# service fail2ban restart 3. [root@localhost ~]# fail2ban-client status # 查察监控已经开启 4. Status 5. |- Number of jail: 1 6. `- Jail list: ssh-iptables 7. [root@localhost ~]# iptables -L #iptables 过滤表有 fail2ban 一条法则 8. fail2ban-SSH tcp -- anywhere anywhere tcp dpt:ssh 十. 毗连会话终端一连化 - Tmux Tmux 是一个优越的终端复用软件相同 GNU Screen 比 Screen 越发方面、机动和高效。为了确保毗连 SSH 时掉线不影响使命运行。 rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm(安装第三方 YUM 源) 十一. 页面表现磁盘空间行使环境 - Agedu 1. [root@localhost ~]# tar zxvf agedu-r9723.tar.gz 2. [root@localhost ~]# cd agedu-r9723 3. [root@localhost ~]# ./configure 4. [root@localhost ~]# make && make install 5. [root@localhost ~]# agedu -s / #-s 扫描 6. [root@localhost ~]# agedu -w --address 192.168.0.10:80 #-w 输入一个网页链接 7. [root@localhost ~]# agedu -w --address 192.168.0.108080 --auth none #--auth 封锁认证假如不加端标语会天生一个随机的用赏识器会见 十二. 安详扫描器材 - NMap NMap 是 Linux 下的收集毗连扫描和嗅探器材包用来扫描网上电脑开放的收集毗连端。 1. [root@localhost ~]# tar jxvf nmap-6.40.tar.bz2 2. [root@localhost nmap-6.40]# ./configure 3. [root@localhost nmap-6.40]# make && make install 4. [root@localhost ~]# nmap 192.168.0.10 #获取根基信息 5. [root@localhost ~]# nmap -O 192.168.0.10 #获取体系版本信息 6. [root@localhost ~]# nmap -A 192.168.0.10 #获取体系综合信息 7. [root@localhost ~]# nmap 192.168.0.0/24 # 获取一个网段事变装备根基信息 · -sSTCP 扫描 · -sV 体系版本检测 十三.Web 压力测试 - Httperf Httperf 比 ab 更强盛,能测试出 web 处事能承载的最大处事量及发明隐藏题目;好比:内存行使、不变性。最大上风:可以指定纪律举办压力测试,模仿真真相形。 1. [root@localhost ~]# tar zxvf httperf-0.9.0.tar.gz 2. [root@localhost ~]# cd httperf-0.9.0 3. [root@localhost httperf-0.9.0]# ./configure 4. [root@localhost httperf-0.9.0]# make && make install 5. [root@localhost ~]# httperf --hog --server=192.168.0.202 --uri=/index.html --num-conns=10000 --wsess=10,10,0.1 参数声名: --hog:让 httperf 尽也许多发生毗连,httperf 会按照硬件设置,有纪律的发生会见毗连 --num-conns:毗连数目,总提倡 10000 哀求 --wsess: 用户打开网页时刻纪律模仿,第一个 10 暗示发生 10 个会话毗连,第二个 10 暗示每个会话毗连举办 10 次哀求,0.1 暗示每个会话毗连哀求之间的隔断时刻 / s 【编辑保举】
点赞 0 (编辑:湖南网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |