摘要: 要注意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 赵瑛 阅读(72) 评论(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 赵瑛 阅读(210) 评论(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 赵瑛 阅读(131) 评论(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 赵瑛 阅读(2480) 评论(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 赵瑛 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 使用环境为php7.3 function createZip($openFile,$zipObj,$sourceAbso,$newRelat = '') { while(($file = readdir($openFile)) != false) { if($file=="." || $file== 阅读全文
posted @ 2021-08-18 11:44 赵瑛 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 安装firewall后(LINUX7系统一般情况下默认已安装),防火墙默认配置是只打开SSH端口的,也就是22端口,如果SSH的端口已更改成别的端口了,请切记一定在启动firewall前先修改对应服务策略中SSH的端口为你的SSH端口,文件路径:/usr/lib/firewalld/services 阅读全文
posted @ 2021-08-12 10:18 赵瑛 阅读(1113) 评论(0) 推荐(0) 编辑
摘要: 合并数组的方法 array_merge 如:array_merge($data1,$data2); 数组去重 //1.单数组去重复 array_unique($arrTest) //2.多数组去重复 array_keys(array_flip($arr1)+array_flip($arr2)) 阅读全文
posted @ 2021-08-12 08:57 赵瑛 阅读(205) 评论(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 赵瑛 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 查看已开放的端口 firewall-cmd --list-ports 开放端口(开放后需要要重启防火墙才生效) firewall-cmd --zone=public --add-port=3338/tcp --permanent 关闭端口(关闭后需要要重启防火墙才生效) firewall-cmd - 阅读全文
posted @ 2021-08-10 14:58 赵瑛 阅读(661) 评论(0) 推荐(0) 编辑

版权所有 © 2022 沅来是澧

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