搭建Linux环境--安装禅道

一、下载禅道安装包

禅道官网下载 【http://dl.cnezsoft.com/zentao/9.8.3/ZenTaoPMS.9.8.3.zbox_64.tar.gz】安装包

二、使用ftp工具上传至Linux系统中

使用ftp将ZenTaoPMS.9.8.3.zbox_64.tar.gz安装包上传到Linux系统/opt目录下并解压

tar -zxvf ZenTaoPMS.9.8.3.zbox_64.tar.gz

三、配置

1、修改禅道自带的Apache和mysql端口号,-ap是Apache端口可以随意设置,我这里是8088,-mp是mysql数据库的端口
接着执行/opt/zbox/zbox start,重启禅道

/opt/zbox/zbox -ap 8088
/opt/zbox/zbox -mp 8089
/opt/zbox/zbox start

2、创建数据库账号,执行命令/opt/zbox/auth/adduser.sh

/opt/zbox/auth/adduser.sh
admin
123456

3、开放防火墙端口,执行命令vi /etc/sysconfig/iptables,添加以下内容

-A INPUT -p tcp -m state --state NEW -m tcp --dport 8088 -j ACCEPT

保存并退出,执行service iptables restart重启防火墙。

四、访问禅道

接着点开浏览器,输入地址:http://服务器公网ip:8088/。这个页面暂时是无法访问,需要在阿里云服务器上开启8088端口
打开云服务器ECS-安全组-配置规则

添加安全组规则,新增8088端口访问权限

  • 规则方向:入方向
  • 协议类型:自定义 FTP
  • 端口范围: 8088/8088
  • 授权对象:0.0.0.0/0

再去浏览器访问http://服务器公网ip:8088/, 就可以打开禅道地址了

首次登陆可以使用admin 123456登陆访问

注:如果遇到sql连接问题

可执行以下命令:

/opt/zbox/zbox stop
/opt/zbox/zbox start

忘记密码解决方案:

1、使用root账号登录禅道安装路径下的mysql,root默认密码123456

1 /opt/zbox/run/mysql/mysql -uroot -p
2 Enter password:

成功进入mysql后提示如下:

1 Welcome to the MariaDB monitor. Commands end with ; or g.Your MariaDB connection id is 7Server version: 10.1.22-MariaDB Source distribution
2 Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
3 Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
4 MariaDB [(none)]>

2、查看数据库,并使用zentao库

复制代码
 1 MariaDB [(none)]> show databases;
 2 +--------------------+
 3 | Database |
 4 +--------------------+
 5 | information_schema |
 6 | mysql |
 7 | performance_schema |
 8 | zentao |
 9 | zentaoep |
10 | zentaopro |
11 +--------------------+
12 6 rows in set (0.01 sec)
13 
14 MariaDB [(none)]> use zentao;
15 Reading table information for completion of table and column names
16 You can turn off this feature to get a quicker startup with -A
17 
18 Database changed
19 MariaDB [zentao]>
复制代码

3、输入sql命令查看zt_user表root用户密码

复制代码
1 MariaDB [zentao]> select id,account,password from zt_user where account ='admin';
2 +----+---------+----------------------------------+
3 | id | account | password |
4 +----+---------+----------------------------------+
5 | 1  | admin   | c79077fb2a0b06ae6ccf62ddc7269026 |
6 +----+---------+----------------------------------+
7 1 row in set (0.00 sec)
8 MariaDB [zentao]>
复制代码

4、密码使用MD5加密,修改当前密码为:

e10adc3949ba59abbe56e057f20f883e即123456

1 MariaDB [zentao]> update zt_user set password='e10adc3949ba59abbe56e057f20f883e' where id=1;
2 Query OK, 1 row affected (0.00 sec)
3 Rows matched: 1 Changed: 1 Warnings: 0
4 
5 MariaDB [zentao]>

修改成功后即可使用密码123456在浏览器登录禅道admin账号。

原文地址:https://www.cnblogs.com/yitao326/p/11126091.html