RedHat上安装apache+gd1.8.3+php4+tomcat+sybase+oracle+mysql黄金攻略
看了网上众多网友对php、jsp、sybase、oracle、apache等方面的安装经验,发现有很多都是重复而且不够全面,根据本人对以上各种东东长期总结和参考相关文档以及各位网友的文章,并经自己亲自实践,现将在RedHat6.2下apache1.3.12+gd1.8.3+php4.04+tomcat+sybase11.9.2+oracle8.1.6+mysql3.22.27的安装配置全部奉献给大家,希望能对大家有所帮助; 运行环境:PⅢ550+256M+20G+530TX Lan+sis6326 8M+RedHat Linux6.2 安装规划:sybase安装在/sybase目录 oracle安装在/home/oracle目录 gd安装在/usr/local目录 apache安装在/www目录 tomcat安装在/usr/local/jakarta-tomcat目录 jdk安装在/usr/local/jdk122目录 一、资料准备 1、apache_1312.tar.gz 2、php-404.tar.gz 3、jakarta-tomcat.tar.gz 4、sybase11.9.2包: sybase-common-1192-1i386.rpm sybase-ase-1192-1i386.rpm sybase-monserver-1192-1i386.rpm sybase-openclient-1111-1i386.rpm sybase-sqlremote-602-1i386.rpm sybase-chinese-1192-1i386.rpm 5、oracle8.1.6.tar 6、mysql3.22.27包: mysql-3.22.27-1.i386.rpm mysql-devel-3.22.27-1.i386.rpm mysql-client-3.22.27-1.i386.rpm 7、jdk1_2_2-linux-i386.tar.gz 8、mod-jserv.so 9、gd183.tar.gz 二、环境配置 1、系统安装 安装linux系统时创建目录/www、/sybase和/home并分配给各自较大空间,用于存储数据库资料和网页文件; 2、环境变量 配置运行oracle和tomcat以及java的java运行环境变量 用root用户登录系统 #vi /etc/profile 添加下列行 ORACLE_HOME=/home/oracle export ORACLE_HOME JAVA_HOME=/usr/local/jre export JAVA_HOME ORACLE_SID=dblee(此处dblee可以改为你自己想用的名称) export ORACLE_SID ORACLE_TERM=xterm export ORACLE_TERM ORACLE_OWNER=oracle8 export ORACLE_OWNER TNS_ADMIN=/home/oracle/config/8.1.6 export TNS_ADMIN CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip:. CLASSPATH=/usr/local/jdk/lib:/usr/local/jre/lib:$CLASSPATH export CLASSPATH PATH=$PATH:/usr/local/jre/bin:/usr/local/jdk/bin:/bin:/sbin PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:$ORACLE_HOME/bin PATH=$PATH:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:. export PATH 退出重新登录,是设置生效 三、档案安装 1、sybase安装 如果您有sybase 的安装光盘,可以在linux的图形界面下使用图形方式安装,sybase提供图形界面下的安装向导 本文采用手动的rpm包安装; (1)以root用户登录 (2)在sybase的各个rpm包中,必须先安装sybase-common-1192-1i386.rpm包,这是其他包运行的必要内容 #rpm --prefix=/sybase -hiv ./sybase-common-1192-1i386.rpm #rpm --prefix=/sybase -hiv ./sybase-ase-1192-1i386.rpm #rpm --prefix=/sybase -hiv ./sybase-monserver-1192-1i386.rpm #rpm --prefix=/sybase -hiv ./sybase-openclient-1111-1i386.rpm #rpm --prefix=/sybase -hiv ./sybase-sqlremote-602-1-i386.rpm #rpm --prefix=/sybase -hiv ./sybase-chinese-1i386.rpm 到此,完成了sybase组件的安装,需要进行数据库创建和必要的配置才能运行 (3)设置目录文件的权限 #chown -R sybase /sybase #chgrp -R sybase /sybase (4)设置sybase用户口令 #passwd sybase (5)退出系统,用sybase用户登录,系统会给一个提示,选择n并回车; (6)创建sybase数据库文件存在的目录 #mkdir /sybase/data (7)在/sybase/bin目录中创建数据库创建和运行需要的两个文件 编辑srvbuild.adaptive_server.rs和srvbuild.backup_server.rs文件 srvbuild.adaptive_server.rs文件范例如下: sybinit.release_directory: /sybase sybinit.product: sqlsrv sqlsrv.server_name: kevin_sybase (此处设置为你想使用的sybase数据库服务名) sqlsrv.new_config: yes sqlsrv.do_add_server: yes sqlsrv.network_protocol_list: tcp sqlsrv.network_hostname_list: 192.168.18.19(此处设置为您的服务器ip地址) sqlsrv.network_port_list: 4000(sybase数据库使用的端口) sqlsrv.master_device_physical_name: /sybase/data/master.dat sqlsrv.master_device_size: USE_DEFAULT sqlsrv.master_database_size: USE_DEFAULT sqlsrv.errorlog: USE_DEFAULT sqlsrv.do_upgrade: no sqlsrv.sybsystemprocs_device_physical_name: /sybase/data/sybsystem.dat sqlsrv.sybsystemprocs_device_size: USE_DEFAULT sqlsrv.sybsystemprocs_database_size: USE_DEFAULT sqlsrv.sybsystemdb_device_physical_name: /sybase/data/sybsystemdb.dat sqlsrv.sybsystemdb_device_size: USE_DEFAULT sqlsrv.sybsystemdb_database_size: USE_DEFAULT sqlsrv.default_backup_server: kevin_sybase_bk(此处设置为您的sybase数据库对应的backup服务名) srvbuild.backup_server.rs文件范例如下: sybinit.release_directory: /sybase sybinit.product: bsrv bsrv.server_name: kevin_sybase_bk(此处设置为在上门设置的backup服务名) bsrv.do_add_backup_server: yes bsrv.network_protocol_list: tcp bsrv.network_hostname_list: 192.168.18.19(服务器的ip地址) bsrv.network_port_list: 4100(sybase备份服务器使用的端口) bsrv.language: USE_DEFAULT bsrv.character_set: USE_DEFAULT bsrv.tape_config_file: USE_DEFAULT bsrv.errorlog: USE_DEFAULT (8)创建数据库(当前用户仍然是sybase) #cd /sybase/bin #./srvbuild -r ./srvbuild.adaptive_server.rs #./srvbuild -r ./srvbuild.backup_server.rs 运行完成后,将会在/sybase/install目录中生成两个新文件RUN_kevin_sybase和RUN_kevin_sybase_bk 到此,sybase数据库的安装和配置以及数据库的创建已经完成; (9)启动数据库(当前用户仍然是sybase) #cd /sybase/install #./startserver -f ./RUN_kevin_sybase #./startserver -f ./RUN_kevin_sybase_bk 看到一些提示后,如果不报错误,表示数据库已经启动,此时可以运行当前目录下的./showserver查看; #./showserver 将返回当前正在运行的sybase数据库服务情况,正常下应该是两个服务,分别是adative和backup; 到此,您的sybase数据库已经全部安装完成,您可以使用sybase的客户端或者powerbuilder等工具通过您的 服务器ip以及端口4000访问sybase数据库; (10)经验提示 如果您在第8或者第9步中出现错误,请检查您的机器网络设置是否正常,必须保证您的服务器ip地址可以在 本机上ping通,不能是ping localhost,必须是ping your ip成功才行,这可是kevin曾经试验了一下午时间 才发现的秘密哟!^_^ 2、安装jdk #cd /usr/local #tar -zxvf jdk1_2_2-linux.tar.gz #ln -s jdk122 jdk #ln -s jdk122/jre jdk 到此完成了jdk的安装 3、安装oracle8.1.6 在安装oracle之前,必须完成环境变量的设置和jdk的安装 [root@oradb /root]$ #以root方式登录 [root@oradb /root]$ groupadd oracle #创建oracle用户组 [root@oradb /root]$ useradd oracle -g oracle #在oracle组中建新用户oracle [root@oradb /root]$ passwd oracle #修改oracle用户口令 [root@oradb /root]$ useradd apache -g oracle #创建apache用户 注:oracle组和oracle用户是oracle安装需要的 注:创建oracle用户后,linux系统自动在/home目录下创建/home/oracle目录,给oracle用户使用, oracle用户对此目录拥有所有的权限, 为方便,本例把oracle系统安装在oracle用户自己的目录下 [root@oradb /oracle]$ exit #退出,以oracle用户重新登录(以下的操作全部是oracle用户) [oracle@oradb /oracle]$ [oracle@oradb /oracle]$ ls -l [oracle@oradb /oracle]$ tar zxvf oracle8161_tar.gz #解压oracle压缩包到当前目录 [oracle@oradb /oracle]$mv Oracle8iR2 orainst #为了写起来方便,我将目录重新命名了,您可以不变 [oracle@oradb /oracle]$ startx #启动X-windows后,启用一个终端(xterm),(图形窗口) #在该终端中运行runInstaller [oracle@oradb /oracle]$ cd orainst [oracle@oradb /orainst]$ ./runInstaller #执行oracle安装程序,linux下执行一个程序,可用./调用执行 这时你可以看到用jre运行的全新的图形化的OUI的欢迎画面,按照提示继续安装进程: Welcome: 按next File Locations: 按next UNIX Group Name: 什么也不添,按next 出错,提示要以root权限运行“/home/oracle/orainstRoot.sh CTRL+ALT+F2,打开一个新的控制台(字符窗口) 以root登录 [root@oradb /root]$ cd /home/oracle 这时,/home/oracle/目录下只有一个文件orainstRoot.sh,运行它 [root@oradb /oracle]$ sh orainstRoot.sh CTRL+ALT+F7,回到安装界面(图形窗口) 按Retry按钮,就可以继续安装了, Available Products: 选Oracle8i Enterprise Edition 8.1.6.1.0,按next Installation Types: 选Typical(540MB),按next,这时,屏幕右上角出现一个进度标尺 Database Identification: Global Database Name:输入oracle8(可以任意) SID:保留orcl 按next Database File Location: 任意目录,本例设为“/home/oracle/”,按Next,这时,屏幕右上角进度标尺继续前进 出现Summary,对你想要安装的产品作一个总结 按Install,出现Install画面,等待... 你可以看到窗口底部提示的安装等log文件目录,可供以后查询。 弹出Setup Privileges窗口 提示:在安装继续进行之前,需要以root运行一个脚本“/home/oracle/root.sh”, CTRL+ALT+F2,回到刚才运行的第2个终端窗口 以root权限执行该文件, [root@oradb /oracle]$ sh root.sh 屏幕显示: Enter the full pathname of the local bin dire

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution to the problem that Win11 system cannot install Chinese language pack With the launch of Windows 11 system, many users began to upgrade their operating system to experience new functions and interfaces. However, some users found that they were unable to install the Chinese language pack after upgrading, which troubled their experience. In this article, we will discuss the reasons why Win11 system cannot install the Chinese language pack and provide some solutions to help users solve this problem. Cause Analysis First, let us analyze the inability of Win11 system to

