网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > 服务器环境搭建
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

服务器环境搭建 Windows,Linux,IIS,Apache等服务器配置、安全维护以及PHP和MYSQL运行环境讨论。

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   IP: 114.238.82.185
Old 2016-05-27, 07:21 PM
Aniyah Aniyah is offline
初级会员
 
Join Date: 2011-03-23
Posts: 1
Aniyah 现在声名狼藉
Default centos apache 2.4.20版本安装

Code:
yum install   gcc     gcc-c++   make    uuid-devel    libuuid-devel    unzip    -y

apr中包含了一些通用的开发组件,包括mmap,DSO等等

apr-util该目录中也是包含了一些常用的开发组件。这些组件与apr目录下的相比,它们与apache的关系更加密切一些。比如存储段和存储段组,加密等等。

apr-iconv包中的文件主要用于实现iconv编码。目前的大部分编码转换过程都是与本地编码相关的。在进行转换之前必须能够正确地设置本地编码。因此假如两个非本地编码A和B需要转换,则转换过程大致为A->Local以及Local->B或者B->Local以及Local->A。

安装 apache 依赖关联包(共四个:apr,apr-iconv,apr-util,pcre)

(1)、安装apr
Code:
wget http://apache.opencas.org//apr/apr-1.5.2.tar.gz
tar zxvf apr-1.5.2.tar.gz
cd apr-1.5.2
 ./configure --prefix=/usr/local/apr
make   &&   make install
(2)、安装apr-iconv
Code:
wget http://apache.opencas.org//apr/apr-iconv-1.2.1.tar.gz
tar -zxvf apr-iconv-1.2.1.tar.gz
cd apr-iconv-1.2.1
 ./configure --prefix=/usr/local/apr-iconv --with-apr=/usr/local/apr
make   &&   make install
(3)、安装apr-util
Code:
wget http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.4.tar.gz
tar zxvf apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --prefix=/usr/local/apr-util  --with-apr=/usr/local/apr    --with-apr-iconv=/usr/local/apr-iconv/bin/apriconv
make    &&   make install
(4)、安装 pcre
Code:
wget  http://120.52.73.44/nchc.dl.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.zip
unzip  -o pcre-8.38.zip
cd pcre-8.38
./configure --prefix=/usr/local/pcre
make    &&   make install
开始正式安装apache
Code:
wget   http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.20.tar.gz
Code:
# ls httpd-2.4.20.tar.gz -sh
8.0M httpd-2.4.20.tar.gz
Code:
tar  zxvf   httpd-2.4.20.tar.gz

cd httpd-2.4.20
Code:
# ll INSTALL README

-rw-r--r-- 1 501 games 3781 10月 14 2015 INSTALL  安装

-rw-r--r-- 1 501 games 4642 1月  24 2014 README   说明

                    $ ./configure --prefix=PREFIX

                              $ make

                              $ make install

                              $ PREFIX/bin/apachectl start
Code:
./configure \
--prefix=/application/apache2.4.20  \
--enable-defalte \
--enable-expires  \
--enable-headers  \
--enable-modules=most \
--enable-so \
--with-mpm=worker \
--enable-rewrite \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util \
--with-pcre=/usr/local/pcre
make  && make install
版本信息
Code:
 /application/apache2.4.20/bin/apachectl -v
Server version: Apache/2.4.20 (Unix)

启动
Code:
/application/apache2.4.20/bin/apachectl   start
防火墙
Code:
vi /etc/sysconfig/iptables
:OUTPUT ACCEPT [0:0] 在这后面

Code:
-A OUTPUT -p tcp --sport 80 -j ACCEPT

-A INPUT -p tcp --dport 80 -j ACCEPT
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To: Run Apache HTTP Server and IIS on Windows Server 2003 yahoo 服务器环境搭建 0 2009-09-11 08:43 AM
Apache 重写规则的常见应用 (rewrite) car 服务器环境搭建 0 2008-08-27 06:47 PM
在Linux下安装PHP,APACHE,ORACLE,PERL的方法 smiling 代码交流 0 2006-12-15 07:27 PM
怎样选择合适的服务器操作系统 sunshine 服务器环境搭建 0 2006-07-03 10:36 AM
使用XAMPP轻松建站(Linux版) smiling 服务器环境搭建 0 2006-05-13 04:01 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 07:50 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.