自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Quincy.Coder的博客

坚持,冷静!!!

  • 博客(872)
  • 资源 (4)
  • 收藏
  • 关注

原创 小米手机无法安装Fiddler证书问题

WLAN–>高级设置–>安装证书https://blog.csdn.net/hanyu_aa/article/details/81356442

2019-05-02 07:49:15 4789

原创 Linux服务器记录并查询历史操作记录

https://www.cnblogs.com/aini521521/p/9718129.html之前用过,记录下。scriptreplay --timing=root-0-201904290915.date root-0-201904290915.log

2019-04-29 09:49:59 1613

原创 服务器被攻击统计及被暴力破解过程(二)

接上篇:服务器被攻击统计及被暴力破解过程(一)https://blog.csdn.net/qq_33733970/article/details/896415775.238.105.208 - - [15/Apr/2019:19:51:38 +0800] "GET / HTTP/1.1" 200 3160 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64)...

2019-04-28 17:00:26 2556

原创 服务器被攻击统计及被暴力破解过程(一)

[root@localhost wwwlogs]# awk '{print $1}' access.log | sort -n |uniq -c | sort -rn | head -n 100 893 103.224.250.73 556 123.207.115.16 550 132.232.169.146 481 132.232.181.184 478 ...

2019-04-28 16:58:38 4326

原创 Nginx Log日志统计分析常用命令

最近服务老是受攻击,看了下日志。一堆攻击啊,真是6,别人说了国内这网络环境乌烟瘴气的,确实如此,那么问题来了,如何查看日志是个大问题,下面是个大神总结的,记着以备后用:IP相关统计统计IP访问量(独立ip访问数量)awk ‘{print $1}’ access.log | sort -n | uniq | wc -l查看某一时间段的IP访问量(4-5点)grep “07/Apr/2...

2019-04-28 15:17:17 1019

原创 lamp禁止IP直接访问服务器

配置如下:NameVirtualHost IP地址<virtualhost IP地址:80> ServerName IP地址 <Directory /> Order Allow,Deny Deny from all </Directory></virtualhost><Vi...

2019-04-28 13:58:01 454

原创 PHP中$this、self的理解附带范围解析操作符::(摘自官网)

In PHP, you use the self keyword to access static properties and methods.The problem is that you can replace $this->method() with self::method() anywhere, regardless if method() is declared stati...

2019-04-26 14:55:50 1161

原创 LNMP - Warning: require(): open_basedir restriction in effect错误解决方法

之前遇到过,没记。又碰到了,下面这个哥们写的比较全,报错截图一模一样:https://blog.csdn.net/watermelonmk/article/details/80967658

2019-04-26 14:55:29 5821

原创 lnmp Fatal error: Uncaught Error: Class 'Redis' not found

搬运,写的不错!https://blog.51cto.com/leoheng/2162621https://stackoverflow.com/questions/24858704/phpredis-errors-class-redis-not-found-in-linux

2019-04-26 14:55:14 3806

原创 别人的域名绑定了你的服务器IP处理方案(PHP处理)

