CentOS Start SendMail Service long time Problem solving method

Source: Internet
Author: User

The host name is not set up to cause the following 2 issues:

1, CentOS start time sendmail, sm-client wait long.

2, SendMail Error

Workaround: Correct the hostname and restart it.

two places need to be modified : One is/etc/sysconfig/network and the other is/etc/hosts, and it is not enough to modify one place at a.

Switch to the root user under the character interface (CentOS uses ALT+CTAL+F6).

/etc/sysconfig/network
Open the file with any of your favorite editors, with a line of Hostname=localhost.localdomain (if default), and modify Localhost.localdomain to your hostname.

Like Hostname=yes81.localdomain.

/etc/hosts
Open the file, there will be a line 127.0.0.1 localhost.localdomain localhost. Where 127.0.0.1 is the local loop address, Localhost.localdomain is the hostname (hostname), which is what you want to modify. LocalHost is the alias of the hostname, which appears under the Konsole prompt. Change the second item to your hostname, and the third option is optional.

I modified to: 127.0.0.1 yes81.localdomain localhost

After modifying the above two documents, it will not be effective immediately. If you want to take effect immediately, you can use hostname your-hostname for temporary modification, it just temporarily modifies the hostname, the system restarts will be restored as is. However, modifying the above two files is permanent, and rebooting the system will give you a new host name.

Finally, check the hostname uname-n after rebooting.

Reboot, basically without waiting. Launch directly into the wait screen.


This article is from the Linux Technical Exchange blog, so be sure to keep this source http://9678130.blog.51cto.com/9668130/1769684

CentOS Start SendMail Service long time Problem solving method

Related Article

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.