![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Operator
文章平均质量分 58
kofshower
这个作者很懒,什么都没留下…
展开
-
How to: Linux flush or remove all iptables rules
Here is small script that does this. Debian or Ubuntu GNU/Linux doesnot comes with any SYS V init script (located in /etc/init.d directory). You create a script as follows and use it to stop转载 2009-10-28 18:17:00 · 552 阅读 · 0 评论 -
SLES使用OpenSuse的源之后的错误
<br />Can't locate Config.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7/i686-linux-thread-mu原创 2010-06-25 11:32:00 · 797 阅读 · 0 评论 -
Suse查找一个二进制文件所在的package
<br />COMMAND-NOT-FOUND(1) http://en.opensuse.org/Sco COMMAND-NOT-FOUND(1) NAME command-not-found - A command-not-found handler SYNOPSIS command-not-found {binary_nam原创 2010-06-25 11:31:00 · 478 阅读 · 0 评论 -
监控脚本记录用户操作
#historyexport HISTTIMEFORMAT="[%Y.%m.%d %H:%M:%S]"USER_IP=`who -u am i 2>/dev/null| awk {print $NF}|sed -e s/[()]//g`HISTDIR=/var/log/.histif [ -z $USER_IP ]then USER_IP=`hostname`原创 2010-04-29 10:38:00 · 283 阅读 · 0 评论 -
CentOS 和 Suse的启动测试(转载)
CentOS與OpenSuSE的rc script一般從打開電源之後,CentOS在經過了這些開機流程(初始化BIOS -> 執行loader -> 載入kernel 與 initrd image -> 執行init),到了init這部份,init會去讀取/etc/inittab,根據該檔案的內容,初始化系統環境的工作。 測試環境 CentOS 5.2:*/转载 2010-04-15 00:31:00 · 2169 阅读 · 0 评论 -
遭到DDos攻击
搜集证据 可以为路由器建立log server,建议使用SUN工作站或Linux等高速计算机捕获数据包。常用的数据包捕获工具包括TCPDump和snoop等。基本语法为: tcpdump -i interface -s 1500 -w capture_file snoop -d interface -o capture_file -s 1500 netstat -atun |原创 2010-03-24 18:46:00 · 760 阅读 · 1 评论 -
Tuning file descriptor limits on Linux
Linux ScalabilityDoing large scale grid work, we regularlly press various limits ofLinux and other systems. If youre in a situation where youre pushingvarious limits like open file descriptor转载 2009-12-01 14:28:00 · 877 阅读 · 0 评论 -
Mysql 改变安装目录(Linux)
修改了/etc/mysql/my.cnfsudo touch /etc/apparmor.d/disable/usr.sbin.mysqldsudo /etc/init.d/apparmor restartsudo /etc/init.d/mysql restart原创 2009-10-29 09:09:00 · 369 阅读 · 0 评论 -
Linux Iptables Firewall Shell Script For Standalone Server
#!/bin/bash# A Linux Shell Script with common rules for IPTABLES Firewall.# By default this script only open port 80, 22, 53 (input)# All outgoing traffic is allowed (default - output)# ------转载 2009-10-28 18:28:00 · 452 阅读 · 0 评论 -
20 Linux System Monitoring Tools Every SysAdmin Should Know
Need to monitor Linux server performance? Try these built-in commandand a few add-on tools. Most Linux distributions are equipped with tonsof monitoring. These tools provide metrics which can b转载 2009-10-28 18:21:00 · 298 阅读 · 0 评论 -
cp使用*这样子的通配符的问题
如果匹配的文件个数太多,cp会直接返回,报一个参数列表太长的错。如果需要一次copy非常多的文件,用for语句来逐个copy原创 2010-05-22 22:35:00 · 777 阅读 · 0 评论