Skip to content

使用docker搭建时发生的Apache2错误,找不到设置servername的文件 #133

@zhizhemodi

Description

@zhizhemodi

根据UOJ部署指北执行之后,查看docker logs看到下面的记录,找不到网上可用的解决方案
OS: CentOS8.2
Docker: version 20.10.10

Initing UOJ System bundle...


==> Doing initial config and start service
 * Starting MySQL database server mysqld                                 [ OK ] 
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
table upgrades created.
finished!
 * Stopping NTP server ntpd                                              [ OK ] 
 * Starting NTP server ntpd                                              [ OK ] 
 * Stopping MySQL database server mysqld                                 [ OK ] 
 * Starting MySQL database server mysqld                                 [ OK ] 
 * Restarting Apache httpd web server apache2                                   AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.5. Set the 'ServerName' directive globally to suppress this message
                                                                         [ OK ]


***Installation complete. Enjoy!***
 * Starting NTP server ntpd                                              [ OK ] 
 * Starting MySQL database server mysqld                                 [ OK ] 
 * Starting Apache httpd web server apache2                                      * 
[root@iZbp11sex44qvjoqbc4z6yZ ~]# docker logs uoj
Initing UOJ System bundle...


==> Doing initial config and start service
 * Starting MySQL database server mysqld                                 [ OK ] 
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
table upgrades created.
finished!
 * Stopping NTP server ntpd                                              [ OK ] 
 * Starting NTP server ntpd                                              [ OK ] 
 * Stopping MySQL database server mysqld                                 [ OK ] 
 * Starting MySQL database server mysqld                                 [ OK ] 
 * Restarting Apache httpd web server apache2                                   AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.5. Set the 'ServerName' directive globally to suppress this message
                                                                         [ OK ]


***Installation complete. Enjoy!***
 * Starting NTP server ntpd                                              [ OK ] 
 * Starting MySQL database server mysqld                                 [ OK ] 
 * Starting Apache httpd web server apache2                                      * 
[root@iZbp11sex44qvjoqbc4z6yZ ~]# docker logs uoj
Initing UOJ System bundle...


==> Doing initial config and start service
 * Starting MySQL database server mysqld                                 [ OK ] 
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
table upgrades created.
finished!
 * Stopping NTP server ntpd                                              [ OK ] 
 * Starting NTP server ntpd                                              [ OK ] 
 * Stopping MySQL database server mysqld                                 [ OK ] 
 * Starting MySQL database server mysqld                                 [ OK ] 
 * Restarting Apache httpd web server apache2                                   AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.5. Set the 'ServerName' directive globally to suppress this message
                                                                         [ OK ]


***Installation complete. Enjoy!***
 * Starting NTP server ntpd                                              [ OK ] 
 * Starting MySQL database server mysqld                                 [ OK ] 
 * Starting Apache httpd web server apache2                                      * 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions