原料:
鸡,蒜,姜,葱,香菇
调味料:
盐,老抽,糖,鸡精
做法:
1、将鸡斩成小块,蒜去皮拍烂,姜拍烂,葱切成段,香菇对切;
2、锅里下油,鸡块放入锅中,炒至颜色变白后加水600-700毫升;
3、锅中加入1汤匙酱油,2汤匙糖,少许盐、鸡精;
4、大火煮开之后,小火炖煮至水基本上收干即可。
mysql安装在/usr/local/下
perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config --testuser=root --testpassword=s3kr1t
make
make test
出现以下错误:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base....................String found where operator expected at t/00base.t line 20, near "BAIL_OUT "Unable to load DBI""
(Do you need to predeclare BAIL_OUT?)
String found where operator expected at t/00base.t line 21, near "BAIL_OUT "Unable to load DBD::mysql""
(Do you need to predeclare BAIL_OUT?)
syntax error at t/00base.t line 20, near "BAIL_OUT "Unable to load DBI""
syntax error at t/00base.t line 21, near "BAIL_OUT "Unable to load DBD::mysql""
BEGIN not safe after errors--compilation aborted at t/00base.t line 22.
# Looks like your test died before it could output anything.
t/00base....................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/10connect.................Use of uninitialized va
lue in concatenation (.) or string at t/10connect.t line 20.
skipped
all skipped: ERROR: Can't continue test
t/20createdrop..............Use of uninitialized value in concatenation (.) or string at t/20createdrop.t line 19.
skipped
all skipped: ERROR: . Can't continue test
t/25lockunlock..............Use of uninitialized value in concatenation (.) or string at t/25lockunlock.t line 23.
skipped
all skipped: Can't connect to database ERROR: . Can't continue test
t/29warnings................skipped
all skipped: ERROR: install_driver(mysql) failed: Can't load '/usr/local/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.16: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line 230.
t/30insertfetch.............Use of uninitialized value in concatenation (.) or string at t/30insertfetch.t line 18.
skipped
all skipped: ERROR: . Can't continue
test
t/31insertid................Use of uninitialized value in concatenation (.) or string at t/31insertid.t line 18.
make: *** [test_dynamic] Interrupt
从这里找到出错的原因
http://mail.pm.org/pipermail/za-pm/2008q4/000320.html
|> Ok, the problem seems to be your version of Test::More. Upgrade it to
|> Test-Simple-0.80 and try the tests again:
升级Test-Simple
make test
继续出错
Can't load '/usr/local/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.16:
ln -s /usr/local/mysql-5.1.30-linux-x86_64-glibc23/lib/libmysqlclient.so.16 /usr/lib64/
make test
测试顺利通过
另外还可以参考这篇文章
http://blog.c1gstudio.com/archives/183
perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config --testuser=root --testpassword=s3kr1t
make
make test
出现以下错误:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base....................String found where operator expected at t/00base.t line 20, near "BAIL_OUT "Unable to load DBI""
(Do you need to predeclare BAIL_OUT?)
String found where operator expected at t/00base.t line 21, near "BAIL_OUT "Unable to load DBD::mysql""
(Do you need to predeclare BAIL_OUT?)
syntax error at t/00base.t line 20, near "BAIL_OUT "Unable to load DBI""
syntax error at t/00base.t line 21, near "BAIL_OUT "Unable to load DBD::mysql""
BEGIN not safe after errors--compilation aborted at t/00base.t line 22.
# Looks like your test died before it could output anything.
t/00base....................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/10connect.................Use of uninitialized va
lue in concatenation (.) or string at t/10connect.t line 20.
skipped
all skipped: ERROR: Can't continue test
t/20createdrop..............Use of uninitialized value in concatenation (.) or string at t/20createdrop.t line 19.
skipped
all skipped: ERROR: . Can't continue test
t/25lockunlock..............Use of uninitialized value in concatenation (.) or string at t/25lockunlock.t line 23.
skipped
all skipped: Can't connect to database ERROR: . Can't continue test
t/29warnings................skipped
all skipped: ERROR: install_driver(mysql) failed: Can't load '/usr/local/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.16: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line 230.
t/30insertfetch.............Use of uninitialized value in concatenation (.) or string at t/30insertfetch.t line 18.
skipped
all skipped: ERROR: . Can't continue
test
t/31insertid................Use of uninitialized value in concatenation (.) or string at t/31insertid.t line 18.
make: *** [test_dynamic] Interrupt
从这里找到出错的原因
http://mail.pm.org/pipermail/za-pm/2008q4/000320.html
|> Ok, the problem seems to be your version of Test::More. Upgrade it to
|> Test-Simple-0.80 and try the tests again:
升级Test-Simple
make test
继续出错
Can't load '/usr/local/DBD-mysql-4.008/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.16:
ln -s /usr/local/mysql-5.1.30-linux-x86_64-glibc23/lib/libmysqlclient.so.16 /usr/lib64/
make test
测试顺利通过
另外还可以参考这篇文章
http://blog.c1gstudio.com/archives/183
可参考这篇文章,很不错:
http://pyh7.spaces.live.com/blog/cns!47D8D44208AC51E5!128.entry
mod_perl下载地址:
http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz
Apache2::Request
http://search.cpan.org/~joesuf/libapreq2-2.12/glue/perl/lib/Apache2/Request.pm
http://search.cpan.org/CPAN/authors/id/J/JO/JOESUF/libapreq2-2.12.tar.gz
在/home/modperl下安装mod_perl和libapreq2
cd /home/modeperl
tar zxvf mod_perl-2.0-current.tar.gz
cd mod_perl-2.0.4/
perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
make
make test
make install
编译libapreq2 for apache2
cd /home/modeperl
tar zxvf libapreq2-2.12.tar.gz
cd libapreq2-2.12
./configure --with-expat=/usr/local/apr-util/ --with-apache2-apxs=/usr/local/apache2/bin/apxs
make
make test
make install
配置httpd.conf
LoadModule perl_module modules/mod_perl.so
LoadModule apreq_module modules/mod_apreq2.so
再安装Apache2::Request模块
perl Make.PL --with-expat=/usr/local/apr-util/ --with-apache2-apxs=/usr/local/apache2/bin/apxs
make
make test
make install
http://pyh7.spaces.live.com/blog/cns!47D8D44208AC51E5!128.entry
mod_perl下载地址:
http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz
Apache2::Request
http://search.cpan.org/~joesuf/libapreq2-2.12/glue/perl/lib/Apache2/Request.pm
http://search.cpan.org/CPAN/authors/id/J/JO/JOESUF/libapreq2-2.12.tar.gz
在/home/modperl下安装mod_perl和libapreq2
cd /home/modeperl
tar zxvf mod_perl-2.0-current.tar.gz
cd mod_perl-2.0.4/
perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
make
make test
make install
编译libapreq2 for apache2
cd /home/modeperl
tar zxvf libapreq2-2.12.tar.gz
cd libapreq2-2.12
./configure --with-expat=/usr/local/apr-util/ --with-apache2-apxs=/usr/local/apache2/bin/apxs
make
make test
make install
配置httpd.conf
LoadModule perl_module modules/mod_perl.so
LoadModule apreq_module modules/mod_apreq2.so
再安装Apache2::Request模块
perl Make.PL --with-expat=/usr/local/apr-util/ --with-apache2-apxs=/usr/local/apache2/bin/apxs
make
make test
make install
man proc得到以下解释:
/proc/loadavg
The load average numbers give the number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes. They are the
same as the load average numbers given by uptime(1) and other programs.
使用ps找出这两种状态的进程数
ps aux |grep ' [D|R] '|wc -l
上面所获得的值和uptime得到的值基本相同。
如果状态为R的进程数很多,说明CPU瓶颈,如果状态为D的进程很多,说明IO出现瓶颈。
一般来说只要每个CPU的当前活动进程数不大于3那么系统的性能就是良好的,如果每个CPU的任务数大于5,那么就表示这台机器的性能有严重问题。对于上面的例子来说,假设系统有两个CPU,那么其每个CPU的当前任务数为:8.13/2=4.065。这表示该系统的性能是可以接受的。
相关链接:
http://www.hiadmin.com/uptime%E5%91%BD%E4%BB%A4%E8%A7%A3%E9%87%8A/
/proc/loadavg
The load average numbers give the number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes. They are the
same as the load average numbers given by uptime(1) and other programs.
使用ps找出这两种状态的进程数
ps aux |grep ' [D|R] '|wc -l
上面所获得的值和uptime得到的值基本相同。
如果状态为R的进程数很多,说明CPU瓶颈,如果状态为D的进程很多,说明IO出现瓶颈。
一般来说只要每个CPU的当前活动进程数不大于3那么系统的性能就是良好的,如果每个CPU的任务数大于5,那么就表示这台机器的性能有严重问题。对于上面的例子来说,假设系统有两个CPU,那么其每个CPU的当前任务数为:8.13/2=4.065。这表示该系统的性能是可以接受的。
相关链接:
http://www.hiadmin.com/uptime%E5%91%BD%E4%BB%A4%E8%A7%A3%E9%87%8A/
单进程打开文件数上限设置
编缉文件/etc/security/limits.conf
* - nofile 65536
此文件还可以对特定的用户进行限制
如果在/etc/rc.local中运行程序,涉及到文件数的限制
在运行命令前添加:
ulimit -SHn 65536
查看单进程打开文件数上限:
ulimit -n
所有进程打开文件数的限制
/proc/sys/fs/file-max
同时要更改
/proc/sys/fs/inode-max
此值为file-max的3-4倍,具本描述查看man文档
man proc
编缉文件/etc/security/limits.conf
* - nofile 65536
此文件还可以对特定的用户进行限制
如果在/etc/rc.local中运行程序,涉及到文件数的限制
在运行命令前添加:
ulimit -SHn 65536
查看单进程打开文件数上限:
ulimit -n
所有进程打开文件数的限制
/proc/sys/fs/file-max
同时要更改
/proc/sys/fs/inode-max
此值为file-max的3-4倍,具本描述查看man文档
man proc
启动"组策略":开始-运行-gpedit.msc-确定
左侧"用户配置"-管理模板-windows组件-windows资源管理器
右侧双击第三项: 从"工具"菜单删除"文件夹选项"菜单
选中"已禁用"-确定
左侧"用户配置"-管理模板-windows组件-windows资源管理器
右侧双击第三项: 从"工具"菜单删除"文件夹选项"菜单
选中"已禁用"-确定
dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system's hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware. While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable.
使用dmidecode命令查看硬件信息
Linux下如何获取主板序列号信息
使用dmidecode命令查看硬件信息
Linux下如何获取主板序列号信息
命令行工具:
http://downloads.activestate.com/contrib/md5sum/Windows/md5sum.exe
将其存放至
C:\WINDOWS\system32
cmd->所要验证的目录:
D:\test>md5sum test.gz
GUI软件: winMd5Sum
http://www.nullriver.com/downloads/Install-winMd5Sum.exe
如果文件太大的话,不是很好用。
http://downloads.activestate.com/contrib/md5sum/Windows/md5sum.exe
将其存放至
C:\WINDOWS\system32
cmd->所要验证的目录:
D:\test>md5sum test.gz
GUI软件: winMd5Sum
http://www.nullriver.com/downloads/Install-winMd5Sum.exe
如果文件太大的话,不是很好用。

最近评论