PS V:\Download\IDM> scp nginx-1.22.0.tar.gz lilbai@192.168.232.130:/home/lilbai/Downloads @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:AQwRNHiaj9xZRd9uf94RSJfPsz9B6Gxcb+ob4D201OU. Please contact your system administrator. Add correct host key in C:\\Users\\lilbai518/.ssh/known_hosts to get rid of this message. Offending ECDSA key in C:\\Users\\lilbai518/.ssh/known_hosts:5 ECDSA host key for 192.168.232.130 has changed and you have requested strict checking. Host key verificat
删除远程机公钥
清除ssh秘钥,解决旧的远程记录存在导致新的不生效
1 2 3 4
ssh-keygen -R 192.168.232.130 # 这个IP地址就是你想要清除的IP地址的公钥 # Host 192.168.232.130 found: line 5 C:\Users\lilbai518/.ssh/known_hosts updated. Original contents retained as C:\Users\lilbai518/.ssh/known_hosts.old
重新上传文件
1 2 3 4 5 6 7
PS V:\Download\IDM> scp nginx-1.22.0.tar.gz lilbai@192.168.232.130:/home/lilbai/Downloads The authenticity of host '192.168.232.130 (192.168.232.130)' can't be established. ECDSA key fingerprint is SHA256:AQwRNHiaj9xZRd9uf94RSJfPsz9B6Gxcb+ob4D201OU. Are you sure you want to continue connecting (yes/no/[fingerprint])? Warning: Permanently added '192.168.232.130' (ECDSA) to the list of known hosts. lilbai@192.168.232.130's password: nginx-1.22.0.tar.gz
[root@localhost opt]# wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.67/bin/ --2022-09-27 02:32:35-- https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.67/bin/ap Resolving dlcdn.apache.org (dlcdn.apache.org)... 151.101.2.132, 2a04:4e42::644 Connecting to dlcdn.apache.org (dlcdn.apache.org)|151.101.2.132|:443... connecte ERROR: cannot verify dlcdn.apache.org's certificate, issued by ‘/C=US/O=Let's En Issued certificate has expired. To connect to dlcdn.apache.org insecurely, use `--no-check-certificate'. [root@localhost opt]# ping www.baidu.comn ping: www.baidu.comn: Name or service not known
解决问题
wget命令下载不安全的https 域名下的内容时会提示以上内容
解决办法:安装一下A证书即可解决问题
1
yum install -y ca-certificates
删除端口失败:Could not delete non-existent rule
报错内容
想删除8888端口,但是发现删除失败
1 2 3
root@ecs-205380:/home/lilbai# ufw delete allow 8888 Could not delete non-existent rule Could not delete non-existent rule (v6)
启动Jenkins.war包报错:AWT is not properly configured on this server.
刚想跑一下war包,就出错了
报错内容
报错内容
1
AWT is not properly configured on this server. Perhaps you need to run your container with “-Djava.awt.headless=true”? See also: https://jenkins.io/redirect/troubleshooting/java.awt.headless
checking whether to build with LIBXML support... yes checking for libxml-2.0 >= 2.9.0... no configure: error: Package requirements (libxml-2.0 >= 2.9.0) were not met:
No package 'libxml-2.0' found
解决方法
1
apt install libxml2
No package ‘krb5-gssapi’ found
1 2 3 4 5
checking for krb5-gssapi krb5... no configure: error: Package requirements (krb5-gssapi krb5) were not met:
No package 'krb5-gssapi' found No package 'krb5' found
解决方法
1
apt-get -y install gcc libkrb5-dev
No package ‘sqlite3’ found
1 2 3 4
checking for sqlite3 >= 3.7.7... no configure: error: Package requirements (sqlite3 >= 3.7.7) were not met:
No package 'sqlite3' found
解决方法
1
apt-get install libsqlite3-dev
configure: error: Please reinstall the BZip2 distribution
Err:6 http://archive.canonical.com/ubuntu xenial InRelease Error writing to file - write (28: No space left on device) [IP: 91.189.91.15 80]
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/xenial/InRelease Error writing to file - write (28: No space left on device) [IP: 111.170.130.228 80] ...
# 网易163 deb http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse
配置nginx日志format出错
错误内容
1 2
nginx: [emerg] unknown log format "main"in /usr/local/nginx/conf/conf/conf.default:6 nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
其中conf.default文件内容为如下:
1 2 3 4 5 6 7
server { listen80; server_namenginx.testwww.nginx.test; root/usr/local/nginx/html; indextest15.html; access_log/usr/local/nginx/a.com.access.logmain; }