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:
-
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. -
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?..