AIX 5.3下Apache升级安装
来源:互联网 发布:ios多线程编程组件 编辑:程序博客网 时间:2024/05/18 02:29
环境:
AIX 5.3
Apache从2.0.44升级到2.0.63
具体操作如下:
一、备份原Apache
#cp -r /usr/local/apache2 /tmp
二、安装gcc
1. 分别下载以下rpm包
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/gcc-4.2.0-3.aix5.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libgcc-4.2.0-3.aix5.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libstdcplusplus-devel-4.2.0-3.aix5.3.ppc.rpm
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc/libgcj-4.2.0-3.aix5.3.ppc.rpm
2. 如果系统没有rpm工具, 请下载 ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte
然后使用:
installp -qaXgd rpm.rte rpm.rte
进行安装。
3. 安装gcc各个rpm包
#rpm -ivh gcc-4.2.0-3.aix5.3.ppc.rpm
#rpm -ivh libgcc-4.2.0-3.aix5.3.ppc.rpm
#rpm -ivh libstdcplusplus-4.2.0-3.aix5.3.ppc.rpm
#rpm -ivh libstdcplusplus-devel-4.2.0-3.aix5.3.ppc.rpm
#rpm -ivh gcc-cplusplus-4.2.0-3.aix5.3.ppc.rpm
#rpm -ivh libgcj-4.2.0-3.aix5.3.ppc.rpm
三、删除apache
1、原apache服务停掉
#/usr/local/apache2/bin/./apachectl stop
或
#/usr/local/apache2/bin/./httpd -k stop
或
#rpm -qa | grep httpd
#rpm -e 名字 #rpm -e --nodeps 名字
2、删除
#smitty install->Maintenance and Util->Remove
四、安装apache
1、解压apache2.0.63的源代码
#gzip -d httpd-2.0.63.tar.gz
#tar -xvf httpd-2.0.63.tar
#mv httpd-2.0.63 apache
#cd apache
#配置(prefix是安装路径,enable-mods-shared=all表示编译配置所有so文件)
#./configure --prefix=/usr/local/apache --enable-mods-shared=all
(/usr/local/apache为安装目录)
约15分钟
#make
#make install
2、配置httpd.conf
#vi /usr/local/apache/conf/httpd.conf
ServerName 配置为 127.0.0.1,服务器IP或域名
DirectoryIndex 中添加index.htm index.jsp default.htm default.html
Group nobody 必须要改,否则apache不能启动
3、启动apache
#cd /usr/local/apache/bin
#./apachectl start
- AIX 5.3下Apache升级安装
- AIX 5.3L下安装Perl 5.10
- AIX下安装bash
- AIX下安装VNC
- AIX下安装Mysql
- AIX下安装bash
- 【AIX】在AIX下安装python
- AIX下的升级补丁包的命令
- AIX安装下安装软件
- Websphere8 AIX静默安装卸载升级
- linux下apache+php+mysql升级安装过程
- AIX下安装Python2.2
- 在aix下安装gcc
- AIX下安装SyBase11.92
- 在AIX下安装emacs23
- AIX下安装ORACLE步骤
- AIX下安装Python2.2
- AIX下软件安装维护
- vim初步知识的学习
- redhat enterprise linux 4as: LAMP, pvpgn, ghost++, allstats
- android.mk 文件书写规范
- MyEclipse优化设置和Tomcat初始化编码设置
- MySQL数据库主从同步总结
- AIX 5.3下Apache升级安装
- 感想
- Android - make system image
- AIX5.3下gcc的安装
- first blog
- Linux内核模块LKM的动态加载技术分析
- ORA-12519: TNS:no appropriate service handler found 解决
- Bit与Byte的区别(转载)
- 在纸张上设计软件产品原型的方法