禅道安装

centos7安装禅道11.4.1(开源版)

下载禅道安装包
wget http://dl.cnezsoft.com/zentao/11.4.1/ZenTaoPMS.11.4.1.zbox_64.tar.gz
安装PHP
rpm -Uvh <https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm>
​
rpm -Uvh <https://mirror.webtatic.com/yum/el7/webtatic-release.rpm>
yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
​
systemctl start php-fpm
解压禅道安装包至/opt
tar -zxvf ZenTaoPMS.11.4.1.zbox_64.tar.gz -C /opt
启动禅道
/opt/zbox/zbox start
​
# 检查web登录
禅道服务和数据库分离,修改禅道连接数据库的配置文件my.php
vim /opt/zbox/app/zentao/config/my.php
 1    <?php^M
 2    $config->installed       = true;^M
 3    $config->debug           = false;^M
 4    $config->requestType     = 'PATH_INFO';^M
 5    $config->db->host        = '127.0.0.1';^M
 6    $config->db->port        = '3306';^M
 7    $config->db->user        = 'root';^M
 8    $config->db->prefix      = 'zt_';^M
 9    $config->webRoot         = getWebRoot();^M
10    
11    $config->db->name      = 'zentao';
12    $config->db->password  = '123456';
13    $config->default->lang = 'zh-cn';

修改为

 1    <?php^M
 2    $config->installed       = true;^M
 3    $config->debug           = false;^M
 4    $config->requestType     = 'PATH_INFO';^M
 5    $config->db->host        = '172.21.1.72';^M
 6    $config->db->port        = '3306';^M
 7    $config->db->user        = 'zentao_user';^M
 8    $config->db->prefix      = 'zt_';^M
 9    $config->webRoot         = getWebRoot();^M
10    
11    $config->db->name      = 'zentao';
12    $config->db->password  = 'zentao_user';
13    $config->default->lang = 'zh-cn';
将数据库转移到新服务器
重启禅道
/opt/zbox/zbox restart
数据库转移到新服务器
# database为数据库名

mysqldump -u username -p password database | mysql –host=*.*.*.* -C database

 

posted on 2019-10-16 09:15  鑫春  阅读(259)  评论(0编辑  收藏  举报

导航