2025年2月12日

Linux 版本百度网盘 BaiduPCS-Go

摘要: 链接地址: https://github.com/qjfoidnh/BaiduPCS-Go 使用百度 BDUSS 来登录百度帐号: BaiduPCS-Go login -bduss=1234567 上传文件/目录 BaiduPCS-Go upload <本地文件/目录的路径1> <文件/目录2> < 阅读全文

posted @ 2025-02-12 14:23 星河赵 阅读(12) 评论(0) 推荐(0) 编辑

2025年1月20日

linux 卸载硬盘

摘要: Linux 通过umount 卸载硬盘 sudo umount /dev/vdb 报错:umount: /data2: target is busy. 1. 查找占用的进程 使用 lsof 或 fuser 来查找哪些进程正在占用挂载点: 方法 1:使用 lsof lsof +D /挂载点路径 这会列 阅读全文

posted @ 2025-01-20 18:13 星河赵 阅读(37) 评论(0) 推荐(0) 编辑

2024年12月31日

Python selenium 爬虫设置

摘要: Linux 服务器上可以使用 Selenium 来进行网页爬取。为了在 Linux 服务器上使用 Selenium,通常需要做一些额外的配置,特别是与浏览器和浏览器驱动的兼容性相关 配置步骤 安装 Selenium: 你需要确保安装了 Selenium 库。可以使用以下命令来安装: pip inst 阅读全文

posted @ 2024-12-31 10:32 星河赵 阅读(38) 评论(0) 推荐(0) 编辑

2024年12月4日

两台linux 服务器如何共享一个磁盘

摘要: 两台linux服务器如何共享一个磁盘可以借用NFS工具 例如:服务端的系统是centos ip为101.0.3.3 客户端的系统是ubuntu ip为:101.0.3.13 如何通过nfs来共享服务端的/data目录? 要通过NFS在CentOS和Ubuntu之间共享 /data 目录,您需要在服务 阅读全文

posted @ 2024-12-04 18:12 星河赵 阅读(228) 评论(0) 推荐(0) 编辑

2024年12月3日

ubuntu 安装supervisor

摘要: 在 Ubuntu 上安装 Supervisor 作为进程管理工具,可以通过以下步骤完成: 1. 更新系统包 首先更新系统的软件包列表: sudo apt update && sudo apt upgrade -y 2. 安装 Supervisor 通过 apt 安装 Supervisor: sudo 阅读全文

posted @ 2024-12-03 10:32 星河赵 阅读(324) 评论(0) 推荐(0) 编辑

ubuntu 安装redis

摘要: 在 Ubuntu 上安装 Redis 可以通过以下步骤实现: 1. 更新系统包 在安装 Redis 之前,先更新系统的包列表: sudo apt update && sudo apt upgrade -y 2. 安装 Redis 使用 apt 安装 Redis: sudo apt install - 阅读全文

posted @ 2024-12-03 10:08 星河赵 阅读(539) 评论(0) 推荐(0) 编辑

2024年11月7日

Linux 系统修改主机名

摘要: 更改主机名方法: 1.sudo vim /etc/hostname 更改此配置永久生效 2.sudo hostname ecsc2 使当前窗口生效 重新登录服务器即可。 阅读全文

posted @ 2024-11-07 09:55 星河赵 阅读(3) 评论(0) 推荐(0) 编辑

2024年10月22日

如何下载youtube 视频

摘要: 推荐工具:yt-dlp youtube-dl 已经不更新,推荐使用yt-dlp 安装方法: pip install yt-dlp 下载方法 -o 指定下载目录 以及对文件进行重命名 yt-dlp -o dst/123.mp4 https://www.youtube.com/watch?v=DwLXV 阅读全文

posted @ 2024-10-22 10:16 星河赵 阅读(367) 评论(0) 推荐(0) 编辑

2024年9月28日

通过torndao 起一个web服务

摘要: 需要安装包 tornado==6.4.1 redis==4.3.3 示例代码 import tornado.ioloop import tornado.web from redis.asyncio import Redis class MainHandler(tornado.web.RequestH 阅读全文

posted @ 2024-09-28 10:53 星河赵 阅读(5) 评论(0) 推荐(0) 编辑

2024年9月3日

python 设计出一套接口签名和验证

摘要: 需要app_id、secret 需要提前准备好作为密钥 生成签名函数 import hmac, hashlib, json def generate_signature(http_method, uri_path, args, body, secret): """ 生成签名的函数。 :param h 阅读全文

posted @ 2024-09-03 12:17 星河赵 阅读(94) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示