linux 安装 测试工具 禅道zentao 社区版18.0 及 apache的httpd.conf配置 引入子配置 多IP 多端口 访问多站点

如果是纯净系统,未安装apache、php、mysql等,建议使用一键安装包安装!!!

https://www.zentao.net/download/zentaopms18.0-81998.html


下面是各软件单独安装:

一、 安装Apache 、安装PHP、安装mysql

https://blog.youkuaiyun.com/torpidcat/article/details/128863891

https://blog.youkuaiyun.com/torpidcat/article/details/110265490

https://blog.youkuaiyun.com/torpidcat/article/details/97791950


二、 下载、解压禅道 :以 开源版18.0 为例

下载及参考等:

https://www.zentao.net/download/zentaopms18.0-81998.html

选择服务器安装的php对应的版本包:上面安装的php是7.1 所以这里下载7.1对应的包

下载安装包 ZenTaoPMS.18.0.php7.1.zip 并上传到服务器 /var/www/html/ 下 并解压:

解压到Apache的 /var/www/html目录下:解压后的禅道项目名称为 zentaopms

unzip ZenTaoPMS.18.0.php7.1.zip -d /var/www/html/
或者
unzip ZenTaoPMS.18.0.php7.1.zip

解压后 顺手把zip包删掉 


三、 修改Apache配置 指定端口对应的站点/项目:两种方式 一种是增加一个端口,单独给禅道用,另一种是直接使用Apache默认的80端口

方式1:新增一个端口8100,单独给禅道用( 避免占用80端口)

查看端口是否可用,可用,则在防火墙添加这个端口:

查看端口是否占用 无内容输出,表示未被占用

lsof -i tcp:8100

查看防火墙是否开通端口 未找到 则表示未开通

firewall-cmd --permanent --list-port

防火墙开通端口 并重载防火墙 使之生效

firewall-cmd --permanent --zone=public --add-port=8100/tcp
firewall-cmd --reload

一般 Apache的 /etc/httpd/conf/httpd.conf 文件最后一行 ,IncludeOptional 后默认是引入 conf.d目录下的所有.conf文件,如果能搜到这一行 则不用改动,如果搜不到,就追加这一行代码 并保存:IncludeOptional对应的值为 /etc/httpd/conf.d/*.conf ,如果值不同,则以文件内的值为准

httpd.conf 文件 默认配置:

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'
# with ServerRoot set to '/www' will be interpreted by the
# server as '/www/log/access_log', where as '/log/access_log' will be
# interpreted as '/log/access_log'.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "/etc/httpd"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
Include conf.modules.d/*.conf

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User apache
Group apache

# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:8101

#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other 
# <Directory> blocks below.
#
<Directory />
    AllowOverride none
    Require all denied
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that y
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值