1.yum update -y
2.rpm -ivH http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
3.yum install -y make wget httpd mysql mysql-server php php-gd php-mysql php-mbstring mod_perl perl-XML-Simple perl-Net-IP perl-SOAP-Lite perl-DBI perl-DBD-MySQL
4.yum install -y --enablerepo=epel perl-Apache-DBI perl-Apache2-SOAP perl-XML-Entities
5.mysql_install_db
6.chkconfig --level 345 mysqld on
7.service mysqld start
8.mysql_secure_installation
9.mysql -u root -p
10.CREATE DATABASE ocs;
11.GRANT ALL PRIVILEGES ON ocs.* to ocs@localhost IDENTIFIED BY '<somepassword>';
12.FLUSH PRIVILEGES;
13.QUIT
14.cd /root/
15.wget https://launchpadlibrarian.net/165057074/OCSNG_UNIX_SERVER-2.1.tar.gz
16.tar -xvzf OCSNG_UNIX_SERVER*.tar.gz
17.cd OCSNG_UNIX_SERVER*
18.sh ./setup.sh
19.vi /etc/httpd/conf.d/z-ocsinventory-server.conf
Change line 26 (OCS_DB_NAME) from 'ocsweb' to 'ocs'
Change line 27 (OCS_DB_LOCAL) from 'ocsweb' to 'ocs'
Change line 31 (OCS_DB_PWD) from 'ocs' to whatever you chose for your MySQL 'ocs' user password
20.vi /etc/sysconfig/iptables
21.-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
22.service iptables restart
23.chkconfig --level 345 httpd on
24.service httpd start
25.vi /etc/selinux/config
SELINUX=disabled
26.reboot
27.http://yourserver/ocsreports
Database: ocs
Username: ocs
Password: <somepassword>
Hostname: localhost
28.rm -f /usr/share/ocsinventory-reports/ocsreports/install.php
29. http://yourserver/ocsreports
Username: admin
Password: admin
ไม่มีความคิดเห็น:
แสดงความคิดเห็น