Linux cocould not reliably determine the server's fully qualified domain name

Source: Internet
Author: User

After installing httpd today, we have integrated apache2.2 and tomcat 7;

When you restart apache2.2, the following error occurs:

[Root @ hb86 conf] # service httpd restart stop httpd: [failed] Starting httpd: cocould not reliably determine the server's fully qualified domain name, using 113.240.75.210 for servername

I have found a lot of information on the Internet and found that I want to change it to apachd_home/CONF/httpd. conf. Remove the # number before servername (remove the comment)

But I tried it, and I couldn't. I tried many methods on the Internet;

The prompt is the same.

I thought that the configuration files are generally in the etc directory. I tried to find them and found/etc/httpd/CONF/httpd. conf, there is also an httpd configuration file, which is opened in a different directory than the Apache directory under the installation directory, but the servername option can be found, so the # In Front Of servername is also removed, change to your own IP Address: servername 192.168.124.132: 80;

Restart httpd: Service httpd restart;

I don't think it's wrong. Haha ......

Solved ...... I have a hard problem, but I don't know why. Do you have any experts?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.