在CentOS 7 / CentOS 8上安装EGroupware CE

这是续集。
请从下面的链接下载并以PDF格式支持本文。

以PDF格式下载指南

关门
这是续集。

这是续集。
这是续集。

EGroupware是用PHP编写的基于Web的群件服务器。 EGroupware是为企业,研究机构,俱乐部和其他相关用例创建的开源软件。本指南描述了如何在CentOS 7 / CentOS 8 Linux系统上安装EGroupware Community Edition。

Ubuntu安装:在Ubuntu 18.04 Linux上安装EGroupware CE

EGroupware基于PHP,JS,HTML,并且该软件根据GNU通用公共许可证(GPL)版本2的条款进行分发。该软件通过本机Web界面使用,并允许平台独立访问或使用CalDAV / CardDAV或ActiveSync协议支持的客户端。

EGroupware功能

  • 档案管理员 –与外部合作伙伴一起提供更细致的权限管理,归档选项以及对文件的读取访问权限,从而使其更轻松。
  • 行事历 –在线安排会议,假期和小组约会。
  • 网站管理 –维护整个平台所需的许多工具和设置
  • 邮件客户端 –集成的电子邮件客户端与日历和信息日志等其他模块完全连接。
  • 任务和项目 –有效管理整个团队的信息和职责。

如果您不知道版本, EGroupware定价页面 有关功能比较的更多信息。

在CentOS 8 / CentOS 7 Linux上安装EGroupware

您可以直接获取二进制软件包,并从二进制软件包在CentOS 7 / RHEL 7上安装EGroupware。另一种选择是在CentOS 7 / RHEL 7上手动添加EGroupware存储库并从该存储库安装EGroupware。我更喜欢后者,因为它更容易更新。

步骤1:添加EGroupware存储库

通过在终端中执行以下命令来添加存储库。

--- CentOS 7 ---
sudo yum -y install wget
sudo wget https://download.opensuse.org/repositories/server:eGroupWare/CentOS_7/server:eGroupWare.repo -O  /etc/yum.repos.d/eGroupWare.repo

--- CentOS 8 ---
sudo yum -y install wget
sudo wget https://download.opensuse.org/repositories/server:eGroupWare/CentOS_8/server:eGroupWare.repo -O  /etc/yum.repos.d/eGroupWare.repo

您可以使用cat命令来检查存储库文件的内容。

$ cat /etc/yum.repos.d/eGroupWare.repo
[server_eGroupWare]
name=EGroupware (CentOS_7)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_7/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_7/repodata/repomd.xml.key
enabled=1

步骤2:安装MariaDB数据库服务器

添加一个MariaDB存储库。

CentOS 7:

cat <

CentOS 8:

sudo tee /etc/yum.repos.d/MariaDB.repo<

安装并启动MariaDB服务。

CentOS 7:

sudo yum -y install MariaDB-server MariaDB-client
sudo systemctl enable --now mariadb

CentOS的 8:

sudo dnf install boost-program-options
sudo dnf install MariaDB-server MariaDB-client --disablerepo=AppStream 
sudo systemctl enable --now mariadb

步骤3:在CentOS 8 / CentOS 7上安装EGroupware

对于CentOS 8,从Docker CE存储库中手动安装Docker。

仅CentOS 8:

sudo curl  https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
sudo dnf -y  install docker-ce --nobest
sudo systemctl enable --now docker
sudo usermod -aG docker $USER

RHEL / CentOS 8使用nftable而不是iptables,而iptables不适用于当前的docker-ce。您需要编辑以下内容以将firewalld配置为使用iptables:

$ sudo vi  /etc/firewalld/firewalld.conf
#FirewallBackend=nftables
FirewallBackend=iptables

$ sudo systemctl restart firewalld

添加存储库后,在CentOS 7 / RHEL 7 Linux计算机上安装EGroupware。

sudo setenforce 0
sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
sudo yum install egroupware-docker egroupware-collabora-key egroupware-rocketchat

接受提示以开始安装 ÿ 关键

Dependencies Resolved

=======================================================================================================================================================
 Package                                           Arch              Version                                        Repository                    Size
=======================================================================================================================================================
Installing:
 egroupware-docker                                 noarch            19.1.20200409-1.1                              server_eGroupWare            296 k
