文章目录
- 概述
- 一、Ubuntu中安装
- 1.1 复制下载安装包路径
- 1.2 将安装包解压到ubuntu中
- 1.3 启动服务
- 1.4 设置开机自启动
- 二、禅道服务基本操作
- 2.1 启动,停止,重启,查看服务状态
- 2.2 开放端口
- 2.3 访问和登录禅道
卜相机关
卜三命、相万生,机关算尽明不明,了却君王天下事,聊得浮云,醉里挑灯。
擅长卜卦命相与机关之术的中原谋士,在森狱进犯中原时,主动找上玄嚣太子献策,言谈中对中原地脉与情势了解透彻,并助玄嚣破解云渡山地脉阵局,因而被网罗至葬天关助玄嚣拓展霸业。然而卜相机关真实身份,却是素还真挚友屈世途,卧底森狱乃为取得玄嚣信任,进而里应外合计杀玄嚣;在玄嚣死后,陆续被蜕变黑后与玄膑太子拉拢,卜相机关也继续卧底森狱,并暗中探取情报,让苦境正道得以从中寻得喘息反扑之机。
概述
禅道 项目管理软件 是国产的开源免费项目管理软件,专注研发项目管理,内置需求管理、任务管理、bug管理、缺陷管理、用例管理、计划发布等功能,实现了软件的完整生命周期管理及全面支持IPD管理流程。
在Ubuntu下安装禅道需要配置基本的环境:
-
禅道安装部署环境推荐使用 Linux + Apache + PHP7.0以上版本+ MySQL5.5以上版本/MariaDB的组合。Nginx其次,不推荐IIS + PHP组合。
-
禅道需要使用PHP的这些扩展:pdo、pdo_mysql、json、filte、openssl、mbstring、zlib、curl、gd、iconv,企业版旗舰版还需要安装: zip、xml、ldap、bcmath扩展,请大家确保PHP环境安装加载以上扩展模块。
-
Linux系统下不推荐自己编译安装PHP,最好使用操作系统自带的包管理器安装PHP的运行环境。
一、Ubuntu中安装
1.1 复制下载安装包路径
禅道官网下载地址:禅道下载地址
本次为ubuntu环境下安装,所以下载开源版linux一键安装包版本。
开源版免费好用。
右键点击安装包然后选择复制连接。
复制的下载路径如下(我的系统是arm的cpu):
https://www.zentao.net/dl/zentao/18.10/ZenTaoPMS-18.10-zbox_amd64.tar.gz
**注:**下载的安装包需要于芯片的架构相匹配,amd和arm需要对应,ubuntu可以通过uname -m,lscpu进行查看。
ubuntu@ubuntu:~$ uname -m
aarch64 # 系统类型,aarch是arm的架构
ubuntu@ubuntu:~$ lscpu
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Vendor ID: ARM # cpu类型
Model name: Cortex-A72
Model: 3
Thread(s) per core: 1
Core(s) per cluster: 4
Socket(s): -
Cluster(s): 1
Stepping: r0p3
CPU max MHz: 1500.0000
CPU min MHz: 600.0000
BogoMIPS: 108.00
Flags: fp asimd evtstrm crc32 cpuid
Caches (sum of all):
L1d: 128 KiB (4 instances)
L1i: 192 KiB (4 instances)
L2: 1 MiB (1 instance)
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Retbleed: Not affected
Spec rstack overflow: Not affected
Spec store bypass: Vulnerable
Spectre v1: Mitigation; __user pointer sanitization
Spectre v2: Vulnerable
Srbds: Not affected
Tsx async abort: Not affected
1.2 将安装包解压到ubuntu中
根据官方文档介绍,需要将安装包拷贝到opt文件夹中,不可先行解压再拷贝,容易出现权限问题。我们就根据官方介绍直接将安装包拷到“/opt”文件夹下。
cd /opt
wget https://www.zentao.net/dl/zentao/18.10/ZenTaoPMS-18.10-zbox_arm64.tar.gz
tar xvzf ZenTaoPMS-18.10-zbox_arm64.tar.gz
注:有可能会报错,如果报错scp: /opt/ZenTaoPMS-18.10-Linux_zbox_amd64.tar.gz: Permission denied,则需要修改下opt文件夹的权限:
ubuntu@ubuntu:/opt$ sudo chmod 777 /opt
安装过程:
ubuntu@ubuntu:~$ cd /opt
ubuntu@ubuntu:/opt$ sudo wget https://www.zentao.net/dl/zentao/18.10/ZenTaoPMS-18.10-zbox_arm64.tar.gz
--2024-02-16 23:05:05-- https://www.zentao.net/dl/zentao/18.10/ZenTaoPMS-18.10-zbox_arm64.tar.gz
Resolving www.zentao.net (www.zentao.net)... 117.24.11.65, 117.27.241.245
Connecting to www.zentao.net (www.zentao.net)|117.24.11.65|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://dl.zentao.net/zentao/18.10/ZenTaoPMS-18.10-zbox_arm64.tar.gz [following]
--2024-02-16 23:05:05-- https://dl.zentao.net/zentao/18.10/ZenTaoPMS-18.10-zbox_arm64.tar.gz
Resolving dl.zentao.net (dl.zentao.net)... 240e:964:1001:1::1b94:bc29, 180.97.64.41
Connecting to dl.zentao.net (dl.zentao.net)|240e:964:1001:1::1b94:bc29|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 350716227 (334M) [application/x-compressed]
Saving to: ‘ZenTaoPMS-18.10-zbox_arm64.tar.gz’
ZenTaoPMS-18.10-zbox_arm64.ta 100%[=================================================>] 334.47M 10.3MB/s in 35s
2024-02-16 23:05:40 (9.60 MB/s) - ‘ZenTaoPMS-18.10-zbox_arm64.tar.gz’ saved [350716227/350716227]
ubuntu@ubuntu:/opt$ ll
total 342512
drwxrwxrwx 2 root root 4096 Feb 16 23:07 ./
drwxr-xr-x 20 root root 4096 Feb 16 09:52 ../
-rw-r--r-- 1 root root 350716227 Dec 28 14:27 ZenTaoPMS-18.10-zbox_arm64.tar.gz
ubuntu@ubuntu:/opt$ tar xvzf ZenTaoPMS-18.10-zbox_arm64.tar.gz
1.3 启动服务
/opt/zbox/zbox start
运行信息如下:
ubuntu@ubuntu:/opt$ sudo /opt/zbox/zbox start
23:17:41.91 INFO ==> Starting service with Apache port=80, MySQL port=3306...
23:17:41.98 INFO ==> Starting mysql service...
23:17:44.81 INFO ==> Starting apache service...
23:17:45.62 INFO ==> Starting xxd service...
23:17:45.69 INFO ==> MySQL start successfully.
23:17:45.70 INFO ==> Get xxd token from zentao
23:17:46.51 INFO ==> Get xxd token from biz
23:17:47.36 INFO ==> Get xxd token from max
23:17:48.16 INFO ==> Starting roadrunner service...
=============================================================================
Service Port Status Version Comment
=============================================================================
Apache 80 running 2.4.58
PHP - running 7.4.33 prefork
MySQL 3306 running 10.6.15 MariaDB
XXD 11443 11444 running 8.0.1
Roadrunner - running 2023.3.4 @zentao
=============================================================================
Application Version
=============================================================================
zentao 18.10
zentaoep biz8.10
zentaomax max4.10
adminer 4.8.1
可以看到服务默认的Apache的端口是80,Mysql的端口是3306。
1.4 设置开机自启动
自启动命令如下:
/opt/zbox/zbox restart
创建rc.local文件,然后将自启动命令添加到文件中。
ubuntu@ubuntu:/etc$ sudo vim rc.local
添加指令
然后用“wq”保存退出。
二、禅道服务基本操作
2.1 启动,停止,重启,查看服务状态
可通通过以下指令启动,停止,重启,以及查看服务状态:
- 启动所有服务:/opt/zbox/zbox start
- 停止所有服务:/opt/zbox/zbox stop
- 重启所有服务:/opt/zbox/zbox restart
- 通过配置检查服务状态:/opt/zbox/zbox check 【18.10版本支持】
**注:**如果提示权限不够,则需要切换成root权限执行。
ubuntu@ubuntu:/opt$ sudo /opt/zbox/zbox start
23:17:41.91 INFO ==> Starting service with Apache port=80, MySQL port=3306...
23:17:41.98 INFO ==> Starting mysql service...
23:17:44.81 INFO ==> Starting apache service...
23:17:45.62 INFO ==> Starting xxd service...
23:17:45.69 INFO ==> MySQL start successfully.
23:17:45.70 INFO ==> Get xxd token from zentao
23:17:46.51 INFO ==> Get xxd token from biz
23:17:47.36 INFO ==> Get xxd token from max
23:17:48.16 INFO ==> Starting roadrunner service...
=============================================================================
Service Port Status Version Comment
=============================================================================
Apache 80 running 2.4.58
PHP - running 7.4.33 prefork
MySQL 3306 running 10.6.15 MariaDB
XXD 11443 11444 running 8.0.1
Roadrunner - running 2023.3.4 @zentao
=============================================================================
Application Version
=============================================================================
zentao 18.10
zentaoep biz8.10
zentaomax max4.10
adminer 4.8.1
ubuntu@ubuntu:/opt$ sudo /opt/zbox/zbox check
23:18:40.01 INFO ==> Check service status based on .env configuration...
23:18:40.12 WARN ==> Apache is running.
23:18:40.23 WARN ==> MySQL is running.
23:18:40.33 WARN ==> XXD is running.
23:18:40.44 WARN ==> Roadrunner is running.
=============================================================================
Service Port Status Version Comment
=============================================================================
Apache 80 running 2.4.58
PHP - running 7.4.33 prefork
MySQL 3306 running 10.6.15 MariaDB
XXD 11443 11444 running 8.0.1
Roadrunner - running 2023.3.4 @zentao
=============================================================================
Application Version
=============================================================================
zentao 18.10
zentaoep biz8.10
zentaomax max4.10
adminer 4.8.1
2.2 开放端口
修改默认端口然后启动 :
sudo /opt/zbox/zbox --aport 8080 --mport 3307 start
开放apache和mysql的端口。
ubuntu@ubuntu:/etc$ sudo ufw allow 80
Rules updated
Rules updated (v6)
ubuntu@ubuntu:/etc$ sudo ufw version
ufw 0.36.1
Copyright 2008-2021 Canonical Ltd.
ubuntu@ubuntu:/etc$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
ubuntu@ubuntu:/etc$ sudo ufw allow 3306
Rule added
Rule added (v6)
ubuntu@ubuntu:/etc$ sudo ufw status
Status: active
To Action From
-- ------ ----
80 ALLOW Anywhere
3306 ALLOW Anywhere
80 (v6) ALLOW Anywhere (v6)
3306 (v6) ALLOW Anywhere (v6)
ubuntu@ubuntu:/etc$
2.3 访问和登录禅道
启动Apache和MySQL服务后,浏览器直接访问 http://禅道服务器ip:apache端口即可访问和登录禅道。
注意:
如果网页无法访问,请先关闭禅道所在电脑的防火墙和selinux再刷新网页访问试一下。
使用云服务器请注意在安全组中开放apache使用端口
禅道默认管理员帐号是 admin,密码 123456。