You may not be able to install guest additions to a virtual machine in OracleVirtualBox. When we click on Devices>InstallGuestAdditionsCDImage, it just throws an error as shown below: VirtualBox - Error: Unable to insert virtual disc C: Programming FilesOracleVirtualBoxVBoxGuestAdditions.iso into ubuntu machine In this post we will understand what happens when you What to do when you can't install guest additions in VirtualBox. Unable to install guest additions in VirtualBox If you can't install it in Virtua

If you have successfully downloaded the installation file of Baidu Netdisk, but cannot install it normally, it may be that there is an error in the integrity of the software file or there is a problem with the residual files and registry entries. Let this site take care of it for users. Let’s introduce the analysis of the problem that Baidu Netdisk is successfully downloaded but cannot be installed. Analysis of the problem that Baidu Netdisk downloaded successfully but could not be installed 1. Check the integrity of the installation file: Make sure that the downloaded installation file is complete and not damaged. You can download it again, or try to download the installation file from another trusted source. 2. Turn off anti-virus software and firewall: Some anti-virus software or firewall programs may prevent the installation program from running properly. Try disabling or exiting the anti-virus software and firewall, then re-run the installation

Installing Android applications on Linux has always been a concern for many users. Especially for Linux users who like to use Android applications, it is very important to master how to install Android applications on Linux systems. Although running Android applications directly on Linux is not as simple as on the Android platform, by using emulators or third-party tools, we can still happily enjoy Android applications on Linux. The following will introduce how to install Android applications on Linux systems.

