环境平台:

系统:Centos 7.6

数据库:mysql 5.7

PHP版本:PHP 5.6

testlink版本:testlink-1.9.19

链接:https://pan.baidu.com/s/10PrxXJA3LQ8ucY6yGzr7Cw 提取码:fuw6

一:我们先安装数据库,这步省略。

在数据中新建数据库及账号:

CREATE DATABASE testlink;
CREATE USER 'testlinkuser'@'localhost' IDENTIFIED BY '123456';
GRANT ALL PRIVILEGES ON testlink.* TO 'testlinkuser'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION; 
FLUSH PRIVILEGES; 
EXIT;

二:安装httpd

yum -y install httpd
sed -i 's/^/#&/g' /etc/httpd/conf.d/welcome.conf
sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" \
/etc/httpd/conf/httpd.conf
systemctl start httpd.service
systemctl enable httpd.service

三:安装PHP

yum -y install epel-release
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum -y install php56 php56-php php56-php-mysqlnd php56-php-gd php56-php-mcrypt php56-php-mbstring php56-php-xml php56-php-cli php56-php-ldap
sed -i "s/session.gc_maxlifetime = 1440/session.gc_maxlifetime = 2880/" /opt/remi/php56/root/etc/php.ini
sed -i "s/max_execution_time = 30/max_execution_time = 120/" /opt/remi/php56/root/etc/php.ini

检查php是否生效

vim /var/www/html/info.php

在网页打开http://ip/info.php

四:安装testlink

tar -zxvf testlink-1.9.19.tar.gz -C /var/www/html
cd  /var/www/html
mv testlink-1.9.19 testlink
#解压到指定目录并重命名
cp /var/www/html/testlink/custom_config.inc.php.example /var/www/html/testlink/custom_config.inc.php
chown -R apache:apache /var/www/html/testlink
chmod 777 /var/www/html/testlink/logs
#复制配置文件并授权

vim /var/www/html/testlink/custom_config.inc.php
systemctl restart httpd.service
#修改配置文件,如下,然后重启http服务

testlink 1.9.19安装

 

五:配置testlink

testlink 1.9.19安装

 

安装新testlink

testlink 1.9.19安装

 

同意协议,免费授权。

testlink 1.9.19安装

testlink 1.9.19安装

一些系统初始配置检查通过。

testlink 1.9.19安装

 testlink 1.9.19安装

 

这里需要填入mysql ip 、数据库名、mysql root账号密码、刚才创建的账号密码。

 testlink 1.9.19安装

 

安装配置成功,点击跳转页面

 testlink 1.9.19安装

默认账号admin、admin

testlink 1.9.19安装

 

 登入后提示新建项目,我们不管,直接在配置里选择Chinese 语言。

相关文章:

  • 2021-11-28
  • 2022-01-06
  • 2021-04-25
  • 2022-01-17
  • 2021-05-28
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-25
  • 2021-06-14
  • 2021-07-29
  • 2021-10-11
  • 2021-11-09
  • 2021-09-29
  • 2021-07-24
相关资源
相似解决方案