沉冰浮水

沉冰浮水

做最终到的事,成为最终成为的人!
github
bilibili
mastodon
zhihu
douban

"CentOS Notes" Common Error Message Compilation "2022-04-15"

Error Message:

www.wdssmq.com:Verify error problem: SERVFAIL looking up CAA for www.wdssmq.com

Solution:

When applying for SSL using a script, especially for wildcard certificates, you may encounter the above error. Here are the key points:

  1. Only write the root domain for the domain name, such as wdssmq.com, and add it directly to the configuration file, including the file name, which can be changed later if needed.

  2. The domain name used to apply for the certificate itself must be an A record and cannot be a CNAME.


Error Message:

# tar: www.wdssmq.com-access_log: file changed as we read it

# tar: www.wdssmq.com.log: file changed as we read it

Solution:

cd /home
if [ ! -d wwwlogs_$(date +%Y%m%d) ]; then
  mkdir wwwlogs_$(date +%Y%m%d)
  mv wwwlogs wwwlogs_$(date +%Y%m%d)
  mkdir wwwlogs
  tar -czvf wwwlogs_$(date +%Y%m%d).tar.gz wwwlogs_$(date +%Y%m%d)
fi

Explanation:

When attempting to package website logs, a prompt will appear indicating that the files have changed. The solution is to rename the log folder before packaging.


Error Message:

/bin/sh: cc: command not found

Even after installing gcc and gcc-c++ according to other tutorials, the following prompt was still displayed during the actual installation of gcc:

Requires: kernel-headers -csdn

Solution:

yum install -y kernel-headers --disableexcludes=all

Fix the missing Kernel-Headers on CentOS 7, which causes the installation of gcc and glibc-headers to fail:
https://www.cnblogs.com/morse/p/14476783.html


Error Message:

Yum update fails on a 404 returned from http://***/repodata/repomd.xml

Or

All mirror URLs are not using ftp, http[s] or file.

Solution:

This error occurred in CentOS 5.9. It shouldn't happen anymore in 2022, right?..

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.