OTRSシステムのインストール


otrsインストール構成
一、otrsインストール
1.perl mysql-server mysql-devel httpd gcc make perl cpanをインストールしてファイアウォールを閉じ、selinux
yum install perl mysql-server mysql-devel httpd
2.mysqlアカウントのパスワードを設定し、otrsユーザーを作成し、otrsデータベースを作成し、otrsユーザーにotrsデータベースに対するすべての権限を与える
(1)mysqladmin -u root -p password 123456
(2)create database otrs character set utf8;
(3)insert into mysql.user(Host,User,Password) values('localhost','otrs',password('123456'));
(4)grant all on *.* to 'otrs'@'%' identified by '123456' with grant option;(またはグラフィックスデータベース管理ツールを使用)
3.mysql許可パッケージサイズの設定
max_allowed_packet=256M
4 mysqlを再起動し、起動を設定
service mysqld restart
chkconfig mysqld on
5.otrsシステムパッケージのダウンロード、解凍、ファイル名の変更
mv otrs-x.x otrs
6.必要なモジュールを確認する
perl/opt/otrs/bin/otrs.CheckModules.pl
7.必要なモジュールのインストール
yum installまたはcpan
8.OTRSユーザーの作成
useradd -d/opt/otrs/-c 'OTRS user' otrs
9.プロファイルのアクティブ化
cd/opt/otrs/
cp/opt/otrs/Kernel/Config.pm.dist/opt/otrs/Kernel/Config.pm
cp/opt/otrs/Kernel/Config/GenericAgent.pm.dist/opt/otrs/Kernel/Config/GenericAgent.pm
10.重要書類の検査
1.perl -cw/opt/otrs/bin/cgi-bin/index.pl
2.perl -cw/opt/otrs/bin/cgi-bin/customer.pl
3.perl -cw/opt/otrs/bin/otrs.PostMaster.pl
11 apacheの構成
1.プロファイルの変更
(1)vim/etc/httpd/conf/httpd.conf
Include conf.d/*を検索します.conf
次の文を追加します:Include/opt/otrs/scripts/apache 2-httpd.include.conf
Userを検索してotrsに変更
2.再起動し、起動を設定します.
12.ファイル認可/opt/otrs/bin/otrs.SetPermissions.pl --web-group=apache
完了したらhttp mysql otrs(/opt/otrs/bin/Cron.sh)を再起動します.
13.構成の初期化
(1)入力アドレスhttp://サーバアドレス/otrs/installer.pl
(2)次は、既存のデータベースを使用することを選択し、otrsデータベースとデータベースユーザーとパスワードを記入し、次は.
(3)smtpエージェントを用いて送信し,エージェントサーバのアドレスを記入する.
14.
(1)http://サーバアドレス/otrs/indexに登録するには、ページから与えられたユーザ名パスワードを使用する.pl管理者ページ.
(2)初期パスワードが複雑すぎて、/opt/otrs/otrs.SetPassword.pl [email protected]パスワードの変更
(3)http://サーバアドレス/otrs/customerにログインする.plはユーザーページにアクセスできます
15.デーモンプロセスのアクティブ化
cd/opt/otrs/var/cronで、
su otrs
for foo in *.dist; do cp $foo `basename $foo .dist`; done(すべての.distファイルをコピー末尾の.distアクティブファイルを削除)
/opt/otrs/bin/Cron.sh start
/opt/otrs/bin/otrs.SetPermission.pl --web-group=apache
二、otrs構成
1.smtp送信を設定し、システム管理インタフェース、システム構成欄、smtp検索、構成に入り、パラメータを追加する
SendmailModule::AuthUser  : [email protected]
SendmailModule::AuthPassword  : XXXXXX
SendmailModule::Host : smtp.exmail.qq.com

2.ldapを構成し、システム管理インタフェース、システム構成欄、ldapを検索して構成に入る
Customer::AuthModule : LDAP
Customer::AuthModule::LDAP::Host : 192.168.7.222
Customer::AuthModule::LDAP::BaseDN:dc=bmk,dc=local
Customer::AuthModule::LDAP::UID: sAMAccountName
Customer::AuthModule::LDAP::GroupDN: dc=bmk,dc=local
Customer::AuthModule::LDAP::SearchUserDN : [email protected] (     ,        )
Customer::AuthModule::LDAP::SearchUserPw: xxxxx(  )

プロファイルを変更することもできます.
vim /opt/otrs/Kernel/Config.pm
追加:$Self->CustomerUser={
Name => 'LDAP Backend',         Module => 'Kernel::System::CustomerUser::LDAP',           Params => {               Host => '192.168.7.222',               BaseDN => 'dc=bmk,dc=local',              SSCOPE => 'sub',               UserDN => '[email protected]',               UserPw => '123.ljg',               SourceCharset => 'utf-8',               DestCharset => 'utf-8',           },           CustomerKey => 'sAMAccountName',           CustomerID => 'mail',          #SourceCharset => 'utf-8',           CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],           CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],           CustomerUserPostMasterSearchFields => ['mail'],           #CustomerUserSearchPrefix =>'*',           CustomerUserNameFields => ['sn', 'givenname'],CustomerUserSearchListLimit =>'250',           Map => [         [ 'UserFirstname', 'Firstname', 'sn', 1, 1, 'var' ],         [ 'UserLastname', 'Lastname', 'givenname', 1, 1, 'var' ],        [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ],        [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ],          [ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ],
],      };
モジュールのインストール:
# cd/opt/otrs/bin
# wget ftp://ftp.otrs.org/pub/otrs/itsm/bundle4/ITSM-4.0.7.opm
#/opt/otrs/bin/otrs.PackageManager.pl -a install -p/opt/otrs/bin/ITSM-4.0.7.opm
#./otrs.RebuildConfig.pl
#./otrs.DeleteCache.pl
# ./otrs.CleanUp.pl
#./otrs.SetPermissions.pl --web-group=apache