禅道环境搭建
1,禅道官方下载页 https://www.zentao.net/download/80178.html
12,下载后将文件传至远程服务器,并解压;
解压命令; sudo tar -zxvf ZenTaoPMS.7.3.stable.zbox_32.tar.gz -C /opt
需要根据所下载的文件名替换命令中相应部分;
3,安装并配置nginx;
参考:https://www.jianshu.com/p/39ed41ea935d ;
4,配置nginx
conf.d文件夹下新建zentao.conf,内容如下:
server {
listen 80 ;
listen [::]:80 ;
server_name xxxx;
root /opt/zbox/app/zentao/www;
charset utf-8;
access_log /etc/nginx/logs/access.log ;
error_log /etc/nginx/logs/error.log ;
location /
{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://xxxx:xxx/;
}
}
5,修改zentao 请求方式 requestType 为GET
vi /opt/zbox/app/zentao/config/config.php
6,打完收工