摘要:
你在网上搜索tp6的session,会有大量的说开启中间件的文件,无一例个,全都行不通。 当然,中间件里开启是必须的,生成的session文件目录给写入权限也是必须的,但这样,还是无法使用session。 经过搜索,最后发现是需要在方法中加入:\think\facade\Session::save( 阅读全文
摘要:
要注意mysql.sock和bin路径,BAKPATH为备份文件存放目录 #! /bin/bash BAKPATH=/mnt/data1/mysql/backup/data MYUSER=root MYPASS="hw7777901" SOCKET=/mnt/data1/mysql/mysql.so 阅读全文
摘要:
如果是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 阅读全文
摘要:
<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 阅读全文
摘要:
1、开放端口 firewall-cmd --zone=public --add-port=5672/tcp --permanent # 开放5672端口 firewall-cmd --zone=public --remove-port=5672/tcp --permanent #关闭5672端口 f 阅读全文
摘要:
var url = 'http://www.cdlyh.com/down.php'; var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); // 也可以使用POST方式,根据接口 xhr.responseType = "blob"; 阅读全文
摘要:
使用环境为php7.3 function createZip(zipObj,newRelat = '') { while((openFile)) != false) { if(file== 阅读全文
摘要:
安装firewall后(LINUX7系统一般情况下默认已安装),防火墙默认配置是只打开SSH端口的,也就是22端口,如果SSH的端口已更改成别的端口了,请切记一定在启动firewall前先修改对应服务策略中SSH的端口为你的SSH端口,文件路径:/usr/lib/firewalld/services 阅读全文
摘要:
合并数组的方法 array_merge 如:array_merge(data2); 数组去重 //1.单数组去重复 array_unique(arr1)+array_flip($arr2)) 阅读全文
摘要:
先进入mysql1、mysql -u root -p2、输入密码3、use 要导入的数据库名(没有就新建一个,使用create database test;命令新建,再use test;,再set names utf8;设置一下编码)4、source /home/test.sql; (选择要导入的数 阅读全文