调试的时候有人绑定了我的服务器IP,调试完毕他居然还没换掉。我有点无语,所以想了下处理方法,在你程序的入口文件里加入下列代码,这种方式处理比较简单:<?phpif($_SERVER['SERVER_NAME']=='别人的域名.com'){ header("Location: https://www.baidu.com"); //或者干点你想干的事情,比如让它跳到羞羞的网站上...

2019-04-26 14:54:20 946

原创 Centos7安装Python3的方法

https://www.cnblogs.com/s-seven/p/9105973.html成功了,按照步骤一步步来就可以了!yum -y groupinstall “Development tools”yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel ...

2019-04-21 17:04:28 1009

原创 cp - cannot create regular file : permission denied

It works!https://askubuntu.com/questions/462187/cp-cannot-create-regular-file-permission-denied涉及到的命令:lsattrchattr -i *

2019-04-19 11:03:26 26809 3

原创 日志易对接kafka配置

collector0.sources.sourceKafka1.type = cn.yottabyte.flume.source.kafka.NewKafkaSourcecollector0.sources.sourceKafka1.channels = channel1collector0.sources.sourceKafka1.bootstrapServers = ip1:9092,ip...

2019-04-17 15:26:00 1328

原创 Vim之快速清空文件内容

在命令模式下,首先执行 gg 这里是跳至文件首行 再执行:dG 这样就清空了整个文件!

2019-04-11 13:08:16 6585

原创 Linux查看文件大小的几种方法

du -h filepath 直接得出人好识别的文件大小ls -h filepath h表示human, 加-h参数得到人好读的文件大小参考文章:https://blog.csdn.net/xiongyangg/article/details/54809810...

2019-04-09 17:11:25 22063

原创 Prometheus+Grafana监控系统通过kafka_exporter监控kafka

Kafka Dashboard模板:{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "plugi...

2019-04-02 10:40:50 6464

原创 fatal: unable to access : Peer reports incompatible or unsupp

查找原因是curl,nss版本低的原因,解决办法就是更新nss,curl。[root@server data]# yum update nss curl亲测有效!参考文章:https://blog.csdn.net/feinifi/article/details/79629904...

2019-04-02 08:32:35 826

原创 Invalid interval string, expecting a number followed by one of "Mwdhmsy"

亲测有效!!!请参考:https://github.com/grafana/grafana/issues/10950

2019-04-01 15:59:03 1591

原创 context deadline exceeded - Prometheus Marking the endpoint DOWN

修改prometheus.yml,添加:scrape_timeout:600s参考链接:https://groups.google.com/forum/#!searchin/prometheus-users/context$20deadline$20exceeded|sort:date/prometheus-users/HR5bLxw3xSo/cbzwXRA9AQAJhttps://g...

2019-04-01 15:32:43 6728 2

原创 Linux ss命令详解

ss是Socket Statistics的缩写。顾名思义,ss命令可以用来获取socket统计信息,它可以显示和netstat类似的内容。ss的优势在于它能够显示更多更详细的有关TCP和连接状态的信息,而且比netstat更快速更高效。当服务器的socket连接数量变得非常大时,无论是使用netstat命令还是直接cat /proc/net/tcp,执行速度都会很慢。ss快的秘诀在于,它利用到...

2019-03-27 16:21:42 542

原创 404网页源码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><he...

2019-03-27 14:06:44 17144

原创 MySQL之使用truncate批量清空数据库表数据

格式:select CONCAT(‘truncate TABLE ‘,table_schema,’.’,TABLE_NAME, ‘;’) from INFORMATION_SCHEMA.TABLES where table_schema in (‘数据库1’,‘数据库2’);直接把数据库名字替换下就可以了,得到结果形如:±-------------------------------...

2019-03-26 15:50:39 7379 1

原创 数据库修改密码

https://www.cnblogs.com/jdxn/p/6830411.html

2019-03-22 13:13:40 5465

原创 Linux centos7安装redis及其php-redis扩展

https://www.cnblogs.com/autohome7390/p/6433956.html

2019-03-22 12:40:39 222

原创 Linux - CentOS7 修改默认SSH端口

这篇就够了:https://blog.csdn.net/verysevere/article/details/79233471注意:阿里云新建的端口需要在安全组配置一下,否则连接会失败!

2019-03-22 11:21:03 696

原创 已安装nginx动态添加模块

记录、备忘:https://www.cnblogs.com/lixigang/articles/5130052.htmlhttps://www.cnblogs.com/Leechg/p/9969000.html

2019-03-21 10:51:08 1105

原创 Nginx 提示500 ,PHP设置提示具体错误

error_reporting(E_ALL);ini_set('display_errors', 'On');参考链接:https://blog.csdn.net/joeson7456/article/details/77916175

2019-03-19 17:24:39 2231

原创 解决新版wampserver 2/3个服务器正在运行 问题

有个服务需要手动起来,看下链接地址的第一个图:https://blog.csdn.net/firstblog/article/details/79529719

2019-03-17 09:47:42 6973

原创 Linux 误修改etc/profile后导致所有命令都找不到的解决办法

今天一个指令搞崩了三台服务器,就是修改/etc/profile失败,#号变为&amp;gt;号,解决办法为进入linux单用户模式,重新修改/etc/profile,或者下面的方法:https://blog.csdn.net/superyu1992/article/details/79882092...

2019-03-15 17:12:40 2319

原创 Linux系统如何查看版本信息

https://jingyan.baidu.com/article/7908e85c725159af481ad2f7.htmluname -acat /proc/versioncat /etc/issuelsb_release -a

2019-03-14 14:44:05 774

原创 MySQL之一次性清除所有表数据

我用的第一种方式:https://blog.csdn.net/chenlu5201314/article/details/78873458

2019-03-13 10:45:55 2028

原创 运行shell脚本提示‘\r’等命令不可用

在Windows下编辑的shell脚本会出现这种情况,所以解决方案如下:编辑器vi/vim打开你需要执行的脚本文件,输入 : set fileformat=unix 并回车,然后保存退出,重新执行脚本,问题就解决了。参考链接:https://blog.csdn.net/qq_42512064/article/details/80843274...

2019-03-11 16:17:40 1176

原创 PHP项目部署的正确姿势

参考链接:https://www.cnblogs.com/cyun/p/4146131.htmlhttps://blog.csdn.net/weixin_39666151/article/details/81167177不再赘述!

2019-03-06 20:11:07 3605

原创 分享个较好的MD5解密网站

http://www.chamd5.org/

2019-03-04 10:48:36 7302 1

原创 Anti-Anti-Spider之无视检测chrome+webdriver代码实现

from selenium.webdriver import Chromefrom selenium.webdriver import ChromeOptionsoption = ChromeOptions()option.add_experimental_option('excludeSwitches', ['enable-automation'])driver = Chrome(op...

2019-02-26 12:42:02 538

原创 thinkphp5之模块不存在、HttpException in App.php解决方案

找了好久,有说修改模块名的,有说改$this-&gt;fetch()的,都不行,所以下面才是正解:在.htaccess中添加&lt;IfModule mod_rewrite.c&gt; Options +FollowSymlinks -Multiviews RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !...

2019-02-25 18:14:22 28381 3

原创 phpstorm多个目录中的文件查找替换内容怎么做?

有用,还是搜了一会的:https://segmentfault.com/q/1010000008913082/a-1020000008913387

2019-02-22 11:46:51 4591

原创 闪迪u盘量产工具&U盘正常显示但是多出几个空分区的解决方案

http://www.upantool.com/jiaocheng/xiufu/2015/6668.html我用diskgenius的,确实能解决!

2019-02-18 12:51:21 2403

原创 U盘两个分区合并

实践确实可行:https://zhidao.baidu.com/question/137968068304021325.html

2019-02-18 10:24:58 6690

原创 MySQL之Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in...

解决:在$data = mysqli_query($dbc, $query);后加上这样一段代码:$result = mysqli_query($this-&gt;conn, $this-&gt;sql);if (!$result) { printf("Error: %s\n", mysqli_error($this-&gt;conn)); //exit();参考文章:...

2019-02-17 12:00:40 15902

viewflowDemo

ViewFlowDemo.rar

2016-08-04

JPush_Demo极光推送demo

史上最高效最简洁的极光推送demo,绝对不会后悔

2016-08-03

友盟社会化分享

搞了一下友盟社会化分享,不能但是要注意细节

2016-07-21

viewpager+listview联动

滑动头部图片,下面评论数据可以进行相应的更新,希望能帮到你们~

2016-07-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除