1 配置linux
更改/etc/sysconfig/selinux 文件的内容为 SELINUX=disabled
完了之后一定重启
修改主机名 系统-网络-DNS 修改主机名 之后 重启 network 服务
vi /etc/sysconfig/network 修改 hostname 为 ruei
vi /etc/hosts
添加127.0.0.1 ruei.localdomain ruei
重启 network 服务
service network restart
2 安装Oracle 数据库
Oracle 安装完毕 勿忘执行 下述2个脚本
[root@ruei ~]# /u01/app/oraInventory/orainstRoot.sh
更改权限/u01/app/oraInventory.
添加组的读取和写入权限。
删除全局的读取, 写入和执行权限。
更改组名/u01/app/oraInventory 到 oinstall.
脚本的执行已完成。
[root@ruei ~]# /u01/app/oracle/product/11.2.0/dbhome_1/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
3安装ruei
3.1挂载CDrom
[root@ruei ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@ruei ~]# cd /mnt/cdrom/Server/
3.2安装 所需求的 rpm包
[root@ruei Server]# rpm -ivh --force \
> httpd-2.2.3-43.el5.x86_64.rpm \
> libpcap-0.9.4-15.el5.x86_64.rpm \
> apr-1.2.7-11.el5_3.1.x86_64.rpm \
> apr-util-1.2.7-11.el5.x86_64.rpm \
> php-5.1.6-27.el5.x86_64.rpm \
> mod_ssl-2.2.3-43.el5.x86_64.rpm \
> distcache-1.4.5-14.1.x86_64.rpm \
> php-common-5.1.6-27.el5.x86_64.rpm \
> php-cli-5.1.6-27.el5.x86_64.rpm \
> php-mbstring-5.1.6-27.el5.x86_64.rpm \
> php-ldap-5.1.6-27.el5.x86_64.rpm \
> gmp-4.1.4-10.el5.x86_64.rpm \
> postgresql-libs-8.1.18-2.el5_4.1.x86_64.rpm \
> lm_sensors-2.10.7-9.el5.x86_64.rpm \
> net-snmp-5.3.2.2-9.el5.x86_64.rpm \
> net-snmp-utils-5.3.2.2-9.el5.x86_64.rpm \
> perl-XML-Twig-3.26-1.fc6.noarch.rpm \
> perl-XML-Parser-2.34-6.1.2.2.1.x86_64.rpm \
> php-soap-5.1.6-27.el5.x86_64.rpm \
>
warning: httpd-2.2.3-43.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-common ########################################### [ 5%]
2:gmp ########################################### [ 11%]
3:apr ########################################### [ 16%]
4:php-cli ########################################### [ 21%]
5:perl-XML-Parser ########################################### [ 26%]
6:lm_sensors ########################################### [ 32%]
7:net-snmp ########################################### [ 37%]
8:postgresql-libs ########################################### [ 42%]
9:apr-util ########################################### [ 47%]
10:httpd ########################################### [ 53%]
11:distcache ########################################### [ 58%]
12:libpcap ########################################### [ 63%]
13:php ########################################### [ 68%]
14:mod_ssl ########################################### [ 74%]
15:php-mbstring ########################################### [ 79%]
16:php-ldap ########################################### [ 84%]
17:net-snmp-utils ########################################### [ 89%]
18:perl-XML-Twig ########################################### [ 95%]
19:php-soap ########################################### [100%]
3.3 创建 moniforce 用户组
[root@ruei ~]# /usr/sbin/groupadd moniforce
[root@ruei ~]# /usr/sbin/useradd moniforce -g moniforce -d /var/opt/ruei
[root@ruei ~]# chmod -R 750 /var/opt/ruei
[root@ruei ~]# chown -R moniforce:moniforce /var/opt/ruei
3.4 配置ruei.conf 配置文件
[root@ruei ~]# cp /root/RUEI/extra/ruei.conf /etc/
[root@ruei ~]# chmod 644 /etc/ruei.conf
[root@ruei ~]# chown moniforce:moniforce /etc/ruei.conf
[root@ruei ~]# vi /etc/ruei.conf
export RUEI_HOME=/opt/ruei
export RUEI_DATA=/var/opt/ruei
export RUEI_USER=moniforce
export RUEI_GROUP=moniforce
export RUEI_DB_INST=ux
export RUEI_DB_USER=UXINSIGHT
export RUEI_DB_TNSNAME=uxinsight
export RUEI_DB_TNSNAME_CFG=$RUEI_DB_TNSNAME
3.5 配置ORacle 的初始化脚本 以及启动服务
[root@ruei ~]# cp /root/RUEI/extra/oracledb /etc/init.d/
[root@ruei ~]# vi /etc/init.d/oracledb
#!/bin/bash
#
# /etc/init.d/oracledb
#
# chkconfig: 2345 95 10
# description: Run-level Startup script for the Oracle Listener and
# Instances. It relies on the information in /etc/oratab
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export ORACLE_OWNR=oracle
export PATH=$PATH:$ORACLE_HOME/bin
[root@ruei ~]# chmod +x /etc/init.d/oracledb
[root@ruei ~]# /sbin/chkconfig --add oracledb
[root@ruei ~]# /sbin/service oracledb start
Starting Oracle:
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-SEP-2012 12:31:27
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/ruei/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 27-SEP-2012 12:31:30
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/ruei/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
The listener supports no services
The command completed successfully
OK
3.6 安装 java
[root@ruei Server]# cd /root/RUEI/Java
[root@ruei Java]# chmod +x ./jre-1_5_0_22-linux-amd64-rpm.bin
[root@ruei Java]# ./jre-1_5_0_22-linux-amd64-rpm.bin
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA 2 PLATFORM STANDARD EDITION RUNTIME ENVIRONMENT
5.0
SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT
CAREFULLY. BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU
HAVE READ THE TERMS AND AGREE TO THEM. IF YOU ARE AGREEING
TO THESE TERMS ON BEHALF OF A COMPANY OR OTHER LEGAL ENTITY,
YOU REPRESENT THAT YOU HAVE THE LEGAL AUTHORITY TO BIND THE
LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT HAVE SUCH
AUTHORITY, OR IF YOU DO NOT WISH TO BE BOUND BY THE TERMS,
THEN YOU MUST NOT USE THE SOFTWARE ON THIS SITE OR ANY OTHER
MEDIA ON WHICH THE SOFTWARE IS CONTAINED.
1. DEFINITIONS. "Software" means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error
corrections provided by Sun, and any user manuals,
programming guides and other documentation provided to you
by Sun under this Agreement. "General Purpose Desktop
Computers and Servers" means computers, including desktop
and laptop computers, or servers, used for general
computing functions under end user control (such as but not
specifically limited to email, general purpose Internet
browsing, and office suite productivity tools). The use of
Software in systems and solutions that provide dedicated
functionality (other than as mentioned above) or designed
for use in embedded or function-specific software
applications, for example but not limited to: Software
embedded in or bundled with industrial control systems,
wireless mobile telephones, wireless handheld devices,
netbooks, kiosks, TV/STB, Blu -ray Disc devices,
telematics and network control switching equipment,
printers and storage management systems, and other related
systems is excluded from this definition and not licensed
under this Agreement. "Programs" means Java technology
applets and applications intended to run on the Java 2
Platform Standard Edition (J2SE) platform on Java-enabled
General Purpose Desktop Computers and Servers.
2. LICENSE TO USE. Subject to the terms and conditions of
this Agreement, including, but not limited to the Java
Technology Restrictions of the Supplemental License Terms,
Sun grants you a non-exclusive, non-transferable, limited
license without license fees to reproduce and use internally
Software complete and unmodified for the sole purpose of
running Programs. Additional licenses for developers and/or
publishers are granted in the Supplemental License Terms.
3. RESTRICTIONS. Software is confidential and copyrighted.
Title to Software and all associated intellectual property
rights is retained by Sun and/or its licensors. Unless
enforcement is prohibited by applicable law, you may not
modify, decompile, or reverse engineer Software. You
acknowledge that Licensed Software is not designed or
intended for use in the design, construction, operation or
maintenance of any nuclear facility. Sun Microsystems, Inc.
disclaims any express or implied warranty of fitness for
such uses. No right, title or interest in or to any
trademark, service mark, logo or trade name of Sun or its
licensors is granted under this Agreement. Additional
restrictions for developers and/or publishers licenses are
set forth in the Supplemental License Terms.
4. LIMITED WARRANTY. Sun warrants to you that for a period
of ninety (90) days from the date of purchase, as evidenced
by a copy of the receipt, the media on which Software is
furnished (if any) will be free of defects in materials and
workmanship under normal use. Except for the foregoing,
Software is provided "AS IS". Your exclusive remedy and
Sun's entire liability under this limited warranty will be
at Sun's option to replace Software media or refund the fee
paid for Software. Any implied warranties on the Software
are limited to 90 days. Some states do not allow
limitations on duration of an implied warranty, so the above
may not apply to you. This limited warranty gives you
specific legal rights. You may have others, which vary from
state to state.
5. DISCLAIMER OF WARRANTY. UNLESS SPECIFIED IN THIS
AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS,
REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY
INVALID.
6. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED
BY LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR
ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT,
CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE, EVEN
IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
In no event will Sun's liability to you, whether in
contract, tort (including negligence), or otherwise, exceed
the amount paid by you for Software under this Agreement.
The foregoing limitations will apply even if the above
stated warranty fails of its essential purpose. Some states
do not allow the exclusion of incidental or consequential
damages, so some of the terms above may not be applicable to
you.
7. TERMINATION. This Agreement is effective until
terminated. You may terminate this Agreement at any time by
destroying all copies of Software. This Agreement will
terminate immediately without notice from Sun if you fail to
comply with any provision of this Agreement. Either party
may terminate this Agreement immediately should any Software
become, or in either party's opinion be likely to become,
the subject of a claim of infringement of any intellectual
property right. Upon Termination, you must destroy all
copies of Software.
8. EXPORT REGULATIONS. All Software and technical data
delivered under this Agreement are subject to US export
control laws and may be subject to export or import
regulations in other countries. You agree to comply
strictly with all such laws and regulations and acknowledge
that you have the responsibility to obtain such licenses to
export, re-export, or import as may be required after
delivery to you.
9. TRADEMARKS AND LOGOS. You acknowledge and agree as
between you and Sun that Sun owns the SUN, SOLARIS, JAVA,
JINI, FORTE, and iPLANET trademarks and all SUN, SOLARIS,
JAVA, JINI, FORTE, and iPLANET-related trademarks, service
marks, logos and other brand designations ("Sun Marks"), and
you agree to comply with the Sun Trademark and Logo Usage
Requirements currently located at
http://www.sun.com/policies/trademarks. Any use you make of
the Sun Marks inures to Sun's benefit.
10. U.S. GOVERNMENT RESTRICTED RIGHTS. If Software is
being acquired by or on behalf of the U.S. Government or by
a U.S. Government prime contractor or subcontractor (at any
tier), then the Government's rights in Software and
accompanying documentation will be only as set forth in this
Agreement; this is in accordance with 48 CFR 227.7201
through 227.7202-4 (for Department of Defense (DOD)
acquisitions) and with 48 CFR 2.101 and 12.212 (for non-DOD
acquisitions).
11. GOVERNING LAW. Any action related to this Agreement
will be governed by California law and controlling U.S.
federal law. No choice of law rules of any jurisdiction
will apply.
12. SEVERABILITY. If any provision of this Agreement is
held to be unenforceable, this Agreement will remain in
effect with the provision omitted, unless omission would
frustrate the intent of the parties, in which case this
Agreement will immediately terminate.
13. INTEGRATION. This Agreement is the entire agreement
between you and Sun relating to its subject matter. It
supersedes all prior or contemporaneous oral or written
communications, proposals, representations and warranties
and prevails over any conflicting or additional terms of any
quote, order, acknowledgment, or other communication between
the parties relating to its subject matter during the term
of this Agreement. No modification of this Agreement will
be binding, unless in writing and signed by an authorized
representative of each party.
SUPPLEMENTAL LICENSE TERMS These Supplemental License Terms
add to or modify the terms of the Binary Code License
Agreement. Capitalized terms not defined in these
Supplemental Terms shall have the same meanings ascribed to
them in the Binary Code License Agreement . These
Supplemental Terms shall supersede any inconsistent or
conflicting terms in the Binary Code License Agreement, or
in any license contained within the Software.
A. Software Internal Use and Development License Grant.
Subject to the terms and conditions of this Agreement and
restrictions and exceptions set forth in the Software
"README" file incorporated herein by reference, including,
but not limited to the Java Technology Restrictions of these
Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license without fees to reproduce
internally and use internally the Software complete and
unmodified for the purpose of designing, developing, and
testing your Programs.
B. License to Distribute Software. Subject to the terms
and conditions of this Agreement and restrictions and
exceptions set forth in the Software README file, including,
but not limited to the Java Technology Restrictions of these
Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license without fees to reproduce
and distribute the Software, provided that (i) you
distribute the Software complete and unmodified and only
bundled as part of, and for the sole purpose of running,
your Programs, (ii) the Programs add significant and primary
functionality to the Software, (iii) you do not distribute
additional software intended to replace any component(s) of
the Software, (iv) you do not remove or alter any
proprietary legends or notices contained in the Software,
(v) you only distribute the Software subject to a license
agreement that protects Sun's interests consistent with the
terms contained in this Agreement, and (vi) you agree to
defend and indemnify Sun and its licensors from and against
any damages, costs, liabilities, settlement amounts and/or
expenses (including attorneys' fees) incurred in connection
with any claim, lawsuit or action by any third party that
arises or results from the use or distribution of any and
all Programs and/or Software.
C. Java Technology Restrictions. You may not create,
modify, or change the behavior of, or authorize your
licensees to create, modify, or change the behavior of,
classes, interfaces, or subpackages that are in any way
identified as "java", "javax", "sun" or similar convention
as specified by Sun in any naming convention designation.
D. Source Code. Software may contain source code that,
unless expressly licensed for other purposes, is provided
solely for reference purposes pursuant to the terms of this
Agreement. Source code may not be redistributed unless
expressly provided for in this Agreement.
E. Third Party Code. Additional copyright notices and
license terms applicable to portions of the Software are set
forth in the THIRDPARTYLICENSEREADME.txt file. In addition
to any terms and conditions of any third party
opensource/freeware license identified in the
THIRDPARTYLICENSEREADME.txt file, the disclaimer of warranty
and limitation of liability provisions in paragraphs 5 and 6
of the Binary Code License Agreement shall apply to all
Software in this distribution.
F. Termination for Infringement. Either party may
terminate this Agreement immediately should any Software
become, or in either party's opinion be likely to become,
the subject of a claim of infringement of any intellectual
property right.
G. Installation and Auto-Update. The Software's
installation and auto-update processes transmit a limited
amount of data to Sun (or its service provider) about those
specific processes to help Sun understand and optimize them.
Sun does not associate the data with personally identifiable
information. You can find more information about the data
Sun collects at http://java.com/data/.
For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.
(LFI#143333/Form ID#011801)
Do you agree to the above license terms? [yes or no]
// 输入yes
yes
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP ([email protected]).
inflating: jre-1_5_0_22-linux-amd64.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
/usr/java/jre1.5.0_22
Done.
// 安装必要的Java 软件到路径/usr/java/jre1.5.0_22
[root@ruei Java]# ln -s /usr/java/jre1.5.0_22 /usr/java/jre
3.7 配置Apache web 服务
[root@ruei Java]# /sbin/chkconfig httpd on
// 在/etc/sysconfig/httpd 添加 source /etc/ruei.conf
[root@ruei Java]# vi /etc/sysconfig/httpd
#
# By default, the httpd process is started in the C locale; to
# change the locale in which the server runs, the HTTPD_LANG
# variable can be set.
#
#HTTPD_LANG=C
source /etc/ruei.conf
// 创建 /etc/php.d/ruei.ini 并添加 下述内容
[root@ruei Java]# vi /etc/php.d/ruei.ini
session.gc_maxlifetime = 14400
memory_limit = 96M
upload_max_filesize = 128M
post_max_size = 128M
3.8 避免rsvg 警告
//RUEI 使用rsvg 来生成图形界面,为了避免收到关于路径遗失的警告,需要预先创建一个空 的.gnome2 路径:
[root@ruei Java]# mkdir -p /var/www/.gnome2
3.9 安装oracle 客户端
[root@ruei Java]# cd /root/RUEI/IC
[root@ruei IC]# rpm -ivh oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm
warning: oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:oracle-instantclient11.########################################### [100%]
[root@ruei IC]# rpm -ivh oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm
warning: oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:oracle-instantclient11.########################################### [100%]
3.10 安装php-oci8 模块
[root@ruei IC]# cd /root/RUEI/PHP
[root@ruei PHP]# rpm -ivh php-oci8-11gR2-5.1.6-27.el5.x86_64.rpm
warning: php-oci8-11gR2-5.1.6-27.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:php-oci8-11gR2 ########################################### [100%]
3.11 安装Zend Optimizer
[root@ruei PHP]# cd /root/RUEI/ZendOptimizer
[root@ruei ZendOptimizer]# tar zxvf ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gz
ZendOptimizer-3.3.3-linux-glibc23-x86_64/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/install
ZendOptimizer-3.3.3-linux-glibc23-x86_64/md5
ZendOptimizer-3.3.3-linux-glibc23-x86_64/Inventory.xml
ZendOptimizer-3.3.3-linux-glibc23-x86_64/EULA-ZendOptimizer
ZendOptimizer-3.3.3-linux-glibc23-x86_64/install-tty
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/license_downloader.inc
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/install.inc
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/install.php
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/Log.inc
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/php
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/gaugebox.inc
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/basic_install.inc
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/Config.inc
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/progress_bar.php
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/dialog
ZendOptimizer-3.3.3-linux-glibc23-x86_64/zui_files/Util.inc
ZendOptimizer-3.3.3-linux-glibc23-x86_64/README-ZendOptimizer
ZendOptimizer-3.3.3-linux-glibc23-x86_64/LICENSE
ZendOptimizer-3.3.3-linux-glibc23-x86_64/install.sh
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/zendid
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_3_x_comp/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_3_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_3_x_comp/TS/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_3_x_comp/TS/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_1_x_comp/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_1_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_1_x_comp/TS/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_1_x_comp/TS/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_2_x_comp/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_2_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_2_x_comp/TS/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_2_x_comp/TS/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_0_x_comp/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_0_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_0_x_comp/TS/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_0_x_comp/TS/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_4_x_comp/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_4_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_4_x_comp/TS/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_4_x_comp/TS/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/poweredbyoptimizer.gif
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/ZendExtensionManager.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_2_0_comp/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/4_2_0_comp/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/ZendExtensionManager_TS.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_2_x_comp/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_2_x_comp/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_2_x_comp/TS/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/5_2_x_comp/TS/ZendOptimizer.so
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/doc/
ZendOptimizer-3.3.3-linux-glibc23-x86_64/data/doc/Zend_Optimizer_User_Guide.pdf
[root@ruei ZendOptimizer]# cd ZendOptimizer-3.3.3-linux-glibc23-x86_64
[root@ruei ZendOptimizer-3.3.3-linux-glibc23-x86_64]# ./install
//////// 全部默认 回车//////
3.12 创建RUEI 数据库实例
[root@ruei ZendOptimizer-3.3.3-linux-glibc23-x86_64]# cp /root/RUEI/121/ruei-prepare-db.sh /home/oracle
[root@ruei ZendOptimizer-3.3.3-linux-glibc23-x86_64]# cp /root/RUEI/121/ruei-check.sh /home/oracle
[root@ruei ZendOptimizer-3.3.3-linux-glibc23-x86_64]# cp /root/RUEI/121/sql_scripts/ /home/oracle/ -R
[root@ruei ZendOptimizer-3.3.3-linux-glibc23-x86_64]# cd /home/oracle
[root@ruei oracle]# chmod +x ruei-prepare-db.sh ruei-check.sh
[root@ruei oracle]# su oracle
[oracle@ruei ~]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1/
[oracle@ruei ~]$ ./ruei-prepare-db.sh create
2012年 09月 27日 星期四 12:43:04 CST: started database setup: create
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
____________________________________________________________
create ...
____________________________________________________________
____________________________________________________________
system_check ...
____________________________________________________________
Before setting up the database, we will need to perform a system check to
verify that the hardware has been set up correctly. You will be prompted
for the root password.
Run the system check (requires root password) (y/n)? y
口令:
Please specify which role(s) this system will perform.
Use commas to separate multiple roles. For example, 1,2,4
1 - Reporter
2 - Processing Engine
3 - Collector
4 - Database
Enter role(s): 1,2,3,4 //选择要安装的程序,全部安装以 , 隔开
Running checks for: Reporter Processor Collector Database
Checking for 16 GB of RAM: [FAIL]
Found 1627 MB
Please increase the amount of RAM in this server to assure proper system functionality
Checking for 100 GB of disk space available in /var/opt/ruei: [FAIL]
Found 56 GB free, 1 MB used
Additional disk space is required for the RUEI system to work properly
Checking transfer speed for device containing /var/opt/ruei [FAIL]
Disk speed: 38 MB/s
Checking for sniffable interfaces: [WARN]
eth0 UP with IP address 192.168.0.130
eth1 UP with IP address 192.168.0.254
lo UP with IP address 127.0.0.1
peth1 Sniffable
peth1 tcp segmentation offload is enabled
vif0.1 Sniffable
vif0.1 tcp segmentation offload is enabled
virbr0 UP with IP address 192.168.122.1
xenbr1 Sniffable
xenbr1 tcp segmentation offload is enabled
Found 3 sniffable interfaces
Checking if hostname and DNS agree: [WARN]
Your local DNS server does not resolve the host name of this machine (ruei) to its IP address (127.0.0.1).
Please verify your DNS server configuration and the hostname configured on this machine
Checking if ntpd is configured to start automatically: [FAIL]
Please enable ntpd by running the following command as root:
# /sbin/chkconfig ntpd on
Checking if ntpd is running: [FAIL]
Please start ntpd by running the following command as root:
# /sbin/service ntpd start
You should fix all issues before proceeding, otherwise you will almost
certainly end up with a nonfunctional system.
Do you want to proceed? [y/n]: y
system_check done
____________________________________________________________
create_database ...
____________________________________________________________
The database instance 'ux' will be created. Please specify a password
for the SYS/SYSTEM users.
// 输入 sys/system 密码 参考Oracle标准 8~20位 必须包含数字和字母
// 特别提醒 输入之后 以后就不能更改了(暂时未发现可更改的方法,从数据库进行更改之后,ruei会连不上)
Specify a password for the SYS/SYSTEM users:
Confirm password:
Specify the global database name which must have the form
"db_name.db_domain". For example "sales.us.example.com". If this database
will be part of a distributed deployment, the name must be unique within
that system.
//输入 全局数据库名称 参考 框内数值 ux.ruei.localdomain
global database name [ux.ruei.localdomain]: ux.ruei.localdomain
Creating database 'ux.ruei.localdomain' and instance 'ux' ...
输入 SYS 用户口令:
输入 SYSTEM 用户口令:
复制数据库文件
1% 已完成
3% 已完成
11% 已完成
18% 已完成
26% 已完成
37% 已完成
正在创建并启动 Oracle 实例
40% 已完成
45% 已完成
50% 已完成
55% 已完成
56% 已完成
60% 已完成
62% 已完成
正在进行数据库创建
66% 已完成
70% 已完成
73% 已完成
85% 已完成
96% 已完成
100% 已完成
有关详细信息, 请参阅日志文件 "/u01/app/oracle/cfgtoollogs/dbca/ux/ux.log"。
create_database done
____________________________________________________________
create_tablespaces ...
____________________________________________________________
PL/SQL procedure successfully completed.
Tablespace altered.
Tablespace altered.
Tablespace altered.
Tablespace altered.
Tablespace altered.
Tablespace altered.
create_tablespaces done
____________________________________________________________
enable_connection_pooling ...
____________________________________________________________
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
enable_connection_pooling done
____________________________________________________________
reschedule_maintenance ...
____________________________________________________________
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
PL/SQL procedure successfully completed.
reschedule_maintenance done
____________________________________________________________
sql_packages ...
____________________________________________________________
Package created.
Package body created.
Synonym created.
Package created.
Package body created.
Synonym created.
sql_packages done
____________________________________________________________
create_user ...
____________________________________________________________
The database user UXINSIGHT will be created. Please choose a password
for this user.
///此处输入密码 按照Oracle 标准 8~20位, 必须包含数字和字母
Choose a password for UXINSIGHT:
Confirm password:
PL/SQL procedure successfully completed.
User altered.
create_user done
____________________________________________________________
user_grants ...
____________________________________________________________
User altered.
Profile altered.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
user_grants done
____________________________________________________________
create_triggers ...
____________________________________________________________
Trigger created.
create_triggers done
____________________________________________________________
create_wallet ...
____________________________________________________________
///此处输入密码 按照Oracle 标准 8~20位, 必须包含数字和字母
Choose a password for the wallet:
Confirm password:
creating wallet...
A tnsnames.ora file with the connection configuration for this database
will be generated. Please specify the hostname of the DB server to
connect to.
//输入 主机名 参考 框内的数值 ruei
Enter the hostname of the DB server [ruei]: ruei
If you have changed the listener port from the default 1521, or are
going to do so, then please specify which listener port to configure in
the tnsnames.ora file:
//输入端口 参考框内的数值 1521
Listener port to connect to [1521]: 1521
cwallet.sso
ewallet.p12
sqlnet.ora
tnsnames.ora
If the RUEI installation will be on this same server, then the database
configuration for user moniforce can be automatically completed. You
will be prompted for the root password.
//y 输入 root 密码
Complete the installation automatically (requires root password) (y/n)? y
口令:
completing the RUEI database setup...
create_wallet done
create done
[oracle@ruei ~]$ su root
口令:
[root@ruei oracle]# mkdir -p /home/oracle/bin
[root@ruei oracle]# cp /root/RUEI/extra/ruei-clean.sh /home/oracle/bin
[root@ruei oracle]# chmod +x /home/oracle/bin/ruei-clean.sh
[root@ruei oracle]# chmod +x /home/oracle/bin/ruei-clean.sh
[root@ruei oracle]# su - oracle -c 'echo "10 0 * * * /home/oracle/bin/ruei-clean.sh" | crontab'
[root@ruei oracle]#
[root@ruei oracle]# mkdir -p /opt/ruei
[root@ruei oracle]# chmod 750 /opt/ruei
[root@ruei oracle]# /usr/sbin/usermod -aG moniforce apache
[root@ruei oracle]# /usr/sbin/usermod -aG uucp apache
[root@ruei oracle]# /usr/sbin/usermod -aG uucp moniforce
[root@ruei oracle]# cd /root/RUEI/121
[root@ruei 121]# chmod +x ruei-install.sh
[root@ruei 121]# ./ruei-install.sh reporter
Preparing... ########################################### [100%]
1:ux-collector ########################################### [ 5%]
Removing environment from /var/opt/ruei/.bash_profile.
Adding environment to /opt/ruei/bin/env.sh.
Adding path /opt/ruei/collector/lib64 to /etc/ld.so.conf.d
Installing crontab for user moniforce.
2:ux-core ########################################### [ 10%]
3:ux-generic ########################################### [ 14%]
4:ux-bi-publisher ########################################### [ 19%]
5:ux-gui ########################################### [ 24%]
6:ux-ipdb ########################################### [ 29%]
7:ux-wlp ########################################### [ 33%]
8:ux-adf ########################################### [ 38%]
9:ux-suites-ebs ########################################### [ 43%]
10:ux-suites-flex ########################################### [ 48%]
11:ux-suites-fus ########################################### [ 52%]
12:ux-suites-jde ########################################### [ 57%]
13:ux-suites-psft ########################################### [ 62%]
14:ux-suites-sbl ########################################### [ 67%]
15:ux-lang-de_de ########################################### [ 71%]
16:ux-lang-en ########################################### [ 76%]
17:ux-lang-es_es ########################################### [ 81%]
18:ux-lang-fr_fr ########################################### [ 86%]
19:ux-lang-ja_jp ########################################### [ 90%]
20:ux-lang-ko_kr ########################################### [ 95%]
21:ux-lang-zh_cn ########################################### [100%]
You have new mail in /var/spool/mail/root
[root@ruei 121]# /sbin/service httpd restart
停止 httpd: [确定]
启动 httpd: [确定]
[root@ruei 121]# cd /home/oracle
[root@ruei oracle]# ./ruei-check.sh postinstall
Running checks for: Reporter Processor Collector Database
Checking for installed RPMs: [ OK ]
ux-bi-publisher 12.1.0 version
ux-gui 12.1.0 version
ux-lang-de_de 12.1.0 version
ux-lang-en 12.1.0 version
ux-lang-es_es 12.1.0 version
ux-lang-fr_fr 12.1.0 version
ux-lang-zh_cn 12.1.0 version
Checking for installed RPMs: [ OK ]
ux-core 12.1.0 version
ux-generic 12.1.0 version
ux-ipdb 12.1.0 version
ux-wlp 12.1.0 version
ux-adf 12.1.0 version
ux-suites-ebs 12.1.0 version
ux-suites-flex 12.1.0 version
ux-suites-fus 12.1.0 version
ux-suites-jde 12.1.0 version
ux-suites-psft 12.1.0 version
ux-suites-sbl 12.1.0 version
Checking ownership and permissions of /var/opt/ruei/cwallet.sso: [ OK ]
Checking ownership and permissions of /var/opt/ruei/ewallet.p12: [ OK ]
Checking for installed RPMs: [ OK ]
ux-collector 12.1.0 version
Running checks for: Reporter Processor Collector Database
Checking if the java shared objects can be found [ OK ]
ERROR: cannot verify ruei's certificate, issued by `/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=ruei/emailAddress=root@ruei':
Self-signed certificate encountered.
To connect to ruei insecurely, use `--no-check-certificate'.
无法建立 SSL 连接。
WARNING: cannot verify ruei's certificate, issued by `/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=ruei/emailAddress=root@ruei':
Self-signed certificate encountered.
Checking if https://ruei/ruei/ can be fetched successfully [WARN]
Site is using an invalid or self-signed certificate!
Running checks for: Reporter Processor Collector Database
Checking if the core binaries are in the $PATH: [ OK ]
[root@ruei ~]# su - moniforce
[moniforce@ruei ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
//添加 /opt/ruei/processor/bin PATH
PATH=$PATH:$HOME/bin:/opt/ruei/processor/bin
export PATH
[moniforce@ruei ~]$ source .bash_profile
[moniforce@ruei ~]$ set-admin-password
Choose a password for the admin user:
Confirm password:
/opt/ruei/processor/bin/set-admin-password -->/opt/ruei/processor/bin/wi_proxy
-->${RUEI_HOME}/bin/webinsight /opt/ruei/bin/webinsight
source /etc/ruei.conf
source $RUEI_HOME/bin/env.sh
$RUEI_HOME/gui/proxy.php "$@"
ruei.conf -->
export RUEI_HOME=/opt/ruei
export RUEI_DATA=/var/opt/ruei
export RUEI_USER=moniforce
export RUEI_GROUP=moniforce
export RUEI_DB_INST=ux
export RUEI_DB_USER=UXINSIGHT
export RUEI_DB_TNSNAME=uxinsight
export RUEI_DB_TNSNAME_CFG=$RUEI_DB_TNSNAME
env.sh -->
source /opt/ruei/collector/bin/appsensor_env.sh
source /opt/ruei/processor/bin/env.sh
/opt/ruei/collector/bin/appsensor_env.sh -->
[ -f $HOME/.ruei.conf ] && source $HOME/.ruei.conf || source /etc/ruei.conf
. ${RUEI_HOME}/bin/appsensor
/var/opt/ruei/processor/processor.conf