Set the Hostname
Before you begin installing and configuring the components described in this guide, please make sure you've followed our instructions for setting your hostname. Issue the following commands to make sure it is set properly:
hostname
hostname -f
Run the following commands to update your package repositories, upgrade your system, and install Exim:
apt-get update
apt-get upgrade
apt-get install exim4-daemon-light mailutils
Configure Exim for Local Mail Service
Issue the following command to start Exim configuration:
dpkg-reconfigure exim4-config You'll be presented with a welcome screen, followed by a screen asking what type mail delivery you'd like to support. Choose the option for "internet site" and select "Ok" to continue.

Enter your system's FQDN (fully qualified domain name) in the "mail name" configuration screen.

Enter "127.0.0.1" when asked which IP address to listen on for SMTP connections.

Make sure you list your FQDN, hostname, and localhost entries when you're asked which destinations mail should be accepted for.

Leave the relay domains and relay machines fields blank.

Select "No" when asked whether to keep DNS queries to a minimum.

You may select either "mbox" or "Maildir" when asked about the delivery method used for incoming mail. While many utilities use mbox format, Maildir format can make handling individual locally delivered mail messages easier, and is widely supporting by a range of applications.

Accept the default "non-split" option for your mail configuration file. Enter at least one external email address (choose one that you check frequently) in addition to "root" when asked to specify postmaster mail recipients.

Test Your Mail Configuration
Issue the following command to send a test email, substituting an external email address for someone@somedomain.com.
echo "This is a test." | mail -s Testing someone@somedomain.com
Congratulations! You've configured Exim to send email from your Linux VPS.
Set the Hostname
Before you begin installing and configuring the components described in this guide, please make sure you've followed our instructions for setting your hostname. Issue the following commands to make sure it is set properly:
hostname
hostname -f
Run the following commands to update your package repositories, upgrade your system, and install Exim:
apt-get update
apt-get upgrade
apt-get install exim4-daemon-light mailutils
Configure Exim for Local Mail Service
Issue the following command to start Exim configuration:
dpkg-reconfigure exim4-config You'll be presented with a welcome screen, followed by a screen asking what type mail delivery you'd like to support. Choose the option for "internet site" and select "Ok" to continue.

Enter your system's FQDN (fully qualified domain name) in the "mail name" configuration screen.

Enter "127.0.0.1" when asked which IP address to listen on for SMTP connections.

Make sure you list your FQDN, hostname, and localhost entries when you're asked which destinations mail should be accepted for.

Leave the relay domains and relay machines fields blank.

Select "No" when asked whether to keep DNS queries to a minimum.

You may select either "mbox" or "Maildir" when asked about the delivery method used for incoming mail. While many utilities use mbox format, Maildir format can make handling individual locally delivered mail messages easier, and is widely supporting by a range of applications.

Accept the default "non-split" option for your mail configuration file. Enter at least one external email address (choose one that you check frequently) in addition to "root" when asked to specify postmaster mail recipients.

