摘要: 1 nginx cp nginx.conf{,.bak} egrep -v "^$|.*#" nginx.conf.bak > nginx.conf 没做bind域名系统,对于虚拟主机就用/etc/hostsj scp/sftp scp source_file_path destination_fi 阅读全文
posted @ 2025-05-30 00:10 FangNing 阅读(13) 评论(0) 推荐(0)
摘要: 1 DNS解析失败 #场景:yum配置使用wget repo失败,DNS解析超时 #法一 检查DNS配置`vim /etc/resolv.conf` #法二,strace(系统调用追踪) strace -ff -o xxx curl -o /etc/yum.repos.d/CentOS-Base.r 阅读全文
posted @ 2025-05-30 00:07 FangNing 阅读(13) 评论(0) 推荐(0)
摘要: 1 二进制安装MySQL5.7,启动报错 # 启动mysql服务时一直提示ERROR The server quit without updating PID file_error! the server quit without updating pid file #solution 因为是roo 阅读全文
posted @ 2025-05-30 00:06 FangNing 阅读(10) 评论(0) 推荐(0)
摘要: 1 启动类命令 1、启动docker: systemctl start docker 2、停止docker: systemctl stop docker 3、重启docker: systemctl restart docker 4、查看docker状态: systemctl status docke 阅读全文
posted @ 2025-05-30 00:03 FangNing 阅读(97) 评论(0) 推荐(0)
摘要: Nginx实战笔试题详细解答 题目1:配置Nginx实现简单的轮询负载均衡 要求: 配置Nginx以轮询方式将请求负载均衡到两台后端服务器:192.168.1.100:8080和192.168.1.101:8080。此外,配置一台备用服务器192.168.1.102:8080,在主服务器故障时进行故 阅读全文
posted @ 2025-05-30 00:02 FangNing 阅读(50) 评论(0) 推荐(0)