摘要: 网站已经用了百度统计,但现在移动端的浏览器,如夸克,UC等默认都禁广告,同时也会阻止统计的js运行,所以百度统计只能统计到一部分。 可以用脚本来在nginx日志中统计URL但比较麻烦,在网上搜了一下统计nginx的工具,发现有个goaccess还比较方便。 安装依赖库: yum install -y 阅读全文
posted @ 2024-06-10 00:47 zjhgx 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 原帖是这样的: nginx 日志分割是比较常见的运维工作,关于这方面的文章也很多,通常无外乎两种做法: cron定期执行shell脚本对日志文件进行归档。 使用专门日志归档logrotate。 以上方式与nginx其实没有特别的关系。 从nginx 0.7.6 版本开始,access_log 的路径 阅读全文
posted @ 2024-05-29 11:42 zjhgx 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 5月16日晚上7点40,发现hjdang.com的网页又打不开了。回去登陆腾讯云,发现是来自单一网页的Quark浏览器的流量大爆发,由/d/1776916731646734577带来 223.67.102.60 - - [17/May/2024:17:51:46 +0800] "GET /d/177 阅读全文
posted @ 2024-05-17 19:54 zjhgx 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 提示文件已损坏打开命令行执行这个命令就可以打开了sudo xattr -r -d com.apple.quarantine /Applications/Navicat\ Premium.app 如遇到 还是提示已损坏 无法打开, 可以试试在访达中找到该app, 右键打开app ->打开 试试, 注意 阅读全文
posted @ 2024-03-15 23:03 zjhgx 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 1. 在腾讯云轻量mysql数据库上执行: alter table yunpan_item add fulltext index ft_idx(`title`,`content`) WITH PARSER ngram; RROR 1878 (HY000): Temporary file write 阅读全文
posted @ 2024-03-13 08:11 zjhgx 阅读(8) 评论(0) 推荐(0) 编辑
摘要: npm install 出错 npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git npm ERR! npm ERR! fata 阅读全文
posted @ 2024-02-12 02:09 zjhgx 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 由于要解决adsense引起的CLS issue,根据 https://web.dev/articles/optimize-cls?utm_source=lighthouse&utm_medium=lr给出的建议,在广告的container上加上min-height。 <div v-if="$q.p 阅读全文
posted @ 2024-01-14 05:55 zjhgx 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 1.为了解决页面CLS的issue,我给adsense的parent container设置了一个min-height,结果console报错:No slot size for availableWidth=0 <q-item v-if="$q.platform.is.mobile" class=" 阅读全文
posted @ 2024-01-14 03:47 zjhgx 阅读(27) 评论(0) 推荐(0) 编辑
摘要: Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.davidhu.shopguide.api.service.UserEventService. No provider 阅读全文
posted @ 2024-01-13 02:44 zjhgx 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 亲测,只在ssr模式会出现页面漂移现象,尚不知道原因 原因已找到:ssr模式的偏移是因为会重新计算header的高度,一开始header没算进去,会向上偏移header的高度,计算完后再回到位置。只要在<q-header height-hint="120">加上一个 height-hint预估hea 阅读全文
posted @ 2024-01-13 00:13 zjhgx 阅读(7) 评论(0) 推荐(0) 编辑