摘要: #!/bin/bash # 检测进程是否在运行process=$(ps aux | grep "pytest.py" | grep -v grep) # 如果进程在运行,则终止它if [ -n "$process" ]; then kill $(pgrep -f "pytest.py")fi #!/ 阅读全文
posted @ 2024-04-25 09:31 动灵 阅读(1) 评论(0) 推荐(0) 编辑
摘要: ************************************************************** windows: >> 一、安装及配置 mosquitto 1.下载并安装 mosquitto (官网下载地址 https://mosquitto.org/download/ 阅读全文
posted @ 2024-03-27 15:55 动灵 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 项目git: https://gitee.com/kekingcn/file-online-preview 项目克隆出来后,进入项目目录后,使用maven 进行编译生成打包(如何安装 maven 可百度搜索): # 下载包 wget https://dlcdn.apache.org/maven/ma 阅读全文
posted @ 2024-03-27 15:27 动灵 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 参考链接: https://blog.csdn.net/a772304419/article/details/133277368 自启动 参考链接: https://blog.csdn.net/qq_32953185/article/details/108460302 参数配置 参考链接: http 阅读全文
posted @ 2024-03-12 16:40 动灵 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 环境:centos7 + php7.3(thinkphp6) wkhtmltopdf: https://wkhtmltopdf.org/index.html 坑点: 1.linux系统 html生成的pdf中文乱码(解决方法参考:https://juejin.cn/post/706974915732 阅读全文
posted @ 2023-06-30 11:37 动灵 阅读(291) 评论(0) 推荐(0) 编辑
摘要: /** * 截取身份证年、月、日,通过与当前时间戳的比较计算年龄 * @param string $idcard 身份证 * @return int */ function getAgeByID($idcard) { // 过了这年的生日才算多了一周岁 if(empty($idcard)) retu 阅读全文
posted @ 2021-12-07 14:38 动灵 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 最近做了一个项目需要 php+shell_exec() 调用python,在win下能正常调用到,然而转移到centos上时结果一直是null,各种尝试后总结如下: 1.检查 php.ini disable_functions= 中是否有shell_exec,若有则删除,保存后重启php 2.pyt 阅读全文
posted @ 2021-09-04 14:33 动灵 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 在nginx对应项目的conf配置文件中修改: location / { # 跨域 add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_ 阅读全文
posted @ 2021-01-05 15:21 动灵 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 在nginx对应项目的配置文件中修改 location / { index index.php index.html error/index.html; # !!!url重写!!! if (!-e $request_filename) { # 注意 if 后面有空格 rewrite ^/index. 阅读全文
posted @ 2021-01-05 15:19 动灵 阅读(954) 评论(0) 推荐(0) 编辑
摘要: 新建.bat文件 net stop LxssManager net start LxssManager 保存后,管理员运行 阅读全文
posted @ 2020-08-03 17:04 动灵 阅读(325) 评论(0) 推荐(0) 编辑