centos64位lamp配置第二步:源码编译apache2.2.25
来源:互联网 发布:阿里云主营业务 编辑:程序博客网 时间:2024/05/19 13:21
首先去官网下载apache-2.2.25.tar.gz,然后安装需要的软件yum -y install wget gcc-c++ ncurses ncurses-devel cmake make perl bison openssl openssl-devel gcc* libevent libevent-devel libxml2 libxml2-devel libmcrypt libmcrypt-devel curl-devel libpng-devel libtool-ltdl-devel libjpeg* libpng* freetype*。
1.解压: tar -zxvf apache-2.2.25.tar.gz,建立mkdir /usr/local/apache目录
2.进入apache-2.2.25目录,编译:./configure --prefix=/usr/local/apache --enable-vhost-alias --enable-rewrite --enable-ssl --enable-so --enable-info --enable-deflate=shared --enable-modules=speling
3.编译完成后,make && make install
4.复制初始化文件到/etc/init.d下,cp build/rpm/httpd.init /etc/init.d/httpd
5.设置apache开机启动:chkconfig --add httpd
chkconfig --level 345 httpd on
6.vim /usr/local/apache/conf/httpd.conf,找到ServerName那一行,去掉前面的注释.
7.开机启动:
cp /opt/httpd-2.2.27/support/apachectl /etc/init.d/httpd
vi /etc/init.d/httpd
在文件开头加入下面几行:
#!/bin/sh
# chkconfig: 2345 85 15
# description: Apache is a World Wide Web server.
chmod +x /etc/init.d/httpd
/sbin/chkconfig --add httpd
/sbin/chkconfig --list httpd
ln -s /sbin/chkconfig /usr/bin/chkconfig
ln -s /sbin/service /usr/bin/service
启动:/etc/init.d/httpd start或service httpd start
- centos64位lamp配置第二步:源码编译apache2.2.25
- centos64位lamp配置第三步:编译php5.3.27
- centos64位,apache2,python2.5,django,mod_python平台安装配置。
- CentOS64位上编译 Hadoop 2.6.0
- CentOS6.4 LAMP配置 非源码编译
- Hadoop CentOS64位,maven编译出现的问题
- centos64-python27-mod_wsgi-apache2.4
- centos64位安装nginx
- PHP开发网站第二步:关联并配置PHP与Apache2.4
- lamp源码编译
- 源码编译安装LAMP
- 源码编译LAMP
- Caffe CentOS64位 GPU安装
- centos64位c语言编译时/usr/bin/ld: cannot find -lmysqlclient
- CentOS编译安装LAMP:编译安装 Apache2.4
- 源码编译安装lamp环境
- 源码包方式编译LAMP
- centos6源码编译安装lamp
- UVA10917 A Walk Through the Forest
- 树型动态规划小练
- Unique Paths II
- Files 的值“<<<<<<< .mine”无效。路径中具有非法字符。
- Axis2开发环境的搭建
- centos64位lamp配置第二步:源码编译apache2.2.25
- C使用 stdarg 宏来实现函数的可变参数列表
- Linux编辑器vi使用方法详细介绍
- Android在主UI中使用Socket服务
- jdbc mysql 中文乱码问题的解决
- Length of Last Word
- Activity中的onCreate(Bundle savedInstanceState)
- linux下使用python进行opencv开发
- 关于栈的习题的解答