网络营销电子商务研究中心  
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运行环境讨论。

Reply
 
Thread Tools Display Modes
  #1   IP: 106.111.142.4
Old 2016-06-07, 04:20 PM
Chelmsford Chelmsford is offline
初级会员
 
Join Date: 2013-09-15
Posts: 2
Chelmsford 现在声名狼藉
Default Centos6.6安装apache2.4

1.安装apr-1.5.1.tar.gz

tar -zxvf apr-1.5.1.tar.gz
cd apr-1.5.1
./configure --prefix=/usr/local/apr
make
make install

2.安装apr-util-1.5.4.tar.gz

tar -zxvf apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --with-apr=/usr/local/apr
make
make install

3.安装pcre-8.36.tar.gz
tar -zxvf pcre-8.36.tar.gz
cd pcre-8.36
./configure --prefix=/usr/local/pcre
make
make install


4.安装httpd-2.4.10.tar.gz
tar -zxvf httpd-2.4.10.tar.gz
cd httpd-2.4.10
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-pcre=/usr/local/pcre/
make
make install

5.修改/usr/local/apache/conf/httpd.conf
找到#ServerName www.example.com:80修改为ServerName localhost:80

6.将http加入service

cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd

7.修改/etc/rc.d/init.d/httpd
在#!/bin/bash下加入

# chkconfig: 2345 50 90
# description:Activates/Deactivates Apache Web Server)


8.启动apache

service httpd start

9.验证apache是否启动成功

lsof -i:80

出现如下输出则证明apache启动
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 4158 root 4u IPv6 50349 0t0 TCP *:http (LISTEN)
httpd 4159 daemon 4u IPv6 50349 0t0 TCP *:http (LISTEN)
httpd 4160 daemon 4u IPv6 50349 0t0 TCP *:http (LISTEN)
httpd 4161 daemon 4u IPv6 50349 0t0 TCP *:http (LISTEN)
Reply With Quote
Reply


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

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


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