博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Testlink解决大用例导入问题
阅读量:7294 次
发布时间:2019-06-30

本文共 1583 字,大约阅读时间需要 5 分钟。

最近公司同事需要将别的testlink的用例迁移过来,由于现在新的服务器也在使用,不能使用数据库导入的办法,只能用xml文件进行导入,不过在导入的时候出现了个没遇到的问题,报错文件太大,无法上传。


解决办法:

  • 修改/etc/nginx/nginx.conf,加入如下几行
fastcgi_connect_timeout 600;fastcgi_send_timeout 600;fastcgi_read_timeout 600;client_max_body_size 100M;

nginx.conf如下所示:

user nginx;worker_processes auto;worker_rlimit_nofile 65535;error_log  off;pid /var/run/nginx.pid;include /usr/share/nginx/modules/*.conf;events {    worker_connections  2048;    multi_accept on;    use epoll;}http {    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '                      '$status $body_bytes_sent "$http_referer" '                      '"$http_user_agent" "$http_x_forwarded_for"';    server_tokens       off;    access_log          off;    sendfile            on;    tcp_nopush          on;    tcp_nodelay         on;    keepalive_timeout   65;    fastcgi_connect_timeout 600;    fastcgi_send_timeout 600;    fastcgi_read_timeout 600;    types_hash_max_size  2048;    client_max_body_size 100M;    include             /etc/nginx/mime.types;    default_type        application/octet-stream;    include /etc/nginx/conf.d/*.conf;}
  • 修改config.ini.php,将下面两行上传大小增大
$tlCfg->import_file_max_size_bytes = '40960000';$tlCfg->import_max_row = '100000';
  • 修改/etc/php.ini
upload_max_filesize 100Mmax_execution_time = 600max_input_time = 600post_max_size = 100Mmemory_limit = 128M
  • 调整mysql:MySQL根据配置文件会限制Server接受的数据包大小。有时候大的插入和更新会受 max_allowed_packet 参数限制,导致写入或者更新失败。 在my.cnf中加入
max_allowed_packet=500M
  • 重启mysql、php-fpm、nginx服务(推荐直接重启系统,测试过程中重启后才会生效)

转载于:https://www.cnblogs.com/tchroot/p/9176778.html

你可能感兴趣的文章
一个IT大学生来深圳2年半的经历感受
查看>>
VMware View 5.0 桌面虚拟化方案介绍视频
查看>>
理解Spring中的事务抽象
查看>>
java 设计模式 建造者模式
查看>>
mysql备份和恢复工作记录
查看>>
我的友情链接
查看>>
vFrank考VCDX的过程
查看>>
jQuery input同步发sims
查看>>
memcached起步
查看>>
lesson 10-你所不知道的邮件退信代码
查看>>
OSPF LSA过滤简述
查看>>
m283-tftp传输,nfs挂载rootfs
查看>>
Windows Server 2008搭建***服务
查看>>
实验一 路由配置(cisco packet tracer)
查看>>
装机流程
查看>>
练习题7
查看>>
简单的nginx启动脚本
查看>>
我的友情链接
查看>>
React Native集成到Android项目当中
查看>>
cd ls
查看>>