Apache安裝
********************
Apache安裝
********************
http://httpd.apache.org/docs/2.4/ 官方文件
1.解壓
[root@ocp u01]# tar zxf httpd-2.4.17.tar.gz
2.將包放到src下
[root@ocp u01]# mv httpd-2.4.17 /usr/local/src
3. 安裝 apache 依賴關聯包(共四個:apr,apr-iconv,apr-util,pcre)
(1)、安裝apr
# tar zxvf apr-1.3.8.tar.gz
# cd apr-1.3.8
# ./configure --prefix=/usr/local/apr
# make
# make install
(2)、安裝apr-iconv
# 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
# tar zxvf apr-util-1.3.9.tar.gz
# cd apr-util-1.3.9
# ./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
下載地址:http://sourceforge.net/projects/pcre/files/
[root@ocp pcre-8.37]# tar zxf pcre-8.37.tar.gz
[root@ocp pcre-8.37]# cd pcre-8.37
[root@ocp pcre-8.37]# ./configure --prefix=/usr/local/pcre
# make
# make install
4.安裝apahce
[root@ocp httpd-2.4.17]# ./configure --prefix=/usr/local/web/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
[root@ocp httpd-2.4.17]# make
[root@ocp httpd-2.4.17]# make install
5.檢視是否安裝成功
[root@ocp httpd-2.4.17]# /usr/local/web/apache/bin/apachectl -v
Server version: Apache/2.4.17 (Unix)
Server built: Sep 24 2015 10:16:05
出現版本資訊,說明安裝成功
6.啟動apache
[root@ocp httpd-2.4.17]# /usr/local/web/apache/bin/apachectl start
Apache安裝
********************
http://httpd.apache.org/docs/2.4/ 官方文件
1.解壓
[root@ocp u01]# tar zxf httpd-2.4.17.tar.gz
2.將包放到src下
[root@ocp u01]# mv httpd-2.4.17 /usr/local/src
3. 安裝 apache 依賴關聯包(共四個:apr,apr-iconv,apr-util,pcre)
(1)、安裝apr
# tar zxvf apr-1.3.8.tar.gz
# cd apr-1.3.8
# ./configure --prefix=/usr/local/apr
# make
# make install
(2)、安裝apr-iconv
# 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
# tar zxvf apr-util-1.3.9.tar.gz
# cd apr-util-1.3.9
# ./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
下載地址:http://sourceforge.net/projects/pcre/files/
[root@ocp pcre-8.37]# tar zxf pcre-8.37.tar.gz
[root@ocp pcre-8.37]# cd pcre-8.37
[root@ocp pcre-8.37]# ./configure --prefix=/usr/local/pcre
# make
# make install
4.安裝apahce
[root@ocp httpd-2.4.17]# ./configure --prefix=/usr/local/web/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
[root@ocp httpd-2.4.17]# make
[root@ocp httpd-2.4.17]# make install
5.檢視是否安裝成功
[root@ocp httpd-2.4.17]# /usr/local/web/apache/bin/apachectl -v
Server version: Apache/2.4.17 (Unix)
Server built: Sep 24 2015 10:16:05
出現版本資訊,說明安裝成功
6.啟動apache
[root@ocp httpd-2.4.17]# /usr/local/web/apache/bin/apachectl start
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26937943/viewspace-1814531/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 下載安裝ApacheApache
- apache編譯安裝Apache編譯
- Apache Ranger安裝部署ApacheRanger
- apache httpd安裝 配置Apachehttpd
- apache tomcat 安裝ApacheTomcat
- mac安裝apache flinkMacApache
- 安裝apache及介紹Apache
- Linux下安裝ApacheLinuxApache
- 離線安裝 Apache AmbariApache
- 伺服器安裝Linux中安裝 Apache伺服器LinuxApache
- apache安裝和調整效能安裝實踐(轉)Apache
- CentOS 下編譯安裝 apacheCentOS編譯Apache
- PHP安裝及與apache整合PHPApache
- Apache安裝部署及工作模式Apache模式
- CentOS 6.4 編譯安裝 apacheCentOS編譯Apache
- 安裝apache+php記錄ApachePHP
- CentOS下Apache安裝總結CentOSApache
- apache、php、mysql安裝過程ApachePHPMySql
- 指令碼安裝apache+php指令碼ApachePHP
- apache 2.0.47 安裝筆記(轉)Apache筆記
- Apache2.2.21安裝圖解Apache圖解
- Windows下安裝 Apache PHP Mysql RedisWindowsApachePHPMySqlRedis
- Linux伺服器---安裝apacheLinux伺服器Apache
- ubuntu安裝php+mysql+apache2UbuntuPHPMySqlApache
- Apache安裝與最佳化教程。Apache
- Mac下安裝apache waf模組modsecurityMacApache
- win7安裝apache+phpWin7ApachePHP
- 安裝 Apache2+PHP5+MySQLApachePHPMySql
- linux解除安裝mysql,apache,phpLinuxMySqlApachePHP
- centos6 下的apache安裝CentOSApache
- 安裝配置篇--apache+resin(轉)Apache
- apache2 安裝與配置(轉)Apache
- SUSE 下安裝php+apache+mysqlPHPApacheMySql
- linux_apache_Subversion安裝配置LinuxApache
- apache的安裝和修改埠號Apache
- CentOSYUM安裝Apache2後如何安裝配置mod_fastcgiCentOSApacheAST
- Centos7安裝Web伺服器–Apache2.4.18安裝CentOSWeb伺服器Apache
- 如何進行Apache的編譯安裝Apache編譯