首页 技术 正文
技术 2022年11月20日
0 收藏 759 点赞 3,938 浏览 3206 个字

环境准备

  1. 系统CentOS Linux release 7.3.1611 (Core)
  2. 搭建LAMP所需的集成包 xampp-linux-x64-7.2.0-0-installer.run 下载地址
  3. TestLink安装包 testlink-1.9.16.tar.gz  下载地址

安装XAMPP

  1. 检查系统中是否有LAMP,分别检查这四个包,如果有则一个个删除
  2. 安装XAMMP,下载后以root身份进入所在目录:
chmod +x xampp-linux-x64-7.2.0-0-installer.run
./xampp-linux-x64-7.2.0-0-installer.run #执行安装

安装过程:

[root@localhost src]# ./xampp-linux-x64-7.2.--installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.XAMPP Core Files : Y (Cannot be edited)XAMPP Developer Files [Y/n] :Y Is the selection above correct? [Y/n]: Y ----------------------------------------------------------------------------
Installation DirectoryXAMPP will be installed to /opt/lampp
Press [Enter] to continue:----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.Do you want to continue? [Y/n]: Y----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer. Installing
% ______________ % ______________ %
#########################################----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.

启动:

[root@localhost src]# /opt/lampp/lampp start
Starting XAMPP for Linux 7.2.-...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.

创建数据库:

cd /opt/lampp/bin/
./mysqladmin -uroot password 123456
./mysql -uroot -p123456
MariaDB [(none)]> create database testlink;
MariaDB [(none)]> grant all privileges on testlink.* to tladmin@"localhost" identified by "123456";

解压testlink,并授权:

tar -xf testlink-1.9.16.tar.gz -C /opt/lampp/htdocs/
mv /opt/lampp/htdocs/testlink-1.9.16/ /opt/lampp/htdocs/testlink#授权
cd /opt/lampp/htdocs/testlink/
chmod 777 gui/templates_c
chmod 777 logs
chmod 777 upload_area

修改配置参数:

vim /opt/lampp/htdocs/testlink/config_inc.php
将$tlCfg->config_check_warning_mode = FILE';改成 $tlCfg->config_check_warning_mode='SILENT';
将$tlCfg->log_path= '/var/testlink/logs/';改成 $tlCfg->log_path='/opt/lampp/htdocs/testlink/logs/';
将$g_repositoryPath = '/var/testlink/upload_area/';改成$g_repositoryPath='/opt/lampp/htdocs/testlink/upload_area/';
将$tlCfg->default_language = 'en_GB';改成$tlCfg->default_language= 'zh_CN';#其他配置说明
$tlCfg->import_file_max_size_bytes,后面的数据'2097152'改为期望的数据值。(建议修改为2M,即2097152)
$tlCfg->import_max_row='10000'是导入文件一行的大小限制。
$tlCfg->user_self_signup,将其后TRUE改为FALSE,在登录界面取消了NewUser链接。

修改其他参数:

错误提示:Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /opt/lampp/htdocs/testlink/third_party/phpmailer/PHPMailerAutoload.php on line
修改参数:
把 function __autoload($classname)修改为function spl_autoload_register($classname)

打开浏览器,进入新手引导: http://192.168.182.147/testlink/

TestLink安装手册

TestLink安装手册

TestLink安装手册

TestLink安装手册

添加配置文件:

[root@localhost ~]# vim /opt/lampp/htdocs/testlink/config_db.inc.php
<?php
// Automatically Generated by TestLink Installer - Wed, 17 Jan 18 14:28:29 +0100
define('DB_TYPE', 'mysql');
define('DB_USER', 'tladmin');
define('DB_PASS', '123456');
define('DB_HOST', 'localhost');
define('DB_NAME', 'testlink');
define('DB_TABLE_PREFIX', '');

进入登录页面: 默认用户名和密码是admin

TestLink安装手册

更改语言

TestLink安装手册

TestLink安装手册

参考文档:http://blog.51cto.com/tiantiantesting/1727832

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,075
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,551
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,399
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,176
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,811
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,893