正在加载...
分页: 9/55 第一页 上页 4 5 6 7 8 9 10 11 12 13 下页 最后页 [ 显示模式: 摘要 | 列表 ]

快速了解Apache环境

[ 2010/11/03 11:34 | by selboo ]
当前使用的Apache的版本为2.2.3,支持以下使用方式:
apachectl -v
apachectl -V
apachectl -l
apachectl -L
apachectl -S
apachectl -M

apachectl -V

1. 查看Server version。
2. 查看编译时间。
3. APR 及 APR-Util 的版本。
4. 硬件架构/平台(64-bit/32-bit)
5. 查看 Server MPM(Prefort/Worker)
6. 是否支持线程(threaded)
7. 定位 HTTPD_ROOT
8. 定位配置文件
9. ……

apachectl -l

静态编译进httpd程序的模块。比如:
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
这个命
Tags: ,

linux下top命令参数解释

[ 2010/11/01 17:27 | by selboo ]
top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。下面详细介绍它的使用方法。

top - 01:06:48 up  1:22,  1 user,  load average: 0.06, 0.60, 0.48
Tasks:  29 total,   1 running,  28 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3% us,  1.0% sy,  0.0% ni, 98.7% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    1

top开启多CPU选项

[ 2010/11/01 17:02 | by selboo ]
现在新版的TOP只能看到一个CPU显示,
Cpu(s):  0.7%us,  0.4%sy,  0.0%ni, 98.6%id,  0.1%wa,  0.0%hi,  0.1%si,  0.0%st
每次进去按1之后,才可以显示多CPU,每次按比较麻烦,可以在多CPU的时候,按大写的"W"保存,如果是root的话,会生成/root/.toprc 然后
cp .toprc /etc/toprc

这样每次启动,都可以看到这样了!
Cpu0  :  0.9%us,  0.5%sy,  0.1%ni, 98.1%id,  0.2%wa,  0.0%hi,  0.2%si,  0.0%st
Cpu1  :&n

MySQL 压力测试工具super smack

[ 2010/11/01 14:30 | by selboo ]
1. 源:http://vegan.net/tony/supersmack/

2. 安装:
  ./configure
  make
  make install

3. 测试:

[root@Mail smacks]# super-smack -d mysql select-key.smack 10 10000
Error running query select count(*) from http_auth:Table 'test.http_auth' doesn't exist
Creating table 'http_auth'
Populating data file '/var/smack-data/words.dat' with shell command 'gen-data -n 90000 -f %12-12s%n,%25-25s,%n,%d'
Loading data from
Tags: ,

mutt 发送邮件命令

[ 2010/10/29 11:44 | by selboo ]
Linux命令语法:mutt [-hnpRvxz][-a<文件>][-b<地址>][-c<地址>][-f<邮件文件>][-F<配置文件>][-H<邮件草稿>][-i<文件>][-m<类型>][-s<主题>][邮件地址]

补充说明:mutt是一个文字模式的邮件管理程序,提供了全屏幕的操作界面。

Linux命令参数:
  -a<文件>   在邮件中加上附加文件。
  -b<地址>   指定密件副本的收信人地址。
  -c<地址>   指定副本的收信人地址。
  -f<邮件文件>   指定要载入的邮件文件。
  -F<配置文件>   指定mutt程序的设置文件,而不读取预设的.muttrc文件。
  -h   显示帮助。
  -H<邮件草稿>&n
分页: 9/55 第一页 上页 4 5 6 7 8 9 10 11 12 13 下页 最后页 [ 显示模式: 摘要 | 列表 ]