centos安装禅道的步骤

1、下载 XAMPP 套件: https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/stats/timeline  下载的文件是 xampp-linux-x64-7.0.6-0-installer.run

2、 执行 ./xampp-linux-x64-7.0.6-0-installer.run

3、 启动 /opt/lampp/lampp start

4、 下载禅道 ZenTaoPMS.8.0.stable.zip ,解压后,把zentaopms放到 /opt/lampp/htdocs 目录:    /opt/lampp/htdocs/zentaopms

5、 打开安装页面: http://IP/zentaopms/www/install.php 。安装日志在 : /opt/lampp/htdocs/zentaopms/tmp/log 。

6、 安装完成后,访问: http://IP:PORT/zentaopms/www/index.php

7、 修改禅道访问的端口和文件目录: vi /opt/lampp/etc/httpd.conf

Listen 9011

DocumentRoot "/mnt/software"
<Directory "/mnt/software">

 

备注:

1、页面白屏,日志报错:

17:24:48 Undefined property: config::$debug in /opt/lampp/htdocs/zentaopms/module/common/view/header.lite.html.php on line 20 when visiting /zentaopms/www/install.php

17:25:02 Uncaught PDOException: SQLSTATE[08S01]: Communication link failure: 1153 Got a packet bigger than 'max_allowed_packet' bytes in /opt/lampp/htdocs/zentaopms/module/install/model.php:379

解决办法:

连接mysql, 执行: set global net_buffer_length=1000000;  set global max_allowed_packet=1000000000;

mysql> set global net_buffer_length=1000000;
Query OK, 0 rows affected, 2 warnings (0.00 sec)

mysql> set global max_allowed_packet=1000000000;
Query OK, 0 rows affected, 1 warning (0.00 sec)

 

数据库配置文件:/安装目录/zentaopms/config/my.php ,如果页面白屏,可能是数据库连不上,检查该文件配置。

 

2、修改centos 的防火墙配置,打开9011 端口:

vi /etc/sysconfig/iptables

[root@localhost etc]# more /etc/sysconfig/iptables
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:syn-flood - [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 9011 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
-A INPUT -p icmp -m limit --limit 100/sec --limit-burst 100 -j ACCEPT
-A INPUT -p icmp -m limit --limit 1/s --limit-burst 10 -j ACCEPT
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j syn-flood
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A syn-flood -p tcp -m limit --limit 3/sec --limit-burst 6 -j RETURN
-A syn-flood -j REJECT --reject-with icmp-port-unreachable
COMMIT

 

posted @ 2016-05-30 18:24  zhoudingzhao  阅读(1904)  评论(0编辑  收藏  举报