首页 > 系统相关 >How to install zammad on ubuntu18

How to install zammad on ubuntu18

时间:2023-07-13 14:24:25浏览次数:38  
标签:https ubuntu18 start apt zammad How elasticsearch install


https://docs.zammad.org/en/latest/install/elasticsearch.html
https://docs.zammad.org/en/latest/install/package.html


第1步:更新系統
apt update -y && apt full-upgrade -y


第2步:安裝包依賴項
apt install wget apt-transport-https gnupg2 libimlib2 libimlib2-dev -y

第3步:必須使用正確的區域設置。
apt install locales
locale-gen en_US.UTF-8
echo "LANG=en_US.UTF-8" | tee /etc/default/locale

第4步:安裝 Elasticsearch (Way 1 Offical)
apt install apt-transport-https sudo wget curl gnupg

echo "deb [signed-by=/etc/apt/trusted.gpg.d/elasticsearch.gpg] https://artifacts.elastic.co/packages/7.x/apt stable main"| tee -a /etc/apt/sources.list.d/elastic-7.x.list > /dev/null
 
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | gpg --dearmor | tee /etc/apt/trusted.gpg.d/elasticsearch.gpg> /dev/null
 
apt update
apt install elasticsearch -y

# 確保默認啟用elasticsearch並啟動它。
systemctl start elasticsearch
systemctl enable elasticsearch
systemctl status elasticsearch
# 安裝 Elasticsearch 及其附件插件
/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
systemctl restart elasticsearch
systemctl status elasticsearch

第5步:安裝 Apache 網絡服務器:
apt install apache2 -y
#啟用 Apache 標頭:
a2enmod headers
systemctl stop apache2
systemctl start  apache2
systemctl enable  apache2
systemctl status  apache2


第6步:安裝 Zammad
# 包依賴項
apt install curl apt-transport-https gnupg -y

# 安裝存儲庫密鑰:
wget -qO- https://dl.packager.io/srv/zammad/zammad/key | apt-key add -

# 將存儲庫添加到Ubuntu:
# Ubuntu 18.04 :
echo "deb https://dl.packager.io/srv/deb/zammad/zammad/stable/ubuntu 18.04 main" | tee /etc/apt/sources.list.d/zammad.list

# 烏班圖20.04:
# echo "deb https://dl.packager.io/srv/deb/zammad/zammad/stable/ubuntu 20.04 main" | tee /etc/apt/sources.list.d/zammad.list

apt update
apt install zammad -y

# 啟動 Zammad 服務並使其在系統啟動時啟動:
systemctl start zammad
systemctl enable zammad
systemctl status zammad


第7步:Elasticsearch連接 Zammad :
zammad run rails r "Setting.set('es_url', 'http://localhost:9200')"

# 建立搜索索引:
zammad run rake zammad:searchindex:rebuild


可選設置
# HTTP Basic
zammad run rails r "Setting.set('es_user', '<username>')"
zammad run rails r "Setting.set('es_password', '<password>')"


第8步:防火牆打開 http 和 https 端口:
ufw allow 80
ufw allow 443
ufw reload

第9步:禁用 Apache 默認虛擬主機文件:
a2dissite 000-default.conf

#重新啟動 apache2 Web 服務器:
systemctl restart apache2

如果您遇到錯誤“ apachectl[2095]:無效命令'RequestHeader',可能拼寫錯誤或由服務器配置中未包含的模塊定義 ”,請啟用apache標頭:

a2enmod headers
systemctl stop apache2
systemctl start  apache2

第10步::訪問 Zammad Web 界面
http://your_server_ip_or_hostname


Completed zammad         Kevin 2023-07-13


++++ Other ++++

管理 Zammad 的服務

一般來說,Zammad 使用三種服務 - 這些服務可以(重新)啟動和停止 與家長 zammad。

$ # Zammad service to start all services at once
$ systemctl (status|start|stop|restart) zammad

$ # Zammads internal puma server (relevant for displaying the web app)
$ systemctl (status|start|stop|restart) zammad-web

$ # Zammads background worker - relevant for all delayed- and background jobs
$ systemctl (status|start|stop|restart) zammad-worker

$ # Zammads websocket server for session related information
$ systemctl (status|start|stop|restart) zammad-websocket


