新聞中心
介紹
Cerb是一個工作流和電子郵件自動化系統(tǒng),適用于大型團(tuán)隊。 Cerb是用php編寫的,它使用MySQL或者M(jìn)ariaDB作為數(shù)據(jù)庫系統(tǒng)。

其主要特點是:
- 大批量電子郵件管理
- 共享郵箱
- 用于實時監(jiān)控和目標(biāo)跟蹤的儀表板
- 通知
- 任務(wù)管理
- 移動功能
- 基于REST的API
Cerb在15年以上社區(qū)反饋的基礎(chǔ)上發(fā)展。 雖然源代碼在GitHub上也可用,但該軟件是以商業(yè)開源許可證分發(fā)的,名為Devblocks Public License(DPL) 。 應(yīng)該注意的是,許可證是基于能夠同時登錄的最大工作人員數(shù)量。
服務(wù)器配置
在以下步驟中,我們將介紹如何安裝和配置Cerb:apache,MariaDB和PHP所需的工具。
首先,我們來安裝EPEL:
# yum -y install epel-release
安裝 Apache
現(xiàn)在,我們將使用yum安裝Apache Web Server:
# yum install -y httpd
并啟用它,在啟動時使用systemd啟動:
# systemctl start httpd # systemctl enable httpd
檢查其狀態(tài):
# systemctl status httpd httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: active (running)
安裝 PHP
如引言中所述,Cerb是用PHP編寫的。 更具體地說,我們需要具有以下擴(kuò)展名的PHP 5.5(或更高版本):
- curl
- dom
- gd
- imap
- pcre
- session
- simplexml
- spl
- xml
- json
- mailparse
- mbstring
- mysqli
- openssl
# rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
啟用存儲庫,如下所示:
# yum-config-manager --enable remi-php71
現(xiàn)在,可以使用上面提到的所有擴(kuò)展來安裝PHP
# yum install -y php php-curl php-mysqli php-openssl php-dom php-gd php-json php-pcre php-imap php-mbstring php-session php-simplexml php-xml php-spl php-mailparse
我們需要更改php.ini中的一些設(shè)置。 特別是file_uploads,memory_limit,upload_max_filesize和post_max_size行,如下所示:
file_uploads = On upload_max_filesize = 64M memory_limit = 256M post_max_size = 64M upload_tmp_dir = /tmp
保存這些更改,退出并重新啟動Apache:
# systemctl restart httpd
安裝 MariaDB
現(xiàn)在,我們將使用yum安裝MariaDB:
# yum install -y mariadb mariadb-server
啟動MariaDB并配置root帳戶:
# systemctl start mariadb # mysql_secure_installation
在這個過程中,你會被問到幾個問題,回答如下:
New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! Remove anonymous users? [Y/n] ... Success! Disallow root login remotely? [Y/n] ... Success! Remove test database and access to it? [Y/n] - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reload privilege tables now? [Y/n] ... Success! Cleaning up...
全做完了! 如果您已完成上述所有步驟,您的MariaDB安裝應(yīng)該是安全的。
感謝您使用MariaDB!
創(chuàng)建一個新的數(shù)據(jù)庫
接下來,我們將為Verb創(chuàng)建一個數(shù)據(jù)庫。 首先,登錄到MariaDB shell:
# mysql -u root -p
創(chuàng)建數(shù)據(jù)庫和新用戶:
MariaDB [(none)]> CREATE DATABASE cerbdb; MariaDB [(none)]> CREATE USER 'cerbusr'@'localhost' IDENTIFIED BY 'usr_strong_password'; MariaDB [(none)]> GRANT ALL PRIVILEGES ON cerbdb.* TO 'cerb'@'localhost' IDENTIFIED BY 'usr_strong_password'; MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> EXIT;
Cerb 安裝
下一步是下載并安裝Cerb。 您將要切換到服務(wù)器中的Web根目錄:
# cd /var/www/html
使用git 克隆Cerb資源庫
# git clone git://github.com/wgm/cerb.git cerb
確保Cerb的文件由Web服務(wù)器的用戶和組擁有,以Apache作為Web服務(wù)器,它們都是www-data。
# cd cerb # chown-R www-data:www-data . #chmod -R u+w framework.config.php storage
framework.config.php是配置文件,而storage/是存儲第三方插件,附件,臨時文件和高速緩存的位置。
現(xiàn)在,通過系統(tǒng)防火墻允許端口80上的HTTP流量:
# firewall-cmd --zone=public --permanent --add-service=http# firewall-cmd --reload
最后一步是打開 http://localhost/cerb 并完成Cerb的安裝。 一旦完成,Cerb就可以準(zhǔn)備使用了!
總結(jié)
網(wǎng)站欄目:CentOS7上使用Apache作為Web服務(wù)器安裝Cerb
分享路徑:http://m.fisionsoft.com.cn/article/dhsspic.html


咨詢
建站咨詢
