The writing is rough. let's take a look! Oracle in linux is complicated! ^ 0 ^ 1. install the Redhat7.2 Operating system: 2. install the Mysql source code: groupaddmysqluseradd? Gmysqlmysqltar? Zxvfmysql-VERSION.tar.gzcdmysql-VERSION./configure
The writing is rough. let's take a look! Oracle in linux is complicated! ^ 0 ^ 1. install Redhat7.2 Operating system: 2. install Mysql source code:> groupadd mysql> useradd? G mysql> tar? Mysql-VERSION.tar.gz> cd mysql-VERSION>./configure -- prefix =/usr./local/mysql> make install> chown? R root/usr/local/mysql> chown? R mysql/usr/local/mysql/var> chgrp-R mysql/usr/local/mysql> cp support-files/my-medium.cnf/etc/my. cnf> cd/usr/local/mysql/bin>. /safe_mysqld -- user = mysql & 3. oracle8.1.7 installation: 1. install the following package: compat-libstdc ++-6.2-2.9.0.16 compat-glibc-6.2-2.1.3.2 compat-egcs-c ++-6.2-1.1.2.16 compat-libs-6.2-3 compat-egcs-6.2-1.1.2.16 compat-egcs-objc-6.2-1.1.2.16 (with the above package in redhat install Disk1 and Disk2) 2. install jdk118_v3-glib C-2.1.3.tar.bz2 bunzip2 jdk118_v3-glibc-2.1.3.tar.bz2 tar? Xvf jdk_v3-glibc-2.1.3.tar ln? S jdk118_v3 java 3. prepare the user environment Groupadd oinstall Groupadd dba Groupadd login Useradd oracle? G oinstall? G dba, role 4. create the installation directory mkdir/oracle chown oracle. dba/oracle chmod 775/oracle 5. set environment variables: add the following content to the/etc/profile file: OARCLE_BASE =/oracle/app/oracle ORACLE_HOME =/oracle/app/oracle/product/8.1.7 ORALCE_SID = orcl ORA_NLS =/oracle/app/oracle/product/8.1.7/ocommon/nls/ admin/data ORA_LANG = "simplified chinese" CLASSPATH =. :/oracle/app/oracle/product/8.1.7/jdbc/lib/classes111.zip LD_LIBRARY_PATH =/oracle/app/ora Cle/product/8.1.7/lib PATH = $ PATH: $ OACLE_HOME/BIN: $ ORACLE_HOME/dbs:/etc Export ORACLE_BASE ORALCE_HOME ORACLE_SID ORA_NLS NLS_LANG LD_IBRARY to view environment variables :. /etc/profile env | grep oracle check whether the oracle settings are correct in/home/oracle /. add the following content to the bash_profile File :. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh export LD_ASSUME_KERNEL = 2.2.5. /home/oracle /. bash_profile gcc? V. 6. log on to the oracle user to install the agent:> su root> tar-xvf linux1701.tar> cd Disk1>./runInstaller. When you click next, a window will pop up prompting you to run orainstRoot. sh> su> cd $ ORACHE_HOME>. /orainsRoot. sh to continue installation and the pop-up dialog box requires to run root. sh> cd $ ORACLE_HOME>. /root. sh exit installation is complete, make an oracle patch> cp glibc-2.1.3-stubs.tar.gz $ ORACLE_HOME> tar? Zxvf glibcs-2.1.3-stubs.tar.gz>./setup_stubs.sh after installation start oracle> svrmgrl> connect internal> startup> quit start listening window:> lsnrctl> start> quit 4. Apache php installation> tar? Zxvf apache_1.3.26.tar.gz> tar? Zxvf php_4.1.2.tar.gz> cd apache_1.3.26>./configure -- prefix =/usr/local/apace> cd.../php-4.1.2>./configure -- with-mysql? With-apache =/usr/local/apache_1.3.26 -- with-oci8 =/oracle/app/oracle/product/8.1.7? With-oracle =/oracle/app/oracle/product/8.1.7 -- enable-track-vars> make install> cp php. ini-dist/usr/local/lib/php. ini> cd .. /apache_1.3.26>. /configure -- activate-module = src/modules/php4/libphp4.a> make install start apache>/usr/local/apache/bin/apachectl start 5. configure apache and php> cd/usr/local/apache/conf> vi httpd. set conf to the desired path.> Cd/usr/local/lib> vi php. ini: configure the oracle startup module.