1. 程式人生 > >解決apache啟動錯誤:Could not reliably determine the server's fully qualified domain name

解決apache啟動錯誤:Could not reliably determine the server's fully qualified domain name

原文地址:http://www.2cto.com/os/201201/117797.html

啟動apache遇到錯誤:httpd: Could not reliably determine the server's fully qualified domain name

[[email protected] httpd-2.2.4]# /usr/local/apache/bin/apachectl start
 
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
 
1)進入apache的安裝目錄:(視個人安裝情況而不同) [
[email protected]
~]# cd /usr/local/apache/conf
 
2)編輯httpd.conf檔案,搜尋"#ServerName",新增ServerName localhost:80
[[email protected] conf]# ls
extra  httpd.conf  magic  mime.types  original
[[email protected] conf]# vi httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
3)再重新啟動apache 即可。
[
[email protected]
~]# /usr/local/apache/bin/apachectl restart

相關推薦

解決apache啟動錯誤Could not reliably determine the server's fully qualified domain name

原文地址:http://www.2cto.com/os/201201/117797.html 啟動apache遇到錯誤:httpd: Could not reliably determine the server's fully qualified domain name

Apache啟動時報錯Could not reliably determine the server's fully qualified domain name

apache無法啟動,提示: 正在啟動 httpd:httpd: apr_sockaddr_info_get() failed for CentOS httpd: Could not reliab

解決httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName解決辦法非常簡單:[email protecte

linux Could not reliably determine the server's fully qualified domain name

今天在安裝httpd之後,搞了一下apache2.2和tomcat7的整合; 在重啟apache2.2的時候,出現了: [[email protected] conf]# service httpd restart 停止 httpd:

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::1

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::1

AH00558: httpd.exe: Could not reliably determine the server's fully qualified do main name, using fe

Apache的配置檔案則是conf目錄下的httpd.conf檔案,將其開啟: 首先找到ServerName(約213行),將其設定為localhost:80,並將前面的井號刪除,雖然這一步如果不修改的話也可以正常執行,但啟動Apache服務時會有一條煩人的提示(AH

解決apache啟動錯誤"httpd:Could not reliably determine

啟動apache遇到錯誤:httpd: Could not reliably determine the server's fully qualified domain name [[email protected] httpd-2.2.4]# /usr/l

httpd: Could not reliably determine the server's fully

httpdStarting httpd: httpd: Could not reliably determine the server‘s fully qualified domain name, using 192.168.229.152 for ServerName(2)No such file or d

httpd: Could not reliably determine the server's fully qualified domain name

httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName 解決辦法非常簡單: #vim /web/apache/conf/h

Eclipse中啟動Tomcat時(MAVEN專案),報錯Could not publish to the server. java.lang.IndexOutOfBoundsException的解決過程

Eclipse中啟動Tomcat時(MAVEN專案),報錯:Could not publish to the server. java.lang.IndexOutOfBoundsException,tomcat啟動失敗,   原因:該MAVEN專案下載的本地jar包存在下載失敗的情況 &nbs

啟動錯誤Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

專案啟動報錯:Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"專案在配置更改後要對maven進行clean,install的操作,清除以重新編譯專

tomcat啟動報錯Could not publish to the server. java.lang.NullPointerException

tomcat部署好後用了很久,突然啟動報錯: Could not publish to the server. java.lang.NullPointerException 解決方法: 在e

Redis在windows下的安裝啟動解決一個錯誤Could not get a resource from the pool)

由於專案需要,最近在將專案的每個模組改變成一個單獨的服務來進行部署,但是服務寫完之後,在啟動時報了一個錯誤:Could not get a resource from the pool,如下圖所示: 由以上資訊並查閱資料後明白可能是redis沒有啟動,但是公司

Spark叢集啟動python shell錯誤 Could not resolve hostname localhost: Temporary failure

Hadoop叢集部署參考:點選檢視 Spark叢集部署參考:點選檢視 最近在自己搭建的平臺上測試spark-python指令碼,發現一個錯誤如下: <span style="font-size:14px;">[[email protected] spa

解決myeclipse錯誤Could not create the view: An unexpected exception was thrown.

報錯資訊如下: at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.loadFromPreferences(Unknown Source) at com.genuitec.ec

【SpringBoot】整合JPA啟動基於JPA的單元測試方法報如下錯誤could not initialize proxy

出現該錯誤,分析了一下原因:基於JPA的實現來說,在進行資料庫訪問的時候,針對資料庫的訪問與操作session已經關閉釋放了。 百度了一下,網上有如下解決方案: 第一種方案:在@OneToMany的引數中使用fetch=FetchType=Eager 未涉及到該註解的使

Eclipse使用Maven建立Web時錯誤Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webap

     如圖:接下來在使用剛新增的catalog建立web工程          這個時候就可以看到Eclipse聯網下載了:     這個時候看一下是不是建立成功了如果還是不能建立或者問題沒有解決可以安裝下面的方法:1.刪除maven已經下載的檔案路徑:.m2\repository\org\apache\

Tomcat啟動失敗Could not publish server configuration for Tomcat v7.0 Server at localhost.

出錯資訊 Tomcat啟動失敗,出現提示資訊: Could not publish server configuration for Tomcat v7.0 Server at localhost. Multiple Contexts have a path of “/system”

註解配置實體類出現錯誤Could not determine type for: java.util.Set, at table

org.hibernate.MappingException: Could not determine type for: java.util.Set, at table: bs_merchant, for columns: [org.hibernate.mapping.Co

qt程式編譯錯誤could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’

linux下安裝Qt5.7後新增qmake環境變數後出現錯誤 執行: qmake -v 出現錯誤:qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory 分析: qtch