悉野小楼

导航

1 2 3 4 5 ··· 26 下一页

2024年8月30日

cocos creator项目2.3.3升级到2.4.13发布失败问题

摘要: 原项目部分js源代码放在assets/resources目录下面, 2.3.3 cocos creator调试发布都没问题, 升级到2.4.13后调试没问题, 但发布就会异常. 原因是2.4.13不支持resources目录下面存放js脚本了, 修改目录结构, 把resources目录下面的脚本移动 阅读全文

posted @ 2024-08-30 09:49 悉野 阅读(2) 评论(0) 推荐(0) 编辑

2024年8月29日

快速排序python实现

摘要: def quick_sort(arr, left, right): origin_left = left origin_right = right pivot_data = arr[left] #枢轴上的值(基准值), 就是开始用来比较的值, 一般是随机选择一个位置, 这儿选择最左边的值 #blan 阅读全文

posted @ 2024-08-29 23:44 悉野 阅读(2) 评论(0) 推荐(0) 编辑

2024年8月27日

shell脚本批量改名

摘要: #!/bin/bash # 检查输入参数是否正确 if [ "$#" -lt 3 ]; then echo "Usage: $0 <root_directory> <old_string> <replace_string> [1]" exit 1 fi root_directory=$1 old_s 阅读全文

posted @ 2024-08-27 18:28 悉野 阅读(1) 评论(0) 推荐(0) 编辑

linux系统内存不足时, 系统杀死程序 哪儿查看日记

摘要: 下面是由ai回答的: 当Linux系统内存不足时,系统可能会通过OOM killer(Out-Of-Memory killer)机制自动杀死一些进程以释放内存。要查看因内存不足而被系统杀死的程序,可以通过查看系统日志来获取相关信息。 根据搜索结果,以下是一些常用的方法来查看系统日志中的相关记录: 使 阅读全文

posted @ 2024-08-27 18:22 悉野 阅读(1) 评论(0) 推荐(0) 编辑

xshell使用跳板机ssh连结远程后使用SFTP

摘要: xshell连结跳板机后, 再使用ssh连结到真实机器, SFTP只能显示原跳板机的目录, 不能显示真实目录. 可以使用隧道, 代理来显示真实目标机器的目录. 参考:https://blog.csdn.net/qq_43797186/article/details/123669071 1.在原跳板机 阅读全文

posted @ 2024-08-27 11:11 悉野 阅读(1) 评论(0) 推荐(0) 编辑

2024年8月23日

python安装paramiko报错

摘要: 腾讯云上python3.6, 使用pip3.6 install paramiko报错 [root@VM-0-14-centos test]# pip3.6 install paramikoWARNING: Running pip install with root privileges is gen 阅读全文

posted @ 2024-08-23 11:55 悉野 阅读(9) 评论(0) 推荐(0) 编辑

2024年8月22日

python读取网页

摘要: 使用自带的urllib.request import urllib.request req = urllib.request.Request("http://www.baidu.com") with urllib.request.urlopen(req) as response: data = re 阅读全文

posted @ 2024-08-22 12:00 悉野 阅读(1) 评论(0) 推荐(0) 编辑

2024年8月20日

python ssh上传文件到linux并解压

摘要: import paramiko import os def upload_and_unzip(local_file, remote_file, zip_dir): # 创建SSH客户端 ssh = paramiko.SSHClient() ssh.set_missing_host_key_polic 阅读全文

posted @ 2024-08-20 16:41 悉野 阅读(1) 评论(0) 推荐(0) 编辑

2024年8月16日

shell脚本关闭指定名字的程序

摘要: ps aux | grep '程序名' | awk '{print $2}' | xargs kill -9 或者 pkill -f '程序名' pkill高cpu的程序不一定能杀死, 还是kill -9好用 阅读全文

posted @ 2024-08-16 17:32 悉野 阅读(2) 评论(0) 推荐(0) 编辑

2024年8月14日

mysql记录所有sql文句

摘要: 选中某个数据库后, 执行查询 SHOW VARIABLES LIKE "general_log%" 如果general_log值不是ON, 执行SET GLOBAL general_log = 'ON'; 路径类似可以修改. 如果只想记录慢查询: # 开启慢查询日志SET GLOBAL slow_q 阅读全文

posted @ 2024-08-14 12:11 悉野 阅读(1) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 26 下一页