防火牆和 SELinux

這些步驟的某些部分可能不適用於您,請隨意跳過它們!
SELinux

$ # Allow nginx or apache to access public files of Zammad and communicate
$ chcon -Rv --type=httpd_sys_content_t /opt/zammad/public/
$ setsebool httpd_can_network_connect on -P
$ semanage fcontext -a -t httpd_sys_content_t /opt/zammad/public/
$ restorecon -Rv /opt/zammad/public/
$ chmod -R a+r /opt/zammad/public/

标签:https,ubuntu18,start,apt,zammad,How,elasticsearch,install
From: https://www.cnblogs.com/k98091518/p/17550314.html

相关文章

  • Oracle EBS - How Are Shipping Dates Calculated? (Doc ID 1076040.1)
    OracleShippingExecution-Version11.5.10.2to12.2.10[Release11.5.10to12.2]Informationinthisdocumentappliestoanyplatform.<br* ***GOALHowdoesE-BusinessSuite(EBS)derivetheMaterialTransactionDate?WhatisthepurposeoftheIniti......
  • linux-chown-解锁文件夹状态
    gitclone之后的仓库文件夹状态显示带锁,表示当前用户无权限执行:sudochownuserNamefileName......
  • chown
    chown用来变更文件或目录的拥有者或所属群组补充说明chown命令改变某个文件或目录的所有者和所属的组,该命令可以向某个用户授权,使该用户变成指定文件的所有者或者改变文件所属的组。用户可以是用户或者是用户D,用户组可以是组名或组id。文件名可以使由空格分开的文件列表,在文件......
  • how与what的用法和区别
    感叹句指的是具有强烈的情感色彩、表达出较强的语气情感比如喜悦、惊讶、愤怒等的句子。在英语中,感叹句一般由“how”与“what”引导。"what"和"how"与所修饰的词置于句首,其它部分用陈述句语序。一、how与what的用法:1、由"what"引导的感叹句:"what"意为"多么"用作定语,修饰名词(被......
  • [ICDE 2022]How Learning Can Help Complex Cyclic Join Decomposition
    [ICDE2022]HowLearningCanHelpComplexCyclicJoinDecomposition总结主要贡献是把子图匹配策略的cost的判断改为了GNN实现的预测(写得挺模棱两可的)动机解决子图匹配的一个重要问题是解决复杂循环连接查询。文章除了在工程方面提供了GUI,主要的贡献是设计了合理的框架,使用A......
  • UE5 Set Show Mouse Cursor进入游戏显示鼠标
    前言默认情况下进入游戏不点击情况下,鼠标是默认不显示的。为了显示鼠标,可以调用SetShowMouseCursor节点操作默认情况下如果勾选ContextSensitive(情景关联),是无法搜索到相关函数,必须去掉勾选,如下......
  • ctfshow 菜狗杯--You and me
    1、下载题目附件    进行解压 解压后发现两张图片,两张一样的图片,但是命名不同,我们可以想到这是一道盲水印题目。 2、解题步骤这道题目需要用到python分离盲水印的脚本,推荐大家去GitHub上去下载源码源码地址:https://github.com/chishaxie/BlindWaterMark#blindwa......
  • git show 显示 commit 提交说明信息
    一、只显示某个commit的内容示例:1.有多次提交记录。2.只显示8dd428这个commit的loggitshow8dd4283.加上--name-only参数,只显示文件名,不显示对比差异信息gitshow--name-only8dd4284.加上--data设置日期显示方式。--date更详细用法-->git--d......
  • ubuntu18.04 搭建docker 环境
    1.安装docker环境1.1安装docker容器sudoaptinstalldocker.iosudosystemctlstatusdocke#获取docker状态sudosystemctlstartdocker#启动dockersudosystemctlstopdocker#停止docker1.2将添加docker用户组(重启生效)sudogroupadddockersudogpasswd......
  • How To Fetch API Data With React
    Fetchingdatafromthird-partyRESTfulAPIsinReactapplicationisacommontaskwhencreatingwebapplication.ThistaskcanbesolvedeasilybyusingthestandardJavaScriptFetchAPIinyourReactapplication.TheFetchAPIisanewstandardtomakes......