离线部署OTRS
OTRS5離線部署
參考地址:https://doc.otrs.org.cn/doc/manual/admin/stable/zh_CN/html/manual-installation-of-otrs.html
從源碼安裝OTRS
otrs
解包這個檔案文件(例如使用tar)到/opt目錄,并將目錄otrs-x.x.x 重命名為otrs(腳本如下)
tar xzf /tmp/otrs-x.x.x.tar.gz
mv otrs-x.x.x /opt/otrs
使用perl /opt/otrs/bin/otrs.CheckModules.pl命令查看依賴包的安裝情況。示例:
其中,提示optional的包可以不安裝,紅字提示的包需要安裝。
如果缺少對應(yīng)的包有一下兩種方法(選一種即可):
從網(wǎng)站https://pkgs.org中搜索對應(yīng)的rpm包,使用rpm -ivh XXXX.XXXX.rpm命令安裝,安裝過程中如果提示有依賴包未安裝,就繼續(xù)下載依賴包并安裝,直到安裝完成。
從網(wǎng)站https://metacpan.org中搜索對應(yīng)的.gz包,使用
tar -zxvf XXXX.gz解壓
cd XXXX進(jìn)入目錄
perl MakeFile.PL編譯
make
make test
make install
依次執(zhí)行命令完成安裝。
創(chuàng)建OTRS用戶
useradd -d /opt/otrs -c ‘OTRS user’ otrs
添加組
usermod -G apache otrs
Red Hat/CentOS/Fedora使用apache, SUSE使用www, Debian/Ubuntu使用www
激活默認(rèn)配置文件
OTRS自帶了兩個配置文件:OTRS_HOME/Kernel/.dist和OTRS_HOME/Kernel/Config/.dist。你需要將它們復(fù)制為不帶.dist擴(kuò)展名的文件名來激活它們
cp Kernel/Config.pm.dist Kernel/Config.pm
檢查模塊是否都安裝
perl -cw /opt/otrs/bin/cgi-bin/index.pl
perl -cw /opt/otrs/bin/cgi-bin/customer.pl
perl -cw /opt/otrs/bin/otrs.Console.pl
三條指令都提示OK表示所有必須模塊都已安裝,否則繼續(xù)安裝。
安裝 httpd和mod_perl模塊
按照網(wǎng)上資料安裝(待補(bǔ)充)
文件權(quán)限
參考文檔中寫的有錯,以下邊指令為準(zhǔn):
/opt/otrs/bin/otrs.SetPermissions.pl --otrs-user=otrs --web-group=apache
重啟http服務(wù)
systemctl restart httpd.service
mysql
參考網(wǎng)上資料,安裝mysql,并設(shè)置root賬戶密碼
配置
訪問 http://IP/otrs/installer.pl
參考https://doc.otrs.org.cn/doc/manual/admin/stable/zh_CN/html/web-installer.html鏈接進(jìn)行配置。
總結(jié)
- 上一篇: Simditor 富文本编辑器的使用
- 下一篇: 智慧工业:RFID智能资产管理,RFID