linux下apache重启报错

重启apache报错信息如下:

Could not reliably determine the server‘s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName‘ directive globally to suppress this message。

处理方法非常简单:

1)进入apache安装目录;

2)编辑httpd.conf文件,搜索#ServerName,在其下面添加一行——ServerName localhost:80,保存退出;

3)重启apache ,service httpd restart

时间: 2024-10-11 07:14:31

linux下apache重启报错的相关文章

linux下启动tomcat报错 Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomness

INFO [localhost-startStop-1] com.mchange.v2.log.slf4j.Slf4jMLog$Slf4jMLogger$InfoLogger.log(206) | Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: Oracle.Linu

Apache重启报错原因

#Apache重启报错原因 [[email protected] /]# service httpd restart Stopping httpd:                                            [  OK  ] Starting httpd: httpd: apr_sockaddr_info_get() failed for www.example.com httpd: Could not reliably determine the server's 

Linux下Oracle11G RAC报错:在安装oracle软件时报file not found一例

Linux下Oracle11G RAC报错:在安装oracle软件时报file notfound一例 1.现象 之前安装一切都比較顺利,安装oracle软件时,进度到30%时报错:file not found(/u01/app/oracle/product/11.2.0/db_1/owb/external/oc4j_applications/applications/WFMLRSVCApp.ear) 2.应对策略 1.  改变选择语言处.仅仅选择"English": 2.  又一次解压

linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql.

linux下安装php报错configure: error: Cannot find MySQL header files under /usr/include/mysql. 2013-03-04 15:34wdjhz | 分类:服务器软件 | 浏览5318次 configure: error: Cannot find MySQL header files under /usr/include/mysql.Note that the MySQL client library is not bun

linux下发布webservice报错

本地测试的WAR包发布到tomcat下报下面的错误:起初因为环境中的tomcat有项目在运行,没想到过tomcat是window下的版本,因为可以跑其他项目,后来换个linux下的版本解决问题 2015-08-14 18:33:23,040 ERROR [org.springframework.web.context.ContextLoader] Context initialization failedorg.springframework.beans.factory.BeanCreation

Linux下安装Twisted报错

想要安装Scrapy爬虫框架就必须安装Twistedlinux下安装Twisted安装:$sudo pip install Twisted报错:error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1原因缺少一依赖包对于Python 2.x使用:   $ sudo apt-get install python-dev对于Python 2.7使用:   $ sudo

linux 下 tomcat 运行报错 Broken pipe

感谢:http://hi.baidu.com/liupenglover/blog/item/4048c23ff19f1cd67d1e7184.html 有可能是linux的线程机制会产生JVM出错的问题,特别是在连接高峰期间经常出现这样的问题,tomcat在linux下也出现类似情况. 解决办法是在环境变量中设置: _JAVA_SR_SIGNUM = 12 基本就可以解决. 在WIN环境变量中设置: _JAVA_SR_SIGNUM=12, 若Linux下用 export _JAVA_SR_SIG

Linux下启动tomcat报错RROR org.apache.catalina.core.StandardContext- Error starting static Resources java.lang.IllegalArgumentException: Document base /home/duiba/apache-tomcat/webapps/../webapps/manager do

部署项目的时候,重启tomcat,死活起不来,很郁闷,网上巴拉了半天,结合自己的情况,找到了原因: 错误日志信息: 2018-12-13 13:52:26,992 [main] INFO org.apache.catalina.core.AprLifecycleListener- The APR based Apache Tomcat Native library which allows optimal performance in production environments was no

Linux下Apache重启遇到No space left on device错误的解决方法

解决办法:1.输入:ipcs -s 看有没有超过5个,如果有请执行下面2的命令:2.ipcs -s | perl -ane '/^0x00000000/ && `ipcrm -s $F[1]`'3.重启Apache服务.(到此问题解决!)ipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}' 网上有人说用上面这条命令或者重启服务器之后也可以解决,没