Installing for dependencies:
 PyYAML                                            x86_64            3.10-11.el7                                    base                         153 k
 apr                                               x86_64            1.4.8-5.el7                                    base                         103 k
 apr-util                                          x86_64            1.5.2-6.el7                                    base                          92 k
 atomic-registries                                 x86_64            1:1.22.1-29.gitb507039.el7                     extras                        35 k
 audit-libs-python                                 x86_64            2.8.5-4.el7                                    base                          76 k
 centos-logos                                      noarch            70.0.6-3.el7.centos                            base                          21 M
 checkpolicy                                       x86_64            2.5-8.el7                                      base                         295 k
 container-selinux                                 noarch            2:2.107-3.el7                                  extras                        39 k
 container-storage-setup                           noarch            0.11.0-2.git5eaf76c.el7                        extras                        35 k
 containers-common                                 x86_64            1:0.1.37-3.el7.centos                          extras                        21 k
 device-mapper-event                               x86_64            7:1.02.158-2.el7_7.2                           updates                      190 k
 device-mapper-event-libs                          x86_64            7:1.02.158-2.el7_7.2                           updates                      189 k
 device-mapper-persistent-data                     x86_64            0.8.5-1.el7                                    base                         423 k
 docker                                            x86_64            2:1.13.1-109.gitcccb291.el7.centos             extras                        18 M
 docker-client                                     x86_64            2:1.13.1-109.gitcccb291.el7.centos             extras                       3.9 M
 docker-common                                     x86_64            2:1.13.1-109.gitcccb291.el7.centos             extras                        98 k
 docker-compose                                    x86_64            1.24.1-6.1                                     server_eGroupWare            4.0 k
 httpd                                             x86_64            2.4.6-90.el7.centos                            base                         2.7 M
 httpd-tools                                       x86_64            2.4.6-90.el7.centos                            base                          91 k
 libaio                                            x86_64            0.3.109-13.el7                                 base                          24 k
 libcgroup                                         x86_64            0.41-21.el7                                    base                          66 k
 libsemanage-python                                x86_64            2.5-14.el7                                     base                         113 k
 libyaml                                           x86_64            0.1.4-11.el7_0                                 base                          55 k
 lvm2                                              x86_64            7:2.02.185-2.el7_7.2                           updates                      1.3 M
 lvm2-libs                                         x86_64            7:2.02.185-2.el7_7.2                           updates                      1.1 M
 mailcap                                           noarch            2.1.41-2.el7                                   base                          31 k
 mod_ssl                                           x86_64            1:2.4.6-90.el7.centos                          base                         112 k
 oci-register-machine                              x86_64            1:0-6.git2b44233.el7                           extras                       1.1 M
 oci-systemd-hook                                  x86_64            1:0.2.0-1.git05e6923.el7_6                     extras                        34 k
 oci-umount                                        x86_64            2:2.5-3.el7                                    extras                        33 k
 policycoreutils-python                            x86_64            2.5-33.el7                                     base                         457 k
 python-IPy                                        noarch            0.75-6.el7                                     base                          32 k
 python-backports                                  x86_64            1.0-8.el7                                      base                         5.8 k
 python-backports-ssl_match_hostname               noarch            3.5.0.1-1.el7                                  base                          13 k
 python-ipaddress                                  noarch            1.0.16-2.el7                                   base                          34 k
 python-pytoml                                     noarch            0.1.14-1.git7dea353.el7                        extras                        18 k
 python-setuptools                                 noarch            0.9.8-7.el7                                    base                         397 k
 setools-libs                                      x86_64            3.3.8-4.el7                                    base                         620 k
 subscription-manager-rhsm-certificates            x86_64            1.24.13-4.el7.centos                           updates                      228 k
 yajl                                              x86_64            2.0.4-4.el7                                    base                          39 k
Updating for dependencies:
 audit                                             x86_64            2.8.5-4.el7                                    base                         256 k
 audit-libs                                        x86_64            2.8.5-4.el7                                    base                         102 k
 device-mapper                                     x86_64            7:1.02.158-2.el7_7.2                           updates                      294 k
 device-mapper-libs                                x86_64            7:1.02.158-2.el7_7.2                           updates                      322 k
 policycoreutils                                   x86_64            2.5-33.el7                                     base                         916 k

Transaction Summary
=======================================================================================================================================================
Install  1 Package  (+40 Dependent packages)
Upgrade             (  5 Dependent packages)

Total download size: 55 M
Is this ok [y/d/N]: y

您应该看到容器正在运行:

