當前位置:首頁 » 操作系統 » 源碼安裝apache

源碼安裝apache

發布時間: 2022-01-19 04:11:40

A. 如何使用apache源代碼安裝

進入該文件夾並依次執行:
/configure --prefix=/work/installed/apr-util --with-apr=/work/installed/apr
make
make install

B. linux編譯安裝apache httpd2.4 make報錯

缺少pcre-8.41.tar.gz包,找一個pcre和你httpd對應得版本安裝
./configure --prefix=/usr/local/pcre
make && make install
安裝好了之後,加上參數--with-pcre=/usr/local/pcre 如下所示
./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

C. linux下apache安裝問題,apache成功安裝/usr/local/apache2目錄下,但是在啟動時卻提示

啟動apache方法:

1: service httpd restart
2: /etc/init.d/httpd restart
3: /源碼包安裝時指定的目錄 start

D. 編譯安裝apache遇到很多麻煩唉

實體機能ping通虛擬機嘛,它倆在一個網段嘛,如果互相能通信,web應該是可以訪問的!

E. linux下,源碼安裝apache,提示./congigure,沒有哪個文件或目錄

./configure
你的命令打錯了。

F. apache用源代碼安裝好 還是 apt-get

在 Linux 系統中,使用 apt-get 獲取軟體並安裝自動化更高一些。但是有些驅動程序是沒有現成的,是必須需要自行從網上下載後,再和系統的內核一起進行編譯。如果是從網上下載源代碼來進行編譯的話,用戶操作起來就得麻煩一些。

G. 我用源碼包安裝了apache,需要刪除。我已經將/usr/local/apache2 目錄已經刪除,下一步將怎麼做謝謝

基本不用做什麼了,其他的即使有保留著,比如啟動文件什麼的,也沒什麼影響

H. linux怎麼安裝apache

這是CentOS7編譯安裝方法(或者你也可以yum安裝,這種安裝方法版本較低):
CentOS 下編譯安裝Apache
卸載原有的apache
首先從 http://httpd.apache.or 下載apache源碼包httpd-2.4.4.tar.gz
然後從 http://apr.apache.org 下載apr-1.4.6.tar.gz和apr-util-1.5.1.tar.gz
然後從 http://sourceforge.net/ 下載pcre-8.32.tar.gz和pcre-devel-8.32.tar.gz
先裝gcc和make
yum -y install gcc
yum -y install make
yum -y install gcc-c++ 沒有這個gcc-c++一會編譯不prce
切到下載好的源碼包目錄,本人是~/Download

安裝apr:
tar -zvxf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure --prefix=/usr/local/apr
make && make install

安裝apr-util
tar -zvxf apr-util-1.5.1.tar.gz
cd apr-util-1.5.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install

安裝pcre
tar -zvxf pcre-8.32.tar.gz
cd pcre-8.32
./configure
make && make install

安裝pcre-devel
如果已經安裝好了pcre 一定要安裝
tar –zxvf pcre-devel-8.32.tar.gz
cd pcre-devel-8.32
./configure
make && make install

安裝apache 一定要先裝上面那三個不然編譯不了
tar -zvxf httpd-2.4.4.tar.gz
cd httpd-2.4.4
./configure --prefix=/usr/local/apache –with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
make && make install

配置/usr/local/apache/conf下的http.conf文件(先備份)。
1、伺服器
#ServerName www.example.com:80 前的#號刪除。
2、目錄訪問許可權
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all #修改為此樣
</Directory>
3、默認字元集
AddDefaultCharset utf-8 #指定默認字元集

4、啟動httpd
cd bin/
./apachectl start | restart | stop

將httpd添加為系統服務
cp apachectl /etc/init.d/httpd
/etc/init.d/

編輯httpd,在第二行加入如下信息:
# chkconfig: 345 85 15
# description: Activates/Deactivates Apache Web Server
以上兩句必須添加,否則會提示「httpd服務不支持」;第一行3個數字參數意義分別為:哪些Linux級別需要啟動httpd(3,4,5);啟動序號(85);關閉序號(15)。

添加啟動信息(Ubuntu與CentOS有區別)
chkconfig –add httpd
查看是否添加成功
chkconfig --list

伺服器控制
service httpd start | restart | stop

I. Linux中,怎麼下載Apache,Mysqlphp這些源碼安裝包

現在基本都不用這么安裝了,直接安裝個工具包,什麼都有了!!!phpstudy,中國的!網路下,就有下載地址!!!

J. 源碼安裝apache報錯如下,求助

如下:
ab.o: In function `main':
/APP/software/httpd-2.4.4/support/ab.c:2273: undefined reference to `TLSv1_2_client_method'
/APP/software/httpd-2.4.4/support/ab.c:2271: undefined reference to `TLSv1_1_client_method'
collect2: ld returned 1 exit status
make[2]: *** [ab] Error 1
make[2]: Leaving directory `/APP/software/httpd-2.4.4/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/APP/software/httpd-2.4.4/support'
make: *** [all-recursive] Error 1

熱點內容
單片機android 發布:2024-09-20 09:07:24 瀏覽:763
如何提高三星a7安卓版本 發布:2024-09-20 08:42:35 瀏覽:662
如何更換伺服器網站 發布:2024-09-20 08:42:34 瀏覽:309
子彈演算法 發布:2024-09-20 08:41:55 瀏覽:287
手機版網易我的世界伺服器推薦 發布:2024-09-20 08:41:52 瀏覽:815
安卓x7怎麼邊打游戲邊看視頻 發布:2024-09-20 08:41:52 瀏覽:160
sql資料庫安全 發布:2024-09-20 08:31:32 瀏覽:91
蘋果連接id伺服器出錯是怎麼回事 發布:2024-09-20 08:01:07 瀏覽:505
編程鍵是什麼 發布:2024-09-20 07:52:47 瀏覽:655
學考密碼重置要求的證件是什麼 發布:2024-09-20 07:19:46 瀏覽:479