國產禪(zen)道(tao)-部署

禪道(zentao)

​ 禪道是第一款國產的優秀開源項目管理軟件。先進的管理思想,合理的軟件架構,簡潔實效的操作,優雅的代碼實現,靈活的擴展機制,強大而易用的api調用機制,多語言支持,多風格支持,搜索功能,統計功能等,利用禪道可以很好的進行項目的管理。

1、下載 zentao 源碼包

wget http://dl.cnezsoft.com/zentao/9.8.2/ZenTaoPMS.9.8.2.zbox_64.tar.gz
  • 解壓到 /usr/src 目錄下; 不需要編譯安裝
tar -zxf ZenTaoPMS.9.8.2.zbox_64.tar.gz -C /opt

2. 配置 Zentao

  • 爲了不佔用Server上默認的80、3306端口,我們修改禪道自帶的apache、mysql端口。
  • 修改 禪道自帶Apache的端口
/opt/zbox/zbox -ap 8888
  • 修改 禪道自帶MySQL 端口
/opt/zbox/zbox -mp 8889
  • 配置放行規則
[root@localhost ~]# firewall-cmd --add-port=8888/tcp --permanent
success
[root@localhost ~]# firewall-cmd --add-port=8888/udp --permanent
success
[root@localhost ~]# firewall-cmd --add-port=8889/tcp --permanent
success
[root@localhost ~]# firewall-cmd --add-port=8889/udp --permanent
success
[root@localhost ~]# firewall-cmd --reload
success

3. 啓動 Zentao

使用/opt/zbox/zbox start 啓動Zentao

輸出結果:

[root@localhost ~]# /opt/zbox/zbox start
Start Apache success
Start Mysql success
  • 查看 8888端口是否起來
[root@localhost ~]# netstat -anpt | grep 8888
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN      2041/httpd  

其他操作:

start	啓動
stop	停止
restart	重啓
status	狀態
-h		幫助信息

4. 創建數據庫賬號

[root@localhost ~]# /opt/zbox/auth/adduser.sh 
This tool is used to add user to access adminer
Account: admin
Password: Adding password for user admin

PS:數據庫的用戶名:root,密碼爲空。數據庫管理用的是admin,但是爲了安全,訪問admin的時候需要身份驗證,需要運行腳本添加賬戶

  • 命令行登錄禪道自帶的數據庫
[root@localhost ~]# /opt/zbox/bin/mysql -u root -P 8889 -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.5.22-log Source distribution

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

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

MySQL [(none)]> 

5、通過 8888端口訪問

http://[Host-ip]:8888/zentao
  • 選擇所使用的版本

tOdRPK.png

  • 輸入默認的用戶與密碼
  • User:admin
  • Passwd: 123456

[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-7ewzM51y-1591949948716)(https://s1.ax1x.com/2020/06/12/tOdcUx.png)]

  • 登錄成功之後,提示需要更改默認密碼

tOw9Zn.png

  • 更改密碼之後,會有提示默認提示

tOwUeA.png

[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-sSwFkAkR-1591949948725)(https://s1.ax1x.com/2020/06/12/tOrN1f.png)]

tps://imgchr.com/i/tOw9Zn)

  • 更改密碼之後,會有提示默認提示

[外鏈圖片轉存中…(img-ntezNrkR-1591949948722)]

[外鏈圖片轉存中…(img-sSwFkAkR-1591949948725)]

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章