Test Your Mail Configuration
Issue the following command to send a test email, substituting an external email address for someone@somedomain.com.
echo "This is a test." | mail -s Testing someone@somedomain.com
Congratulations! You've configured Exim to send email from your Linux VPS.
1, First edit the /etc/hostname and /etc/hosts file
sudo vi /etc/hostname
2, run hostname service
sudo service hostname start
最近发了很多QTP的资料和帖子,搞得我自己都有点头大,特此做一个索引贴,希望对大家阅读有帮助。
每一个都带着难度和我自己的评价,大家根据自己的水平去选择。
今年的QTP招聘非常多,pay的也很不错,大家有时间多读读这里中高级的题目,并且照着连连。
-James
QTP索引贴
QTP Tutorial
说明: 只有一百来页,短小精悍,推荐QTP第一读物。
技术难度:入门,初级
http://51it.ca/bbs/thread-200-1-3.html
Quick Test Pro(QTP) user guide(中文版)
说明: Mercury的中文版用户手册,8.0版的,有800多页。新版的都有1600多页了。手册,按内容排序,而不是按照难度。有些章节比较难,有些简单。
技术难度:入门,初级,中级,高级
http://51it.ca/bbs/thread-201-1-2.html
QuickTest Pro(QTP) 学习与实践经验总结(1-5)
说明:非常不错的学习经验总结。全是经验总结,不是教程。
技术难度:中级,高级
http://51it.ca/bbs/thread-202-1-2.html
QuickTest Pro(QTP) 中的VBScript速查手册
说明:教程加常用函数速查手册,非常推荐,学习VBScript的第一本书。
技术难度:入门,初级
http://51it.ca/bbs/thread-203-1-2.html
QuickTest Pro(QTP)分析测试结果
说明:如何分析运行结果,没有用过QTP的可以一看,上我们课的就可以省了
技术难度:入门
http://51it.ca/bbs/thread-204-1-2.html
QuikcTest Pro (QTP) regular expression usage
说明:讲述如何在QTP中使用正则表达式,也就是我们常说的模式匹配
技术难度:初级,中级
http://51it.ca/bbs/thread-206-1-2.html
Quick Test Pro(QTP) FAQ
说明: 问题和解答,看起来不是FAQ,而是一些面试题,有些还是很有难度的
技术难度:初级,中级,高级
http://51it.ca/bbs/thread-207-1-2.html
一份QuickTest Pro(QTP) 学习笔记
说明: 某某大侠的学习笔记,不过看起来更像是工作中遇到问题和解决办法的note
技术难度:中级,高级
http://51it.ca/bbs/thread-213-1-2.html
管理QTP测试脚本的对象仓库
说明: 如何管理QTP的对象仓库,以便能让对象仓库易于维护、管理。
技术难度:初级,中级
http://51it.ca/bbs/thread-223-1-2.html
How to connect QTP with Testdirct
说明: 如何是QTP和QC链接
技术难度:初级
http://51it.ca/bbs/thread-229-1-2.html
Quick Test Pro FAQ
说明: 这是一份真正的FAQ,把QTP常见的问题罗列出来,100多页,非常适合学过QTP的同学一读。
技术难度:初级,中级,高级
http://51it.ca/bbs/thread-238-1-2.html
Quick Test Professional - handbook
说明: 入门教程,34页。
技术难度:入门,初级
http://51it.ca/bbs/thread-239-1-2.html
Programming concepts in QTP with some Basic Examples
说明: 讲述了QTP中编程方面的一些例子,不是单单VBScript,是结合中如何使用QTP中的一些对象。
技术难度:中级,高级
http://51it.ca/bbs/thread-240-1-2.html
Scripting Quicktest professional - 03 VBScript The Basics
说明: VBScript进阶读物,想深入学习者读
技术难度:初级,中级
http://51it.ca/bbs/thread-255-1-2.html
Scripting Quicktest professional - 04 VBScript Intrinsic procedures
说明:VBScript进阶读物,想深入学习者读,比起上篇来,这个更加一阶。
技术难度:中级,高级
http://51it.ca/bbs/thread-256-1-2.html
Scripting QTP系列
说明: QTP与VBSCript的完美结合,非常有深度,恐怕用过多年QTP的人读起来都非常受教。不全,我只能找这么多了。
技术难度:高级
Scripting QTP - CH04 - Advanced VBScrict
http://51it.ca/bbs/thread-278-1-2.html
Scripting QTP - CH05 - Regular Expressions
http://51it.ca/bbs/thread-277-1-2.html
Scripting QTP - CH07 - Working With Files
http://51it.ca/bbs/thread-279-1-2.html
Scripting Qtp - Ch08 - Adob
http://51it.ca/bbs/thread-280-1-2.html
Scripting Qtp - Ch09 - Wsh
http://51it.ca/bbs/thread-285-1-2.html
Scripting Qtp - Ch10 - Svg
http://51it.ca/bbs/thread-281-1-2.html
Scripting QTP - CH11 - Shell32
http://51it.ca/bbs/thread-282-1-2.html
Scripting QTP - CH13 - Win32API
http://51it.ca/bbs/thread-283-1-2.html
Scripting QTP - CH14 - DotNet
http://51it.ca/bbs/thread-284-1-2.html
Mercury QuickTest Professional 8.0 Shortcut Key Reference Card
说明: 快捷键列表,2页。打出来放到墙上,上班时候参考。
技术难度:入门
http://51it.ca/bbs/thread-360-1-1.html
QTP Script 系列
说明:介绍了不同场合下VBScript的应用,适用性强,难度适中
技术难度:初级,中级
QTP Script 1/14, How to launch a QTP application
http://51it.ca/bbs/thread-321-1-1.html
QTP Script 2, How to get data from Excel into QTP without importing the Excel.
http://51it.ca/bbs/thread-322-1-1.html
QTP Script 3 How to launch QTP, open a test, run it,
http://51it.ca/bbs/thread-323-1-1.html
QTP Script 4 Write the below code in a new test in qtp and run it.
http://51it.ca/bbs/thread-324-1-1.html
QTP Script 5 How to import excel into datatable in QTP.
http://51it.ca/bbs/thread-325-1-1.html
QTP Script 6 How to pass output parameter’s value
http://51it.ca/bbs/thread-326-1-1.html
QTP Script 7 How to copy data from Excel sheet to a Text file?
http://51it.ca/bbs/thread-330-1-1.html
QTP Script 8 How to count and get the path & name repositories
http://51it.ca/bbs/thread-331-1-1.html
QTP Script 9 How to move data from a text file to excel sheet.
http://51it.ca/bbs/thread-332-1-1.html
QTP Script 10 How to get all files and folders within a given folder?
http://51it.ca/bbs/thread-333-1-1.html
QTP Script 11 How to connect to Oracle 10g from QTP 9.5 and run a SQL query.
http://51it.ca/bbs/thread-334-1-1.html
QTP Script 12 get name of all the Recovery Scenarios associated with the test?
http://51it.ca/bbs/thread-335-1-1.html
QTP Script 13 check if a particular library file is associated with a test
http://51it.ca/bbs/thread-336-1-1.html
QTP Script 14 How to view the information about all the actions
http://51it.ca/bbs/thread-337-1-1.html
QTP Script 15 How to view the action information a Excel file?
http://51it.ca/bbs/thread-338-1-1.html
QTP帮助文档的使用
说明:如何使用QTP自带的帮助
技术难度:入门
http://51it.ca/bbs/thread-316-1-1.html
QTP: 怎么能够批量执行已经存在的测试呢?
说明: QTP如何批量执行多个测试,
技术难度:入门
http://51it.ca/bbs/thread-314-1-1.html
如何使用qtp检查网页中显示的文字颜色为指定的颜色
说明:这个比较有难度,不过这种情况很少见,遇到可以参考一下。
技术难度:中级,高级
http://51it.ca/bbs/thread-312-1-1.html
这个例子是psql的,其他的也是一样,语法可能稍有不同。
select distinct password from users group by password having count(password) >1 )
1,首先,看看你现在是多少,将来恢复的时候还用得上。
kernel.shmmax = 33554432
2,然后,改掉它
#sysctl -w kernel.shmmax=4294967296
这种改变只是暂时的,下次重新启动还会改回来。要想永久改变,就要把这个加到 /etc/sysctl.conf
kernel.shmmax = 4294967296
使用这个功能,你就可以在main函数执行之前,和main函数退出之后,执行你自己想要的操作。具体原理,网上很多,自己google一下就找到了,这里只是给一个例子。
2 #include <stdlib.h>
3
4 static void start(void) __attribute__ ((constructor));
5 static void stop(void) __attribute__ ((destructor));
6
7 int
8 main(int argc, char *argv[])
9 {
10 printf("start == %p\n", start);
11 printf("stop == %p\n", stop);
12
13 exit(EXIT_SUCCESS);
14 }
15
16 void
17 start(void)
18 {
19 printf("hello world!\n");
20 }
21
22 void
23 stop(void)
24 {
25 printf("goodbye world!\n");
26 }
27
运行结果:
hello world!
start == 0x4005fb
stop == 0x40060b
goodbye world!
我的主要设置的是google,今天电脑突然"呜呜"的怪叫,找不出什么毛病来,最后才发现,google今天的图片换成这个了经典游戏。好是好,但是上班的时候,电脑这么叫,的确很吓人啊。能不能先设置成静音,玩的时候在打开声音啊。
今天google疯了!