1 2 3 4 5 ··· 9 下一页
摘要: 使用SCP (Secure Copy Protocol) SCP是一个基于SSH(Secure Shell)协议的文件传输工具,可以安全地在本地和远程之间复制文件。 示例: 将本地的file.txt文件推送到user@192.168.1.100的/home/user/目录下: scp file.tx 阅读全文
posted @ 2025-04-08 17:18 pxuan 阅读(151) 评论(0) 推荐(0)
摘要: Python 的 asyncio 类似于 C++ 的 Boost.Asio。代码: import asyncio from time import perf_counter, sleep async def fetch_url(url: str): print(f"读取 {url}") await 阅读全文
posted @ 2025-03-25 09:46 pxuan 阅读(56) 评论(0) 推荐(0)
摘要: pip config set global.index-url http://mirrors.aliyun.com/pypi/simple 常用的国内PyPI镜像源 阿里云: https://mirrors.aliyun.com/pypi/simple 豆瓣: https://pypi.douban 阅读全文
posted @ 2025-03-21 10:03 pxuan 阅读(78) 评论(0) 推荐(0)
摘要: export all_proxy=socks5://127.0.0.1:1080 阅读全文
posted @ 2024-11-20 11:07 pxuan 阅读(28) 评论(0) 推荐(0)
摘要: yarn config list 查看配置列表 registry: 'http://registry.npm.taobao.org', yarn config set strict-ssl false 设置配置 阅读全文
posted @ 2024-11-13 19:51 pxuan 阅读(13) 评论(0) 推荐(0)
摘要: ffmpeg转电话铃声音频:error code=-1 ifajax=false getmsg=talfeng2.wav 文件格式不合格请上传采样率8000,单声道的A率或PCM格式的wav文件 fmpeg -i 2.mp3 -ar 8000 -ac 1 welcome_wcrm.wav 阅读全文
posted @ 2024-09-05 10:36 pxuan 阅读(17) 评论(0) 推荐(0)
摘要: 一、操作数据库 1、创建数据库 create database 数据库名 charset-uth8; 2、查看所有数据库 show databases 3、使用数据库 use 数据库名 4、查看当前使用的数据库 select databases(); 5、删除数据库 drop database 数据 阅读全文
posted @ 2024-07-15 10:36 pxuan 阅读(23) 评论(0) 推荐(0)
摘要: 单机部署 docker run -id -p 15672:15672 -p 56732:5672 \ --name rabbitmq \ --restart always \ -v /docker/rabbitmq:/var/lib/rabbitmq \ -e RABBITMQ_DEFAULT_US 阅读全文
posted @ 2024-01-15 17:28 pxuan 阅读(109) 评论(0) 推荐(0)
摘要: git pull origin master --rebase 创建分支testinggit branch testing分支管理git branch分支切换git checkout testing删除分支git branch -b testing合并分支使用 git merge 命令来合并两个分支 阅读全文
posted @ 2023-09-18 10:53 pxuan 阅读(89) 评论(0) 推荐(0)
摘要: 1、安装nvm首先要保证之前没有安装过nodejs,如果之前安装过,就先卸载: brew uninstall node brew install nvm 2、查看是否安装 nvm -v 3、临时环境变量配置 vi ~/.bash_profile 添加 export NVM_DIR="$([ -z " 阅读全文
posted @ 2023-08-08 10:11 pxuan 阅读(97) 评论(0) 推荐(0)
1 2 3 4 5 ··· 9 下一页