yum install screen

screen -U -S osticket

yum update


#安装 httpd

yum install httpd -y

chkconfig  httpd on

service httpd start


#安装PHP

yum install php php-{cli,common,gd,mysql,imap,mbstring,xml} -y


#安装MySQL

yum -y remove mysql-libs

yum install cronie cronie-anacron crontabs redhat-lsb-core sysstat

#yum -y install mysql-client mysql-server

#mysql config

#service mysql start

#chkconfig mysql on

yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm

yum install Percona-Server-shared-56 Percona-Server-client-56 Percona-Server-server-56

service mysql start

chkconfig mysql on



#下载osTicket

wget http://osticket.com/sites/default/files/download/osTicket-v1.9.2.zip

cp -a osTicket-v1.9.2.zip  /var/www/html/

unzip  osTicket-v1.9.2.zip

mv upload scp



#创建MySQL数据库

mysql

mysql> create database support;

mysql> grant all on support.* to support@localhost identified by 'support';

mysql> \q