While studying in high school, some students take very clear and accurate notes, taking more notes than others in the same class. For some, note-taking is a hobby, while for others, it is a necessity when they easily forget small information about anything important. Microsoft's NTFS application is particularly useful for students who wish to save important notes beyond regular lectures. In this article, we will describe the installation of Ubuntu applications on Ubuntu24. Updating the Ubuntu System Before installing the Ubuntu installer, on Ubuntu24 we need to ensure that the newly configured system has been updated. We can use the most famous "a" in Ubuntu system

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple

Many novice friends still don’t know how to install creo, so the editor below brings relevant tutorials on creo installation. Friends in need should take a look at it. I hope it can help you. 1. Open the downloaded installation package and find the License folder, as shown in the figure below: 2. Then copy it to the directory on the C drive, as shown in the figure below: 3. Double-click to enter and see if there is a license file, as shown below As shown in the picture: 4. Then copy the license file to this file, as shown in the following picture: 5. In the PROGRAMFILES file of the C drive, create a new PLC folder, as shown in the following picture: 6. Copy the license file as well Click in, as shown in the figure below: 7. Double-click the installation file of the main program. To install, check the box to install new software.

Many users have just downloaded the solidworks2018 software and still don’t know how to install solidworks2018? Next, the editor will bring you a solidworks2018 installation tutorial. Interested users can take a look below. 1. Open the software we downloaded, and then find the _SolidSQUAD_ folder, find the SolidWorks.2017-2018.Activator.SSQ file inside, double-click to open, and then the following interface will appear: click on the first item in turn, the icon item on the right, Finally, click the Accept button below, and the following pop-up window will appear: Click YES, and click OK in the dialog box to continue the pop-up window. 2. Then we click
