参考 http://www.repoforge.org 安装yum源
不懂的命令请使用 man
crontab -e
vim /etc/cron*
vim /etc/crontab
less /proc/cpuinfo
lscpu
yum install -y htop
md5sum *.rpm
sha1sum *.rpm
dstat --list
dstat --battery
dstat -c 2 5
yum install -y iotop
iotop
dd if=/dev/zero of=testfile bs=1M count=512 conv=fdatasync
yum install -y bonnie++
bonnie++ -u mskv
yum install -y iozone
izone -l 1 -u 1 -r 16k -s 128m -F tmpfile
mount.ntfs /dev/sda5 /mnt
du -sh
du -sh /etc
http://dl.fedoraproject.org/pub/epel/6/i386/
search "epel-release" and download this rpm package and install
install yum -y agedu
agedu -s /
agedu -s / -w
gedu -w --address 127.0.0.1:8080
agedu -s / --exctude "*" --include "*.conf"
netstat -tupln
netstate -at
netstate -nt | grep :80
lsof
yum install -y wireshark wireshark-gnome
Applications-->internet-->wireshark network analyzer
yum install iptraf
iptraf
yum install tcpdump
tcpdump -c 18 dumpfile.log
tcpdump -r dumpfile.log
tcpdump udp
tcpdump dst port 80
tcpdump host www.linuxcast.net
tcpdump greater 1000
tcpdump less 10
tcpdump -A
tcpdump -X
tcpdump src 192.168.2.100
tcpdump dst 192.168.2.105
tcpdump tcp and src 192.168.2.102 and port 1000
tcpdump not port 80
tcpdump tcp and src 192.168.2.102 and not port 1000
view http://pkgs.org search "nethogs" and install this packages
nethogs
nethogs eth0
iptables -A INPUT -p tcp --dport 80 -m time --timestart 09:00 --timestop 18:00 -j drop
sudo yum groupinstall "Development Tools"
view http://nginx.org download binary packages and compile install
error:
yum list | grep ncre
yum install -y ncre-devel
./configure no error
make && make install
yum install ruby ruby-devel ruby-irbs ruby-rdoc ruby-libs
download rubygems packeages and install
gem source --remove https://rebygems.org/
gem source -a http://ruby.taobao.org/
gem source -l
gem install rails
sudo rails new mskv-rails
sudo gem install sqlite3 -v '1.3.7'
sudo yum install sqlite-devel
vim Gemfile
add gem 'therubyracer'
sudo bundle install
sudo service httpd stop
sudo rails server
yum groupinstall -y "Development Tools"
download httperf on code.google.com and install
httperf --hog --serve=127.0.0.1 --url=/index.html --num-conns=10000 "未成功"
httperf --hog --serve=127.0.0.1 --num-conns=10000