上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 133 下一页
摘要: redis 安装成功之后,我们是可以在命令行通过一些redis命令来操作的,但是如果我们要通过PHP来操作redis的话,还需要为php安装redis扩展。 可以通过命令:php -m 来查看php现在已经安装的一些扩展 默认情况下,php并没有redis扩展,那么我们需要为php打一个redis的 阅读全文
posted @ 2021-07-05 15:25 盘思动 阅读(1278) 评论(0) 推荐(0)
摘要: $str = file_get_contents('https://cdn.caomall.net/usedcar_1625196571637703379.jpg'); return base64_encode($str); 阅读全文
posted @ 2021-07-02 14:21 盘思动 阅读(173) 评论(0) 推荐(0)
摘要: <?php //$file:图片地址 //Filetype: JPEG,PNG,GIF $file = "encode.jpg"; if($fp = fopen($file,"rb", 0)) { $gambar = fread($fp,filesize($file)); fclose($fp); 阅读全文
posted @ 2021-07-02 11:59 盘思动 阅读(169) 评论(0) 推荐(0)
摘要: php 发送json post function json_post($url, $data = NULL) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VE 阅读全文
posted @ 2021-07-01 18:21 盘思动 阅读(1929) 评论(0) 推荐(0)
摘要: /** * 验证密码 * @param $password * @return bool */ public static function checkPassword($password) { //$search = '/^[-_a-zA-Z0-9]{6,20}$/'; //密码至少8位,包括数字 阅读全文
posted @ 2021-06-10 15:52 盘思动 阅读(6945) 评论(1) 推荐(0)
摘要: linux按照时间查找文件 需要用到一个根据最后修改时间来处理的脚本。 前面有个有关find的基本用法,根据文件大小,类型什么的,这个是关于时间的。 linux 文件的三种时间(以 find 为例): atime 最后一次访问时间, 如 ls, more 等, 但 chmod, chown, ls, 阅读全文
posted @ 2021-05-31 10:29 盘思动 阅读(4426) 评论(0) 推荐(0)
摘要: htop htop 安装情况 安装epel源 yum install epel-release 安装htop yum install -y htop 安装完毕后命令行输入 htop 阅读全文
posted @ 2021-05-29 18:26 盘思动 阅读(506) 评论(0) 推荐(0)
摘要: MYSQL默认的table_open_cache为64,这个数值是偏小的,如果max_connections较大,则容易引起性能问题。 表现:数据库查询效率慢,show processlist 发现比较多的查询正在opening table。 进一步确认,执行以下语句: mysql> show gl 阅读全文
posted @ 2021-05-29 15:47 盘思动 阅读(3115) 评论(0) 推荐(0)
摘要: 可以通过检查table_locks_waited和table_locks_immediate状态变量来分析系统上的表锁定争夺 如果table_locks_waited值比较高,则说明表级锁争用比较严重 mysql> show status like 'table%'; + + + | Variabl 阅读全文
posted @ 2021-05-29 15:33 盘思动 阅读(607) 评论(0) 推荐(0)
摘要: mysqladmin -uroot -p123456 -i 1 processlist 查看mysql在进行的进程 每秒更新一次 如果找不到mysqladmin 命令,到目录/usr/local/mysql/bin/mysqladmin 阅读全文
posted @ 2021-05-29 10:05 盘思动 阅读(111) 评论(0) 推荐(0)
上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 133 下一页