欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到夢飛科技

服務器租用

當前優惠活動:

Linux系統下編譯安裝Apache處事器進程

1.1.  安裝 Apache
[[email protected] src]# yum  remove httpd*

[[email protected] src]# wget http://apache.etoak.com//httpd/httpd-2.2.22.tar.gz

[[email protected] src]# tar -zxvf httpd-2.2.22.tar.gz

[[email protected] src]# cd httpd-2.2.22

[[email protected] httpd-2.2.22]# ./configure –prefix=/usr/local/apache2 –enable-mods-shared=all -with-ssl -enable-ssl -enable-so

[[email protected] httpd-2.2.22]# ./configure –prefix=/usr/local/apache2 -with-ssl -enable-ssl -enable-so -enable-rewrite

 [[email protected] httpd-2.2.22]# make

[[email protected] httpd-2.2.22]# make install

開機自啟動要領配置

[[email protected] httpd-2.2.22]#cp -f /usr/local/apache2/bin/apachectl /usr/sbin/apachectl

[[email protected] httpd-2.2.22]#cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd

[[email protected] httpd-2.2.22]# chmod +x /etc/rc.d/init.d/httpd

[[email protected] httpd-2.2.22]#chkconfig –add httpd

[[email protected] httpd-2.2.22]#chkconfig –level 345 httpd on

呈現錯誤提示:service httpd does not support chkconfig

辦理: 在文件/etc/rc.d/init.d/httpd中#!/bin/sh后頭插手下面兩行內容:

# chkconfig: 345 85 15

# description: Apache is a World Wide Web server.

然后再

[[email protected] httpd-2.2.22]# chmod +x /etc/rc.d/init.d/httpd

[[email protected] httpd-2.2.22]#chkconfig –add httpd

[[email protected] httpd-2.2.22]#chkconfig –level 345 httpd on

另一種開機自啟動要領配置:

[[email protected] httpd-2.2.22]# vi /etc/rc.local

插手以下內容

/usr/local/apache2/bin/apachectl start

啟用Apache

[[email protected] httpd-2.2.22]# export PATH=$PATH:/usr/local/apache2/bin

[[email protected] httpd-2.2.22]# apachectl start

或:

[[email protected] httpd-2.2.22]# service httpd -k start

[[email protected] httpd-2.2.22]# httpd -k start

若呈現錯誤提示:

httpd: Syntax error on line 106 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory

說明/usr/local/apache2/modules/libphp5.so不存在,鄭州電信服務器 服務器托管,需從頭編譯PHP,或在已編譯好的PHP目次中將libphp5.so復制一份到apache2安裝目次,如:

 [[email protected] httpd-2.2.22]# cp /usr/local/src/php-5.4.4/libs/libphp5.so /usr/local/apache2/modules/

遏制Apache

[[email protected] httpd-2.2.22]# export PATH=$PATH:/usr/local/apache2/bin

[[email protected] httpd-2.2.22]# apachectl stop

或:

[[email protected] httpd-2.2.22]# service httpd -k stop

[[email protected] httpd-2.2.22]# httpd -k stop

重啟Apache

[[email protected] httpd-2.2.22]# export PATH=$PATH:/usr/local/apache2/bin

[[email protected] httpd-2.2.22]# apachectl restart

或:

[[email protected] httpd-2.2.22]# service httpd -k restart

[[email protected] httpd-2.2.22]# httpd -k restart

若呈現以下錯誤:

httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

httpd not running, trying to start

(98)Address already in use: make_sock: could not bind to address [::]:80

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down

Unable to open logs

夢飛科技 - 全球數據中心基礎服務領先供應商

Copyright © 2003-2019 MFISP.COM. 國外服務器租用 IDC公司 版權所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 茂名市| 商都县| 巴彦淖尔市| 息烽县| 蒙阴县| 江阴市| 舟山市| 仙游县| 玉环县| 无锡市| 马关县| 谷城县| 苍山县| 巨野县| 清原| 琼海市| 西吉县| 澄迈县| 昆明市| 徐汇区| 石家庄市| 修文县| 都昌县| 望谟县| 宜黄县| 樟树市| 商水县| 彰化县| 德庆县| 新郑市| 西安市| 潞城市| 剑阁县| 民丰县| 文成县| 白城市| 永福县| 龙口市| 胶州市| 吉木乃县| 务川|