# resource-usage **Repository Path**: lixingwu/resource-usage ## Basic Information - **Project Name**: resource-usage - **Description**: 资源占用程序 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-17 - **Last Updated**: 2026-09-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 资源占用程序 ### 安装环境 ```shell # 在线安装最新版本 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # 查看信息 rustup show # 查询已安装的版本 rustup toolchain list # 查询版本是否可用 rustup toolchain add 1.87.0 # 安装对应的版本 rustup toolchain install 1.87.0 # 激活对应的版本 rustup default 1.87.0 # 更新版本 rustup self update # 卸载 rustup rustup self uninstall rm -rf ~/.rustup rm -rf ~/.cargo # 安装 cross apt install build-essential pkg-config cargo install cross@0.2.3 ``` ### 编译 ```sehll rustup override set 1.87.0 cross build --target aarch64-unknown-linux-gnu --release # 使用upx压缩 upx resource-usage -o resource-usage-mini ``` ### 运行 ```shell cd /usr/local/yn/resoccupancy nohup ./resource-usage-mini > ./resource.log 2>&1 & tail -f -n 200 ./resource.log ```