摘要: 主库 server-id=2 CREATE USER 'shabi'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; GRANT replication slave ON *.* TO 'slave'@'%'; GRANT ALL pri 阅读全文
posted @ 2021-11-13 18:03 赵瑛 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 说明:WHERE IF(条件, true执行条件, false执行条件 ) SELECT * FROM `table` WHERE IF( `parentID` =1, `plan_id` <10, `plan_id` >500 ) LIMIT 0 , 30 编写语句时,一定要按照上面的说明来,不然 阅读全文
posted @ 2021-11-11 10:08 赵瑛 阅读(3035) 评论(0) 推荐(0) 编辑
摘要: 记录一下这种判断写法 $sqlModel = Db::name('news'); $sqlModel = $sqlModel->where('endtime','>=',time()); $sqlModel = $sqlModel->where('begintime','<=',time()); $ 阅读全文
posted @ 2021-11-10 16:43 赵瑛 阅读(588) 评论(0) 推荐(0) 编辑
摘要: .search_content_list {width:374px;display: none;} .search_content_list ul{border:#ddd 1px solid;border-top:none;padding:5px} .search_content_list ul l 阅读全文
posted @ 2021-11-10 09:15 赵瑛 阅读(353) 评论(0) 推荐(0) 编辑
摘要: // 仿 Word 统计文章字数,和 word 统计出来的一致 function comment_count_word($str){ //$str =characet($str); //判断是否存在替换字符 $is_tihuan_count=substr_count($str,"龘"); try { 阅读全文
posted @ 2021-11-08 16:07 赵瑛 阅读(120) 评论(0) 推荐(0) 编辑
摘要: find / -size +100M -exec ls -lh {} \; # 查看整体磁盘占用df -h#切换到这块磁盘检查一下这块磁盘的哪个文件夹占用高,再逐层去查找 du -h --max-depth=1 [root@localhost logs]# du -h --max-depth=1 | 阅读全文
posted @ 2021-11-03 22:02 赵瑛 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: 基本使用方法: D:\coreseek-4.1\bin\searchd -c D:\coreseek-4.1\etc\article.conf --stop 停止服务 D:\coreseek-4.1\bin\searchd -c D:\coreseek-4.1\etc\article.conf 启动 阅读全文
posted @ 2021-11-01 22:50 赵瑛 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1、查看当前未挂载的硬盘 # fdisk -l 2、创建硬盘分区 # fdisk /dev/sdb 根据提示,依次输入"n","p" "1",两次回车,"wq",分区就开始了,很快就会完成。 3、格式化硬盘 # mkfs.ext4 /dev/sdb 4、建立挂载目录 # mkdir /data 5、 阅读全文
posted @ 2021-10-27 17:15 赵瑛 阅读(4446) 评论(1) 推荐(0) 编辑
摘要: /* + * 去掉html中的空格和换行的方法 + */ function delhtml($str) { $str = trim($str); //清除字符串两边的空格 $str = strip_tags($str,""); //利用php自带的函数清除html格式 $str = preg_rep 阅读全文
posted @ 2021-10-19 16:12 赵瑛 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 你在网上搜索tp6的session,会有大量的说开启中间件的文件,无一例个,全都行不通。 当然,中间件里开启是必须的,生成的session文件目录给写入权限也是必须的,但这样,还是无法使用session。 经过搜索,最后发现是需要在方法中加入:\think\facade\Session::save( 阅读全文
posted @ 2021-10-18 11:03 赵瑛 阅读(1495) 评论(0) 推荐(0) 编辑

版权所有 © 2022 沅来是澧

如果有程序开发、网站建设等需求的请联系我,QQ:47419233