-
软件测试qq交流群
2008-11-08 11:16:26
巅峰测试qq群:36348889
中国软件测试联盟交流信息:
中国测试联盟总站:10198909(已满)
中国测试联盟华东群:13872265
中国测试联盟西南群:7887077
中国测试联盟西北群:3897961
中国测试联盟东北群:11377282
中国测试联盟安徽群:5463242
软件测试联盟华南群 2500392软件测试联盟北京1群 5634262
软件测试联盟北京2群 13720847
软件测试联盟华北群 1462508
QTP应用专区:qtp@cstl.cn
LR 应用专区:lr@cstl.cn
TD 应用专区:td@cstl.cn中国软件测试基地:
中国软件测试基地NO1:11134003
中国软件测试基地NO2:12726856
中国软件测试基地NO3:23165687
中国软件测试基地NO4:24964945 (以开源测试工具为主)
51Testing:
51Testing 北京站:7815125 已满
51testing 北京二站:24473759
51Testing 上海站:24481194
51Testing 广东站:18401390
51Testing 深圳站:24481329
51Testing 湖北站:24509693
51Testing 湖南站 17868943
51Testing 上海二站:24801173
51Testing 安徽站:24017595
51Testing 海南站:6561225
51Testing 厦门站:24027829
51Testing 吉林站:6052369
51Testing 辽宁站:2727639
51Testing 河南站:24045820
51Testing 河北站:24045820
51Testing广东站:5381232
51Testing江苏站:6368563
51Testing浙江站:6368769
51Testing西安站:21490827
51Testing 山东站:23960121
51Testing一站:4540556
51Testing二站:2010940
51Testing三站:21185263
51Testing四站:21224215中国软件测试社区:
中国软件测试社区群A(2599102)
中国软件测试社区群B(4156362)Mercury工具交流群: 8577803
Mercury 认证交流:24132403
Mercury认证交流群:19226903
Mercury认证交流群2:18135040
loadrunner测试群:14493417
WR-QQ: 7347704
LoadRunner群:7387711/7348323
QTP新QQ群号8480482
TD讨论群:9474692
mercury-QTP,LR,TD,WR:10605016
QTP:8480482
自动化测试交流群: 19920695
性能测试交流群: 10959429
软件测试职业发展二: 20341410
软件测试职业发展三: 22019378
软件测试群二: 17517136
软件测试群三: 9602234
测试工程师:4565257
sincky的软件测试:1387661
质控联盟群:10787465
Skill Base:19558533
SuperHenrY之软件测试:12383525
测试帝国区:15351072
测试交流:10744537
测试之家:21046010
软件测试大本营:1494459
软件测试发展之路:18915974
软件测试技术群:10341909
软件测试联盟:9499636
深圳测试:14293640
深圳软件测试基地:17155201
性能测试总群:14181090
性能测试分群:14130985
游戏测试交流:4539491
越测越精彩:3748422
中国软件项目开发 QQ群 : 2679313 / 7489218
游戏测试交流4539491
it工程:9660921
web群: 9626381
单元测试QQ群:9930051
广东群:1435656
软件测试上海西安群: 4029513
软件测试(1264462)
软件测试群:1264462
菜鸟群:3568481
软件测试QQ群:8023870
群组号:7387750 / 9660921
QQ群号:7126050 / 9045150
rational群组:7735224
南京测试群6650144
软件测试(1235309) 、5153448、4029513、 1839840 、 8023870、10899766/ 6111308
苏州软件测试协会(8949007)
北京软件测试群10984979
上海软件测试大本营(10521223)
测试管理及软件工程QQ群:6212120
西安: 3988868
成都: 6915035
手机群:125427040
厦门软件测试协会 15350613
广州软件测试协会:2132744 -
linux 下安装bugzilla-完整版(3)
2008-08-30 12:25:47
十、安装配置POP3和IMAP(可选)
yum -y install dovecot
cp /etc/dovecot.conf /etc/dovecot.conf.bak
vi /etc/dovecot.conf
17行 #protocols = imap imaps pop3 pop3s 修改成--> protocols = pop3
#只開啟 pop3 的功能,若要 imap 請自行加入,此設定值若不修改,預設是開啟 imap、pop3 的
43行 #ssl_disable = no 修改成--> ssl_disable = yes
#不啟動 ssl 加密功能
/etc/rc.d/init.d/dovecot start
chkconfig dovecot on
POP3 測試:telnet localhost 110(離開:quit)
2、进入目录 /etc/xinetd.d目录
3、找到imap文件和ipop3 这两个文件,分别进行修改,把原来内容中
disable的值由 yes 变为 no
保存退出
4、重新启动
/etc/rc.d/init.d/xinetd restart
5、添加一个用户,并设置密码
adduser zhaods
aasswd zhaods
密码:123
十一、查看邮件
如果想查看队列中等待发送的邮件的详细信息,可以在『邮件ID』列中单击要查看的邮件,打开『读邮件』页面阅读邮件内容。
单击『读邮件』页面中『邮件头』区域右侧的『View all headers』链接,可以查看到邮件中包含的所有头(header)信息。可不要小瞧这些头信息,当 Sendmail邮件服务器因配置问题而无法正常发送邮件时,查看队列中那些无法发送的邮件的头信息,说否定可以带来一些启发。
对于那些迟迟无法发送的邮件,将它们一直保存在发送队列中没有任何意义,Sendmail 的管理员应该将它们从邮件队列中删除,以免过多的占用磁盘空间。要删除邮件队列中等待发送的邮件,只需在邮件列表中将其 ID 前的复选框选中,然后单击『Delete selected messages』按钮就可以了。
默认情况下,Sendmail 邮件服务器将在邮件队列中等待发送的邮件都统一存放在 /var/spool/mqueue/ 目录下,其访问权限通常为“-rw-------”,拥有者是root。当然,必要时指定系统中的其它目录来存放邮件队列中的邮件。在 Webmin的『Sendmail配置』页面中单击『Sendmail选项』,进入『Sendmail选项』页面,在『邮件队列目录』中指定好存放邮件的邮件队列目录后,单击『保存并应用』按钮即可。这样下次启动 Sendmail 邮件服务器时,邮件队列中的邮件就会保存在新指定的目录下。
当邮件发送成功后,Sendmail 会将发给每个用户的邮件收集在/var/spool/mail/ 目录下,供 E-mail 客户端软件读取,Linux 系统中的第一个用户都有一个与帐号同名的文件来储存邮件。管理员通过『Sendmail配置』页面中的『用户邮箱』可以查看所有用户当前邮箱中的内容。
单击『用户邮箱』图标,进入『用户邮箱』页面,在这里可以看到系统中当前拥有邮箱的所有用户列表。
要查看某个用户邮箱中的具体内容,可以在『用户邮箱』区域中的邮箱列表中单击该用户名对应的链接,进入『用户邮件』页面来查看该用户当前收到的所有E-mail,如图 5-2-27 所示。
在一定程度上可能将 Webmin 看成一个简单的 Webmin 邮件系统。通过 Webmin不仅可以查看邮件内容,还可以完成邮件的转发和删除,甚至撰写新的邮件所示。怎么样,又一次体会到 Webmin 的强大了吧。
Sendmail 本身只是一个邮件服务器,每一个合法的 Linux 用户都能够通过Sendmail 来发送邮件,但它不能对用户的邮箱大小进行限制。如果需要像许多流行的 Webmail 那样限制邮箱的大小,可通过前面介绍过的用户磁盘限额功能来实现。
-
linux 下安装bugzilla-完整版(2)
2008-08-30 12:23:52
八、问题的解决
关于访问权限:
有时候如果按照上述方法安装后,访问http://159.226.2.132/bugzilla/index.cgi会出现无权访问页面的问题。
解决:把httpd.conf 中的
User ××××
Group ××××
改为
User nobody
User nobody
这样把apache的访问用户都设为了nobody。(这可能会影响其他的apache下的程序,修改前可以询问apache的管理员。反正就是要让/var/www/bugzilla的访问用户权限和apache的访问用户权限一样。
然后执行
$cd /var/www/html
$chown -R nobody.nobody ./bugzilla
把/var/www/bugzilla目录及其下文件权限全改为nobody.nobody方能解决访问权限问题。
vi index.html
rm -f index.html
Apache [forbidden 403]错误的解决办法
用Google以Apache 403搜了好一会,终于在一个博客里看到,作者遇到和我完全相同的问题:Apache、目录的配置都没问题,但就是不能显示页面。而解决方法恰恰就是修改Selinux对public_html的访问控制。
用以下命令修改文件夹安全属性
chcon -R -t httpd_user_content_t public_html/
$cd /var/www/html
chcon -R -t httpd_user_content_t bugzilla/
关联知识的总结:
Fedora Core 5 SELinux FAQ
http://fedora.redhat.com/docs/selinux-faq-fc5/#faq-entry-public_html Q: How do I make a user public_html directory work under SELinux?
A: This process presumes that you have enabled user public HTML directories in your Apache configuration file, /etc/httpd/conf/httpd.conf. This process only covers serving static Web content. For more information about Apache HTTP and SELinux, refer to http://fedora.redhat.com/docs/selinux-apache-fc3/.
If you do not already have a ~/public_html directory, create it and populate it with the files and folders to be served.
cd ~mkdir public_htmlcp /path/to/content ~/public_html
At this point, httpd is configured to serve the contents, but you still receive a 403 forbidden error. This is because httpd is not allowed to read the security type for the directory and files as they are created in the user's home directory. Change the security context of the folder and its contents recursively using the -R option:
ls -Z -d public_html/drwxrwxr-x auser auser user_u:object_r:user_home_t public_htmlchcon -R -t httpd_user_content_t public_html/ls -Z -d public_html/drwxrwxr-x auser auser user_u:object_r:httpd_user_content_t public_html/ls -Z public_html/-rw-rw-r-- auser auser user_u:object_r:httpd_user_content_t bar.html-rw-rw-r-- auser auser user_u:object_r:httpd_user_content_t baz.html-rw-rw-r-- auser auser user_u:object_r:httpd_user_content_t foo.html
You may notice at a later date that the user field, set here to user_u, is changed to system_u. This does not affect how the targeted policy works. The field that matters is the type field.
Your static webpages should now be served correctly. If you continue to have errors, ensure that the Boolean which enables user home directories is enabled. You can set it using system-config-securitylevel. Select the SELinux tab, and then select the Modify SELinux Policy area. Select Allow HTTPD to read home directories. The changes take effect immediately.
所用命令解析:
ls -Z -d public_html/
#显示文件/目录的安全语境-Z, --context
Display security context so it fits on most displays. Displays only mode, user, group, security context and file name.-d, --directory
list directory entries instead of contents, and do not dereference symbolic links
chcon -R -t httpd_user_content_t public_html/
#修改文件/目录的安全语境-R, --recursive
change files and directories recursively-t, --type
set type TYPE in the target security context
九、Sendmail 官方網站:
查看sendmail版本
sendmail -d0.4
yum -y install sendmail sendmail-cf m4 cyrus-sasl
cp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.bak
vi /etc/mail/sendmail.mc
48行 dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
49行 dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
#刪掉上面兩行前面的 dnl
#注意:TRUST_AUTH_METH、define 前面不要留有空格
112行 dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
#前面加上 dnl, 把這行註解起來(dnl = do not load)
#或改成下面這樣也能够
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.bak
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
vi /etc/mail/access
Connect:sqes.hcc.edu.tw RELAY
Connect:192.168.1 RELAY
#加入以上兩行(請依自己學校狀況修改)
makemap hash /etc/mail/access.db < /etc/mail/access
/etc/rc.d/init.d/saslauthd start
/etc/rc.d/init.d/sendmail start
chkconfig saslauthd on
chkconfig sendmail on
測試:telnet localhost 25(離開:quit)
把寄給 root 的信寄給 sysadm:
vi /etc/aliases
96行 #root: marc 修改成--> root: sysadm
#若想要 root 也留一份備份的話:root: sysadm,root
newaliases
SMTP 測試:telnet localhost 25(離開:quit)
mutt 介紹:yum -y install mutt && mutt
Sendmail 官方文档:
http://www.sendmail.org/~ca/email/sm-X/
▲Top
POP server
Dovecot 官方網站:
http://www.dovecot.org/
yum -y install dovecot
cp /etc/dovecot.conf /etc/dovecot.conf.bak
vi /etc/dovecot.conf
17行 #protocols = imap imaps pop3 pop3s 修改成--> protocols = pop3
#只開啟 pop3 的功能,若要 imap 請自行加入,此設定值若不修改,預設是開啟 imap、pop3 的
43行 #ssl_disable = no 修改成--> ssl_disable = yes
#不啟動 ssl 加密功能
/etc/rc.d/init.d/dovecot start
chkconfig dovecot on
POP3 測試:telnet localhost 110(離開:quit)
nmap 介紹:yum -y install nmap ; nmap localhost
Dovecot 官方文档:
http://wiki.dovecot.org/
▲Top
Open Webmail 安裝流程:
Open Webmail 官方網站:
http://openwebmail.org/
注意:要架設 Open Webmail 前,請務必先將
sendmail
、
dovecot
架設好
安裝
cd
yum -y install perl-suidperl perl-Compress-Zlib perl-Text-Iconv
wget
http://openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail-2.52-1.i386.rpm
rpm -ivh openwebmail-2.52-1.i386.rpm
rm -rf openwebmail-2.52-1.i386.rpm
修改 openwebmail.conf
cp /var/www/cgi-bin/openwebmail/etc/openwebmail.conf /var/www/cgi-bin/openwebmail/etc/openwebmail.conf.bak
vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
55行 enable_pop3 yes 修改成--> enable_pop3 no
62行 default_language en 修改成--> default_language zh_TW.Big5
85行 default_iconset Cool3D.English 修改成--> default_iconset Cool3D.Chinese.Traditional
76行
77行 --
78行 Open WebMail Project (http://openwebmail.org)
79行
#此此四行是使用者寄信的預設簽名檔,請自行修改紅字部分
202行 webdisk_rootpath /webdisk 修改成--> webdisk_rootpath /
修改 dbm.conf
cp /var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf /var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf.bak
vi /var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock no
使用 Open WebMail 變更密碼的時候,順便修改 samba 密碼
cp /var/www/cgi-bin/openwebmail/etc/auth_unix.conf /var/www/cgi-bin/openwebmail/etc/auth_unix.conf.bak
vi /var/www/cgi-bin/openwebmail/etc/auth_unix.conf
13行 change_smbpasswd no 修改成--> change_smbpasswd yes
初始化
/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
測試:https://IP/cgi-bin/openwebmail/openwebmail.pl
縮短 Open WebMail 連結網址:
vi /etc/httpd/conf/httpd.conf
scrīptAlias /mail "/var/www/cgi-bin/openwebmail/openwebmail.pl"
#在設定檔最後面加上這一行
/etc/rc.d/init.d/httpd restart
測試:https://IP/mail/
sendmail 的配置
yum -y install sendmail sendmail-cf m4 cyrus-sasl
cp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.bak
首先进入 /etc/mail 目录
1、配置文件 sendmail.mc
(1)打开文件 sendmail.mc
vi sendmail.mc
(2)在命令状态下,输入
/DAEMON_OPTIONS
查找字符串:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
(3)在该字符串前面加上dnl ,把该行注释掉,即:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
保存退出
(4)执行命令
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.bak
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
输出新的配置文件
2、配置文件access
(1)打开文件 access
vi access
(2)在文件中添加
192.168.94RELAY
(注意:网段根据实际确定)
保存退出
(3)执行命令
makemap hash /etc/mail/access.db < /etc/mail/access
建立索引文件
3、配置文件local-host-names
(1)打开文件 local-host-names
vi local-host-names
(2)在文件中添加
btest.com
mail.btest.com
设置本地域名,以进行本地传递
4、修改hosts文件,用于接收邮件
hosts文件位于 /etc目录下
(1)进入/etc目录,打开hosts文件
vi hosts
(2)添加linux服务器的IP地址和别名,内容如下:
192.168.94.40btest.com
5、修改完以上配置文件,重启sendmail
/etc/rc.d/init.d/sendmail restart
(注意可能时间会比较慢)
-
linux 下安装bugzilla-完整版(1)
2008-08-30 12:17:21
操作系统:FC5
目录:
1.mysql(FC5系统自带需要安装配置启动)
2.bugilla(安装)
3.apache(FC5系统自带只要配置启动)
4.安装bugzilla要求的perl模块
5.配置apache文件:vi /etc/httpd/conf/httpd.conf(很重要)
6.进入bugzilla目录,修改localconfig
7.进入bugzilla页面(bugzilla安装完成)
8.一些问题的解决
9.sendmail安装配置设置本地域名,以进行本地传递(一下是bugzilla注册新用户所需要的服务)
10.pop安装配置(这里需要先添加用户,之后bugzilla才能注册新用户。这里的用户要相同,即:邮箱地址一致)
11.查看邮件(查看bugzilla注册新用户时给邮箱发的密码)
注:红色字为具体操作,黑色字作为参考!
一、MySQL安装配置
1. 安装MySQL5.0.21
FC5中的mysql的版本为5.0.21,非常容易安装。
使用yum,按如下所示,先安装mysql客户端程序,然后安装mysql服务器程序。
安装mysql客户端程序。Is this ok [y/N]: y
#yum install mysql
Loading "installonlyn" plugin
Setting up Install Process
......
========================================
Package Arch Version Repository Size
========================================
Updating:
mysql i386 5.0.22-1.FC5.1 updates 3.0 M
Transaction Summary
========================================
......
Updated: mysql.i386 0:5.0.22-1.FC5.1
Complete!
安装mysql服务器程序。Is this ok [y/N]: y
#yum install mysql-server
Loading "installonlyn" plugin
Setting up Install Process
......
==========================================
Package Arch Version Repository Size
==========================================
Installing:
mysql-server i386 5.0.22-1.FC5.1 updates 9.9 M
Installing for dependencies:
perl-DBD-MySQL i386 3.0004-1.FC5 updates 147k
......
Installed: mysql-server.i386 0:5.0.22-1.FC5.1
Dependency Installed: perl-DBD-MySQL.i386 0:3.0004-1.FC5
Complete!
最后在画面上出现“Complete!”时,说明mysql服务器安装成功。
2. 设置
当mysql安装完成后,安装程序已经在/etc/目录下生成了一个名为my.cnf的设置文件。按如下所示,修改/etc/my.cnf文件。
#vi /etc/my.cnf
在[mysqld]区域中,添加如下行。
default-character-set=utf8
3. 启动MySQL
先把mysqld设置成随系统启动时自动启动模式,然后启动它。
#/sbin/chkconfig mysqld on
#/etc/rc.d/init.d/mysqld start
4. 数据库管理
安装后,root的password是空的。键入如下命令,不用password就可以进入mysql
#mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 5.0.22
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>exit;
从系统安全来讲,这是很危险的。用如下命令修改root的password。
#mysqladmin -u root password "xxxxxx"
使用root进入mysql。
#mysql -u root -pxxxxxx
查看版本
#mysql -V
-------------------------------------------------------------------------------------
选择数据库。
mysql>use mysql;
显示数据库的表。
mysql>select host,user,password from user;
+-----------+------+------------------+
| host | user | password |
+-----------+------+------------------+
| localhost | root | xxxxxxxxxxxxxxxx |
| server1 | root | |
| server1 | | |
| localhost | | |
+-----------+------+------------------+
4 rows in set (0.00 sec)
从以上显示可以看到,名字为“”的用户存在。还有,root在server1上的password为空。可通过如下操作消除这些隐患。
删除“”用户。
mysql>delete from user where user="";
设置root在server1上的password。
mysql>update user set password=password('xxxxxx') where host='server1';
确认操作后的user表。
mysql>select host,user,password from user;
+-----------+------+------------------+
| host | user | password |
+-----------+------+------------------+
| localhost | root | xxxxxxxxxxxxxxxx |
| server1 | root | xxxxxxxxxxxxxxxx |
+-----------+------+------------------+
2 rows in set (0.00 sec)
创建数据库bugs
create database bugs;
show databases;
use bugs;
创建用户bugs
GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE, LOCK TABLES,DROP,REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY '123456';
从 mysql 数据库授权表中重新装载权限。
FLUSH PRIVILEGES;退出数据库
exit;
二、安装bugzilla
2、解包:tar zxvf bugzilla-2.20.4.tar.gz
3、配置:mkdir /var/www/html/bugzilla (创建bugzilla目录)
cd bugzilla-2.20.4 然后 mv * /var/www/html/bugzilla (移动bugzilla文件到apache服务目录)
chmod -R 777 /var/www/html/bugzilla
三、配置启动acpache
httpd -v
# vi /etc/httpd/conf/httpd.conf(修改ServerName这行后面部分为本机IP地址,如:
ServerName 192.168.1.105:80)
# /usr/sbin/apachectl start (启动acpache)
测试APACHE2是否服务启动成功
打开IE输入:
四、安装perl模块
由于默认的perl安装包缺少一些bugzilla需要的模块,所以需要补充一些模块,最好是在线进行,不要一个一个的自己安装。以root身份运行在联网情况下用以下命令安装所需的最少perl模块:
perl -MCPAN -e 'install "Bundle::Bugzilla"'
Are you ready for manual configuration? [yes] no
of modules we are processing right now? [yes] 敲回车,以后都敲回车!
五、配置apache
在大部分基本的 Apache 安装中,httpd.conf 文件位于 /etc/httpd/conf/ 目录。一定要检查您的安装,确保从正确的目录中打开 Apache 配置文件。使用下面的命令打开它:$ vi /etc/httpd/conf/httpd.conf。
您需要编辑这个文件中的一些行,令 Apache 能够利用 Bugzilla。首先,您需要允许 Apache 运行 cgi-bin 目录之外的 CGI 脚本。为此,必须在 httpd.conf 中添加(或者去除注释)以下这一行: AddHandler cgi-scrīpt .cgi 。
然后,您需要允许 Bugzilla 的 .cgi 文件能够在 Bugzilla 目录中运行。将下面这两行添加到 <Directory /var/www/html > 指示符中:
<Directory /var/www/html>
......
Options ExecCGI FollowSymLinks <---- add this line.
AllowOverride Limit <---- add this line.
</Directory>
最后一个步骤,通过将下面的内容添加到 httpd.conf 中 DirectoryIndex 那一行的最后,您必须配置 Apache,以便在进入 Bugzilla 目录时查找 index.cgi 文件: DirectoryIndex index.html index.html.var index.cgi 。
就是这样!现在您应该能够访问 http://<your-server-name>/bugzilla 的 Bugzilla 页。记着使用本文前面通过 checksetup.pl Perl 脚本创建的管理员帐号/口令进行登录。
六、进入bugzilla目录,修改localconfig
cd /var/www/html/bugzilla
./checksetup.pl(检查模块的安装情况)
vi localconfig
把$db_pass=’ ’;中填入一个数据库的密码(自己一定要记住,如这里输入123456)
七、进入bugzilla页面
(此安装经验,是总结了许多人的方法而成。)