Chinaunix首页 | 论坛 | 博客
  • 博客访问: 285763
  • 博文数量: 87
  • 博客积分: 1206
  • 博客等级: 少尉
  • 技术积分: 725
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-16 00:12
个人简介

do the right things the right ways

文章分类

全部博文(87)

文章存档

2017年(5)

2016年(6)

2015年(1)

2012年(11)

2011年(64)

分类: LINUX

2015-10-23 01:00:54

1. 下载安装包


2. TestLink 介绍、学习、参考

http://blog.csdn.net/yzlworld/article/details/6245246

3. 部署依赖程序
如果不手动一一安装 apache mysql php ,可以一键部署 XAMPP
http://blog.163.com/wspjing@126/blog/static/117720534201310290102170/

4. 依赖包安装启动问题
安装完后如果在访问 时有问题:

New XAMPP security concept:

Access to the requested object is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

vi  /opt/lamp/xampp/etc/extra/httpd-xampp.conf
修改:

        #Require local
        Order deny,allow
        Allow from all
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var


重启:
/opt/lamp/xampp  restart

OK.

5. 部署 testlink
cd /opt/lampp/htdocs
tar -xvf testlink......
mv testlink......   testlink

6. 浏览器中输入   OK

7. 安装过程中的问题及其解决办法


TestLink setup will now attempt to setup the database:

Creating connection to Database Server:Failed!

Please check the database login details and try again.

Database Error Message: Access denied for user 'root'@'localhost' (using password: YES)

解决办法:
设置数据库密码为空, 反复试几次

如果再出现问题,查看 tail -f 1234 /var/testlink/logs/*.log 配置的时候可能有权限问题
chmond 777 -R .htdocs/testlink

8. 结束

,,,,,,,

Done!

Processing:sql/mysql/testlink_create_tables.sql

OK!

Writing configuration file:OK! 

YOUR ATTENTION PLEASE:

To have a fully functional installation You need to configure mail server settings, following this steps

  • copy from config.inc.php, [SMTP] Section into custom_config.inc.php.
  • complete correct data regarding email addresses and mail server.

Installation was successful!

You can now log in to .

 
9. 汉化
vi ./testlink/config.inc.php
$tlCfg->default_language = 'zh_CN';

10. 禁止用户注册
vi ./testlink/config.inc.php
$tlCfg->user_self_signup = FLASE;

11. 备份和还原方法:

1.以管理员权限先开启mysql:

输入指令:/opt/lampp/bin/mysql -u root –p


例如:root@MMAX-11-Linux:/home/zxg# /opt/lampp/bin/mysql -u root –p

输入密码


2.再输入开启外围用户允许访问指令:grant all privileges on *.* to '用户名'@'%' identified by '密码' with grant option;


[例子:grant all privileges on *.* to'root' @'%' identified by 'a123456' with grant option;]

写入权限:flush privileges;

再退出:quit;


3.禁用防火墙:service iptables stop【即时生效,重启就恢复】【备注,有些linux安装版本不用禁用防火墙也能正常远程还原和备份,所以当1、2步完成后,就先测试一下能否备份,如果还不行,就禁用防火墙,再试。】


例如:root@MMAX-11-Linux:/home/zxg#  service iptables stop

iptables:unrecognized service


然后用mysql备份工具远程备份。就OK了。





阅读(2106) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~