....
Digest: sha256:8616a861a5c769b7fe633625a4d5a4f76ae5a54d1d04874dcef827644c136684
Status: Downloaded newer image for docker.io/docker/compose:1.24.1
Creating network "egroupware-rocketchat_default" with the default driver
Creating volume "egroupware-rocketchat_mongo" with default driver
Pulling mongo (mongo:4.0)...
Trying to pull repository docker.io/library/mongo ... 
4.0: Pulling from docker.io/library/mongo
Digest: sha256:53fcee17f21474d55dcd62e7acaa011be69a548f26cb643e06b39966159e7269
Status: Downloaded newer image for docker.io/mongo:4.0
Pulling rocketchat (rocketchat/rocket.chat:latest)...
Trying to pull repository docker.io/rocketchat/rocket.chat ... 
latest: Pulling from docker.io/rocketchat/rocket.chat
Digest: sha256:6808869e4751d95273d468da5efd1262a01f3686bf8d2e8a6603dc6eb995295b
Status: Downloaded newer image for docker.io/rocketchat/rocket.chat:latest
Creating rocketchat-mongo ... done
Creating egroupware-rocketchat_mongo-init-replica_1 ... done
Creating rocketchat                                 ... done
  Installing : egroupware-collabora-key-1.3.20190911-4.1.noarch        
.....
Status: Downloaded newer image for docker.io/containrrr/watchtower:latest
Creating egroupware            ... done
Creating egroupware-watchtower ... done
Creating egroupware-nginx      ... done
....

检查哪个容器正在运行。

$ sudo docker ps
CONTAINER ID        IMAGE                                     COMMAND                  CREATED             STATUS              PORTS                      NAMES
db333abf8c4c        nginx:stable-alpine                       "nginx -g 'daemon ..."   5 minutes ago       Up 5 minutes        127.0.0.1:8080->80/tcp     egroupware-nginx
04fd31decde5        egroupware/egroupware:latest              "/entrypoint.sh ph..."   5 minutes ago       Up 5 minutes        9000/tcp                   egroupware
06db3adb5b2f        containrrr/watchtower                     "/watchtower --sch..."   5 minutes ago       Up 5 minutes                                   egroupware-watchtower
177424aefb2a        quay.io/egroupware/collabora-key:stable   "/bin/sh -c 'bash ..."   6 minutes ago       Up 5 minutes        127.0.0.1:9980->9980/tcp   collabora-key
c2da091e13f0        rocketchat/rocket.chat:latest             "bash -c 'for i in..."   6 minutes ago       Up 6 minutes        127.0.0.1:3000->3000/tcp   rocketchat
8599b69cde22        mongo:4.0                                 "docker-entrypoint..."   6 minutes ago       Up 6 minutes        27017/tcp                  rocketchat-mongo

步骤4:访问EGroupware CE仪表板

现在容器已启动,请转到Go http://example.org/egroupware页面,并使用您的凭据登录到仪表板。

在CentOS 7 / CentOS 8上安装EGroupware之后,获取登录凭据。

$ sudo  cat /var/lib/egroupware/egroupware-docker-install.log 
Fix APC(u) configuration, set apc.shm_size=128M in /etc/php/7.3/cli/conf.d/20-apcu.ini
Timezones updated to version 2.2019c (546 records updated).
Timezones aliases updated to version 2020-04-09 09:54:19 (87 records updated).
You might need to clear the cache for changes to be visiable: Admin >> Clear cache!

EGroupware successful installed
===============================

Please note the following user names and passwords:

Setup username:      admin
      password:      EEaw?Tyws3MIJz-I

EGroupware username: sysop
           password: LEzs;itjm(HPxLgH

You can log into EGroupware by pointing your browser to http://localhost/egroupware/
Please replace localhost with the appropriate hostname, if you connect remote.

*** Database has no root password set, please fix that immediatly: mysqladmin -u root password NEWPASSWORD

然后在登录页面上使用它。

使用Docker compose运行输出中显示的凭据登录。

在CentOS 7 / CentOS 8上安装EGroupware CE

您可以开始配置EGroupware和配置第三方集成。

在CentOS 7 / CentOS 8上安装EGroupware CE

您可以通过以下网址访问设置页面://example.org/egroupware/setup。

在CentOS 7 / CentOS 8上安装EGroupware CE

步骤5:停止Docker服务

您可以随时通过更改到docker compose目录并运行以下命令来停止容器。

# cd /etc/egroupware-docker/
# docker-compose stop
Stopping egroupware-nginx      ... done
Stopping egroupware            ... done
Stopping egroupware-watchtower ... done

结论

EGroupware的主要功能使用户可以管理:

  • 联络方式
  • 预约时间
  • 该项目
  • 待办事项清单
  • 文件和电子邮件
  • 等等

这是续集。
请从下面的链接下载并以PDF格式支持本文。

以PDF格式下载指南

关门
这是续集。

这是续集。
这是续集。

Sidebar