摘要: 你在网上搜索tp6的session,会有大量的说开启中间件的文件,无一例个,全都行不通。 当然,中间件里开启是必须的,生成的session文件目录给写入权限也是必须的,但这样,还是无法使用session。 经过搜索,最后发现是需要在方法中加入:\think\facade\Session::save( 阅读全文
posted @ 2021-10-18 11:03 赵瑛 阅读(1566) 评论(0) 推荐(0) 编辑
摘要: 要注意mysql.sock和bin路径,BAKPATH为备份文件存放目录 #! /bin/bash BAKPATH=/mnt/data1/mysql/backup/data MYUSER=root MYPASS="hw7777901" SOCKET=/mnt/data1/mysql/mysql.so 阅读全文
posted @ 2021-08-27 23:02 赵瑛 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 如果是yum安装的nginx,请注意更换一下/etc/init.d/nginx start这段启动代码 #!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH pg 阅读全文
posted @ 2021-08-26 20:55 赵瑛 阅读(216) 评论(0) 推荐(0) 编辑
摘要: <rules> <clear/> <rule name="iis_security"> <match url="^.*\.(jpg|jpeg|gif|png|js|css.zip.rar|xlsx|xls|doc|docx|mp3|mp4)$" ignoreCase="true"/> <condit 阅读全文
posted @ 2021-08-25 17:17 赵瑛 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1、开放端口 firewall-cmd --zone=public --add-port=5672/tcp --permanent # 开放5672端口 firewall-cmd --zone=public --remove-port=5672/tcp --permanent #关闭5672端口 f 阅读全文
posted @ 2021-08-24 15:22 赵瑛 阅读(2522) 评论(0) 推荐(0) 编辑
摘要: var url = 'http://www.cdlyh.com/down.php'; var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); // 也可以使用POST方式,根据接口 xhr.responseType = "blob"; 阅读全文
posted @ 2021-08-21 10:24 赵瑛 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 使用环境为php7.3 function createZip(openFile,zipObj,sourceAbso,newRelat = '') { while((file=readdir(openFile)) != false) { if(file=="."||file== 阅读全文
posted @ 2021-08-18 11:44 赵瑛 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 安装firewall后(LINUX7系统一般情况下默认已安装),防火墙默认配置是只打开SSH端口的,也就是22端口,如果SSH的端口已更改成别的端口了,请切记一定在启动firewall前先修改对应服务策略中SSH的端口为你的SSH端口,文件路径:/usr/lib/firewalld/services 阅读全文
posted @ 2021-08-12 10:18 赵瑛 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: 合并数组的方法 array_merge 如:array_merge(data1,data2); 数组去重 //1.单数组去重复 array_unique(arrTest)//2.arraykeys(arrayflip(arr1)+array_flip($arr2)) 阅读全文
posted @ 2021-08-12 08:57 赵瑛 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 先进入mysql1、mysql -u root -p2、输入密码3、use 要导入的数据库名(没有就新建一个,使用create database test;命令新建,再use test;,再set names utf8;设置一下编码)4、source /home/test.sql; (选择要导入的数 阅读全文
posted @ 2021-08-10 15:18 赵瑛 阅读(359) 评论(0) 推荐(0) 编辑

版权所有 © 2022 沅来是澧

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

点击右上角即可分享
微信分享提示