摘要: 两个目的: 1)屏蔽/login.jsp等路径,防止公网尝试爆破 2)启用https 实践之后,配置如下: server { listen 80 default; server_name _; return 403; } server { listen 80; server_name jira.xx 阅读全文
posted @ 2021-03-29 14:22 qinliang 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 目的:项目迁移,从aws迁移到其他云商C调研:aws ec2支持导出成ova格式,C云商也支持后台导入步骤:1)aws ec2安装aws cli参考https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/install-cliv2-linux.h 阅读全文
posted @ 2021-01-07 17:00 qinliang 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 本地yum安装的nginx 在/etc/nginx 默认配置文件在/etc/nginx/nginx.conf 确保include /etc/nginx/conf.d/*.conf未被注释 在/etc/nginx/conf.d/文件夹下添加如下download.conf配置文件 server { li 阅读全文
posted @ 2021-01-06 19:09 qinliang 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 安装strace yum install strace strace 后跟命令strace df -h 看最后一行卡住的信息,再去排查 阅读全文
posted @ 2021-01-06 19:06 qinliang 阅读(383) 评论(0) 推荐(0) 编辑
摘要: Missing prerequisites. IBM has the solution below: yum install gtk2.i686 yum install libXtst.i686 If you received the the missing libstdc++ message ab 阅读全文
posted @ 2020-12-30 16:32 qinliang 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 自建mysql5.7忘记root密码 环境:os:centos7.8 解决步骤:1)先关闭mysqlsystemctl stop mysqld 2)然后查找到my.cnf,在[mysqld]下增加一段信息[mysqld]skip-grant-tables 3)启动mysql,登录,重置密码syste 阅读全文
posted @ 2020-12-30 16:18 qinliang 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 原因:https://wiki.centos.org/About/Product?spm=a2c4g.11174386.n2.3.605e1d82pphpDY%3E 解决方法: 1、关闭fastestmirrorsed -i 's/enabled=1/enabled=0/' /etc/yum/plu 阅读全文
posted @ 2020-12-08 16:34 qinliang 阅读(1478) 评论(0) 推荐(0) 编辑
摘要: 已知条件: #公司VPN SERVER(106.38.xx.xx)支持windows客户端使用PPTP,MAC电脑、iphone手机使用l2tp拨入。 问题: 用户在家或者出差的时候,拨通106.38.xx.xx失败。 解决方案:使用阿里VPN代理(CentOS 7),用户将106.38.xx.xx 阅读全文
posted @ 2020-11-27 17:55 qinliang 阅读(1473) 评论(0) 推荐(0) 编辑
摘要: 关于cdn是先失效缓存,再上传更新文件,还是先上传文件再失效缓存。 经过测试,认为应该是先上传更新文件再失效缓存。 理由:如果是先失效缓存,还没上传更新文件,这会儿有请求URL,就会导致已经缓存失效的节点,又去源站请求资源,使旧资源重新缓存到了cdn缓存节点。 如果是先上传文件到cdn源站,再使缓存 阅读全文
posted @ 2020-10-15 18:33 qinliang 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 背景:需要监控业务网站的状态,于是采用zabbix 实现。 操作步骤: 1)部署脚本到zabbix proxy的/etc/zabbix/script目录 [root@zabbix-proxy zabbix]# ll scripts/total 12-rwxr-xr-x 1 root root 443 阅读全文
posted @ 2020-10-03 23:56 qinliang 阅读(417) 评论(0) 推荐(0) 编辑