apach安装报错 Set the ‘ServerName’ directive globally to suppress this message

Posted 。。。

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apach安装报错 Set the ‘ServerName’ directive globally to suppress this message相关的知识,希望对你有一定的参考价值。

Could not reliably determine the server’s fully qualified domain name, using fe80::d558:4c0:68e3:fdd1. Set the ‘ServerName’ directive globally to suppress this message

直接在httpd.conf 文件中添加
ServerName localhost:80

Mysql启报错报The server quit without updating PID file

mysql 安装时候安装后启动不成功报错:

Starting MySQL.. ERROR! The server quit without updating PID file (/data/mysql/26765574162f.pid).

技术分享图片


查看报错日志:

[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

技术分享图片


解决办法:


1.编辑配置文件:

vim /etc/my.cnf
basedir = /usr/local/mysql
datadir = /data/mysql
socket = /tmp/mysql.sock
log-error = /data/mysql/error.log
pid-file = /data/mysql/mysql.pid
user = mysql
tmpdir = /tmp

2.重新初始化mysql:

./mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql --pid-file=/data/mysql/mysql.pid --tmpdir=/tmp

然后再启动就会成功了:

技术分享图片


以上是关于apach安装报错 Set the ‘ServerName’ directive globally to suppress this message的主要内容,如果未能解决你的问题,请参考以下文章

httpd启动报错httpd: Could not reliably determine the server's fully qualified domain name

安装Kubernetes报错:The connection to the server localhost:8080 was refused

FlinkFlink 写入 kafka 报错 The server disconnected before a response was received

安装VisualSVN Server 报错The specified TCP port is occupied

The server of Apache

tomcat server 报错之 More than the maximum allowed number of cookies