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

  다른 뜻에 대해서는 우분투 apache2: Could not reliably determine the server's fully qualified domain name 문서를 참조하십시오.
httpd 시작시 경고 메시지
httpd: Could not reliably determine the server's fully qualified domain name

1 문제상황[ | ]

Console
Copy
[root@zetawiki ~]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 111.222.33.44 for ServerName
                                                           [  OK  ]
→ 방치해도 상관 없지만, 깔끔하지 않다...

2 httpd.conf 확인/수정[ | ]

Console
Copy
[root@zetawiki ~]# cat /etc/httpd/conf/httpd.conf | grep ServerName
# ServerName gives the name and port that the server uses to identify itself.
#ServerName www.example.com:80
# ServerName directive.
#    ServerName dummy-host.example.com
→ ServerName이 지정되지 않았다.

실제 인터넷 도메인과 맞을 필요는 없다. 형식만 맞춰주면 된다.

Console
Copy
[root@zetawiki ~]# sed -i 's/\#ServerName/ServerName/g' /etc/httpd/conf/httpd.conf
[root@zetawiki ~]# cat /etc/httpd/conf/httpd.conf | grep ServerName
# ServerName gives the name and port that the server uses to identify itself.
ServerName www.example.com:80
# ServerName directive.
#    ServerName dummy-host.example.com
→ 따라서, 주석처리(#) 제거하고 확인

3 httpd 재시작[ | ]

Console
Copy
[root@zetawiki ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
→ 더 이상 경고메시지가 뜨지 않는다.

4 같이 보기[ | ]

  • CentOS7 MariaDB 설치
    안녕하세요! 질문이 있어서 글을 남기게 됩니다!! http://yum.mariadb.org/10.3 로 이동하면 안에 centos7,centos73,centos74 와 같이 나뉘어져 있더라고요!! 이게 버전을 명칭하는거 같은데...(제 생각으로는..) 버전을 명칭하는게 맞는지?! 전귀현
  • CentOS7 MariaDB 설치
    CentOS 7.6에서 MariaDB 10.4을 설치해보니 잘 됩니다. repo를 추가하고 yum install MariaDB하면 가장 적절한 패키지를 찾아서 설치해줍니다. (이게 yum이라는 패키지 매니저의 역할이죠). 결과적으로 설치된 rpm패키지명은 MariaDB-server-10J Jmnote