摘要: 首先说一下常识: 网页可见区域宽: document.body.clientWidth; 网页可见区域高: document.body.clientHeight; 网页可见区域宽: document.body.offsetWidth (包括边线的宽); 网页可见区域高: document.body. 阅读全文
posted @ 2021-07-22 14:17 加菲猫and大白 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 示例:把http://example.com/old.php?para=xxx 重定向到 http://example.com/new 不去参数: 写法:rewrite ^/old.php(.*) /new permanent; 结果:http://example.com/new?para=xxx 阅读全文
posted @ 2021-05-14 17:03 加菲猫and大白 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 修改php-fpm.conf security.limit_extensions = .php .html 查看php-fpm.conf内listen,如果是端口则nginx.conf server内容为 location ~ \.php|\.html(.*)$ { fastcgi_pass 127 阅读全文
posted @ 2021-05-14 16:09 加菲猫and大白 阅读(897) 评论(0) 推荐(0) 编辑
摘要: 单行省略 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } 多行省略 { text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: ver 阅读全文
posted @ 2021-03-12 17:59 加菲猫and大白 阅读(102) 评论(0) 推荐(0) 编辑
摘要: $atime=5; $pdo=new PDO('mysql:host=127.0.0.1;dbname=test1','root','root'); $stmt=$pdo->prepare('select * from test where atime>:atime'); $stmt->bindPa 阅读全文
posted @ 2021-03-12 14:30 加菲猫and大白 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 请先安装依赖包 $ yum install -y gcc gcc-c++ make zlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 li 阅读全文
posted @ 2021-03-10 09:53 加菲猫and大白 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 原因是CentOS 6已经随着2020年11月的结束进入了EOL(Reaches End of Life),官方便在12月2日正式将CentOS 6相关的软件源移出了官方源,随之而来逐级镜像也会陆续将其删除。 不过有一些老设备依然需要维持在当前系统,CentOS官方也给这些还不想把CentOS 6扔 阅读全文
posted @ 2021-03-09 10:07 加菲猫and大白 阅读(807) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/NiceCui/p/8213723.html 阅读全文
posted @ 2021-01-27 16:25 加菲猫and大白 阅读(38) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/yangs_2012/article/details/80412016 阅读全文
posted @ 2021-01-05 10:44 加菲猫and大白 阅读(62) 评论(0) 推荐(0) 编辑
摘要: nginx 格式化日志 主要参数是http里的log_format 举例 log_format json_log '{"a":"b","c":"d"}'; access_log logs/access.log json_log; nginx 配置: http { log_format json_lo 阅读全文
posted @ 2020-05-25 09:38 加菲猫and大白 阅读(1217) 评论(0) 推荐(0) 编辑