Linux禅道搭建

一、下载安装包

登录linux操作系统,在家目录或者/usr/local/src/ 执行如下命令下载:

wget [https://www.zentao.net/dl/zentao/18.3/ZenTaoPMS.18.3.zbox_64.tar.gz](https://www.zentao.net/dl/zentao/18.3/ZenTaoPMS.18.3.zbox_64.tar.gz)

二、执行安装命令

tar -zxvf ZenTaoPMS.18.3.zbox_64.tar.gz -C /opt/
/opt/zbox/zbox -ap 8080 -mp 3307
/opt/zbox/zbox start

访问地址:https://域名或者IP:端口/zentao/user-login.html
账户:admin
密码:123456

访问地址:https://域名或者IP:端口/adminer/
禅道数据库用户:
账户:zentao
密码:123456

再次输入如下信息:


三、解决问题

解决https无法nginx代理问题:
以下文档中,直接添加:$config->framework->filterCSRF = false; 即可 解决。

[root@cvm-guangzhou-ctos7-devops-zentao config]# cat /opt/zbox/app/zentao/config/my.php
<?php

$config->installed = true;

$config->debug = false;

$config->requestType = 'PATH_INFO';

$config->db->host = '127.0.0.1';

$config->db->port = '3307';

$config->db->user = 'root';

$config->db->prefix = 'zt_';

$config->webRoot = getWebRoot();

$config->db->name = 'zentao';

$config->db->password = '123456';

$config->default->lang = 'zh-cn';

$config->framework->filterCSRF = false;

[root@cvm-guangzhou-ctos7-devops-zentao config]#

四、修改默认配置及账号

  1. 修改MariaDB,因为默认密码都是123456不安全。
ALTER USER 'root'@'localhost' IDENTIFIED BY 'newpassword';
ALTER USER 'zentao'@'localhost' IDENTIFIED BY 'newpassword';

修改参考

[root-guangzhou-ctos7-devops-zentao bin]# ./mysql -uroot -p
Enter password:

Welcome to the MariaDB monitor. Commands end with ; or \g.

Your MariaDB connection id is 17866

Server version: 10.7.6-MariaDB Source distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use mysql;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

MariaDB [mysql]> ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

Query OK, 0 rows affected (0.001 sec)

MariaDB [mysql]> ALTER USER 'zentao'@'localhost' IDENTIFIED BY '123456';

Query OK, 0 rows affected (0.001 sec)

MariaDB [mysql]> exit

PS: 报错:ERROR 1356 (HY000): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them 这是因为MariaDB当前版本不支持这样修改。

  1. 同步修改禅道对应配置

vim /opt/zbox/app/zentao/config/my.php

[root@cvm-guangzhou-ctos7-devops-zentao config]# cat /opt/zbox/app/zentao/config/my.php

<?php

$config->installed = true;

$config->debug = false;

$config->requestType = 'PATH_INFO';

$config->db->host = '127.0.0.1';

$config->db->port = '3307';

$config->db->user = 'root';

$config->db->prefix = 'zt_';

$config->webRoot = getWebRoot();

$config->db->name = 'zentao';

$config->db->password = '123456';

$config->default->lang = 'zh-cn';

$config->framework->filterCSRF = false;

[root@cvm-guangzhou-ctos7-devops-zentao config]#

posted @ 2023-04-03 18:16  刘文江  阅读(21)  评论(0)    收藏  举报  来源